google-analytics-admin-v1alpha 0.8.0 → 0.9.1
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.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +8 -8
- data/README.md +1 -1
- data/lib/google/analytics/admin/v1alpha/analytics_admin_pb.rb +76 -7
- data/lib/google/analytics/admin/v1alpha/analytics_admin_service/client.rb +2910 -380
- data/lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb +48 -0
- data/lib/google/analytics/admin/v1alpha/analytics_admin_services_pb.rb +37 -2
- data/lib/google/analytics/admin/v1alpha/resources_pb.rb +72 -12
- data/lib/google/analytics/admin/v1alpha/version.rb +1 -1
- data/proto_docs/google/analytics/admin/v1alpha/analytics_admin.rb +206 -14
- data/proto_docs/google/analytics/admin/v1alpha/resources.rb +222 -25
- data/proto_docs/google/api/field_behavior.rb +7 -1
- metadata +4 -4
@@ -41,13 +41,12 @@ module Google
|
|
41
41
|
# See {::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client::Configuration}
|
42
42
|
# for a description of the configuration fields.
|
43
43
|
#
|
44
|
-
#
|
44
|
+
# @example
|
45
45
|
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
# end
|
46
|
+
# # Modify the configuration for all AnalyticsAdminService clients
|
47
|
+
# ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.configure do |config|
|
48
|
+
# config.timeout = 10.0
|
49
|
+
# end
|
51
50
|
#
|
52
51
|
# @yield [config] Configure the Client client.
|
53
52
|
# @yieldparam config [Client::Configuration]
|
@@ -67,10 +66,7 @@ module Google
|
|
67
66
|
|
68
67
|
default_config.timeout = 60.0
|
69
68
|
default_config.retry_policy = {
|
70
|
-
initial_delay: 1.0,
|
71
|
-
max_delay: 60.0,
|
72
|
-
multiplier: 1.3,
|
73
|
-
retry_codes: [14, 2]
|
69
|
+
initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 2]
|
74
70
|
}
|
75
71
|
|
76
72
|
default_config.rpcs.get_account.timeout = 60.0
|
@@ -143,8 +139,6 @@ module Google
|
|
143
139
|
|
144
140
|
default_config.rpcs.create_firebase_link.timeout = 60.0
|
145
141
|
|
146
|
-
default_config.rpcs.update_firebase_link.timeout = 60.0
|
147
|
-
|
148
142
|
default_config.rpcs.delete_firebase_link.timeout = 60.0
|
149
143
|
|
150
144
|
default_config.rpcs.list_firebase_links.timeout = 60.0
|
@@ -188,19 +182,15 @@ module Google
|
|
188
182
|
##
|
189
183
|
# Create a new AnalyticsAdminService client object.
|
190
184
|
#
|
191
|
-
#
|
192
|
-
#
|
193
|
-
# To create a new AnalyticsAdminService client with the default
|
194
|
-
# configuration:
|
195
|
-
#
|
196
|
-
# client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
185
|
+
# @example
|
197
186
|
#
|
198
|
-
#
|
199
|
-
#
|
187
|
+
# # Create a client using the default configuration
|
188
|
+
# client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
200
189
|
#
|
201
|
-
#
|
202
|
-
#
|
203
|
-
#
|
190
|
+
# # Create a client using a custom configuration
|
191
|
+
# client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config|
|
192
|
+
# config.timeout = 10.0
|
193
|
+
# end
|
204
194
|
#
|
205
195
|
# @yield [config] Configure the AnalyticsAdminService client.
|
206
196
|
# @yieldparam config [Client::Configuration]
|
@@ -220,14 +210,13 @@ module Google
|
|
220
210
|
|
221
211
|
# Create credentials
|
222
212
|
credentials = @config.credentials
|
223
|
-
# Use self-signed JWT if the
|
213
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
224
214
|
# but only if the default endpoint does not have a region prefix.
|
225
|
-
enable_self_signed_jwt = @config.
|
226
|
-
@config.endpoint == Client.configure.endpoint &&
|
215
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
227
216
|
!@config.endpoint.split(".").first.include?("-")
|
228
217
|
credentials ||= Credentials.default scope: @config.scope,
|
229
218
|
enable_self_signed_jwt: enable_self_signed_jwt
|
230
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
219
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
231
220
|
credentials = Credentials.new credentials, scope: @config.scope
|
232
221
|
end
|
233
222
|
@quota_project_id = @config.quota_project
|
@@ -275,6 +264,21 @@ module Google
|
|
275
264
|
#
|
276
265
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
277
266
|
#
|
267
|
+
# @example Basic example
|
268
|
+
# require "google/analytics/admin/v1alpha"
|
269
|
+
#
|
270
|
+
# # Create a client object. The client can be reused for multiple calls.
|
271
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
272
|
+
#
|
273
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
274
|
+
# request = Google::Analytics::Admin::V1alpha::GetAccountRequest.new
|
275
|
+
#
|
276
|
+
# # Call the get_account method.
|
277
|
+
# result = client.get_account request
|
278
|
+
#
|
279
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::Account.
|
280
|
+
# p result
|
281
|
+
#
|
278
282
|
def get_account request, options = nil
|
279
283
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
280
284
|
|
@@ -292,16 +296,20 @@ module Google
|
|
292
296
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
293
297
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
294
298
|
|
295
|
-
header_params = {
|
296
|
-
|
297
|
-
|
299
|
+
header_params = {}
|
300
|
+
if request.name
|
301
|
+
header_params["name"] = request.name
|
302
|
+
end
|
303
|
+
|
298
304
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
299
305
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
300
306
|
|
301
307
|
options.apply_defaults timeout: @config.rpcs.get_account.timeout,
|
302
308
|
metadata: metadata,
|
303
309
|
retry_policy: @config.rpcs.get_account.retry_policy
|
304
|
-
|
310
|
+
|
311
|
+
options.apply_defaults timeout: @config.timeout,
|
312
|
+
metadata: @config.metadata,
|
305
313
|
retry_policy: @config.retry_policy
|
306
314
|
|
307
315
|
@analytics_admin_service_stub.call_rpc :get_account, request, options: options do |response, operation|
|
@@ -357,6 +365,27 @@ module Google
|
|
357
365
|
#
|
358
366
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
359
367
|
#
|
368
|
+
# @example Basic example
|
369
|
+
# require "google/analytics/admin/v1alpha"
|
370
|
+
#
|
371
|
+
# # Create a client object. The client can be reused for multiple calls.
|
372
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
373
|
+
#
|
374
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
375
|
+
# request = Google::Analytics::Admin::V1alpha::ListAccountsRequest.new
|
376
|
+
#
|
377
|
+
# # Call the list_accounts method.
|
378
|
+
# result = client.list_accounts request
|
379
|
+
#
|
380
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
381
|
+
# # iterate over all elements by calling #each, and the enumerable
|
382
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
383
|
+
# # methods are also available for managing paging directly.
|
384
|
+
# result.each do |response|
|
385
|
+
# # Each element is of type ::Google::Analytics::Admin::V1alpha::Account.
|
386
|
+
# p response
|
387
|
+
# end
|
388
|
+
#
|
360
389
|
def list_accounts request, options = nil
|
361
390
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
362
391
|
|
@@ -377,7 +406,9 @@ module Google
|
|
377
406
|
options.apply_defaults timeout: @config.rpcs.list_accounts.timeout,
|
378
407
|
metadata: metadata,
|
379
408
|
retry_policy: @config.rpcs.list_accounts.retry_policy
|
380
|
-
|
409
|
+
|
410
|
+
options.apply_defaults timeout: @config.timeout,
|
411
|
+
metadata: @config.metadata,
|
381
412
|
retry_policy: @config.retry_policy
|
382
413
|
|
383
414
|
@analytics_admin_service_stub.call_rpc :list_accounts, request, options: options do |response, operation|
|
@@ -430,6 +461,21 @@ module Google
|
|
430
461
|
#
|
431
462
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
432
463
|
#
|
464
|
+
# @example Basic example
|
465
|
+
# require "google/analytics/admin/v1alpha"
|
466
|
+
#
|
467
|
+
# # Create a client object. The client can be reused for multiple calls.
|
468
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
469
|
+
#
|
470
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
471
|
+
# request = Google::Analytics::Admin::V1alpha::DeleteAccountRequest.new
|
472
|
+
#
|
473
|
+
# # Call the delete_account method.
|
474
|
+
# result = client.delete_account request
|
475
|
+
#
|
476
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
477
|
+
# p result
|
478
|
+
#
|
433
479
|
def delete_account request, options = nil
|
434
480
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
435
481
|
|
@@ -447,16 +493,20 @@ module Google
|
|
447
493
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
448
494
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
449
495
|
|
450
|
-
header_params = {
|
451
|
-
|
452
|
-
|
496
|
+
header_params = {}
|
497
|
+
if request.name
|
498
|
+
header_params["name"] = request.name
|
499
|
+
end
|
500
|
+
|
453
501
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
454
502
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
455
503
|
|
456
504
|
options.apply_defaults timeout: @config.rpcs.delete_account.timeout,
|
457
505
|
metadata: metadata,
|
458
506
|
retry_policy: @config.rpcs.delete_account.retry_policy
|
459
|
-
|
507
|
+
|
508
|
+
options.apply_defaults timeout: @config.timeout,
|
509
|
+
metadata: @config.metadata,
|
460
510
|
retry_policy: @config.retry_policy
|
461
511
|
|
462
512
|
@analytics_admin_service_stub.call_rpc :delete_account, request, options: options do |response, operation|
|
@@ -501,6 +551,21 @@ module Google
|
|
501
551
|
#
|
502
552
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
503
553
|
#
|
554
|
+
# @example Basic example
|
555
|
+
# require "google/analytics/admin/v1alpha"
|
556
|
+
#
|
557
|
+
# # Create a client object. The client can be reused for multiple calls.
|
558
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
559
|
+
#
|
560
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
561
|
+
# request = Google::Analytics::Admin::V1alpha::UpdateAccountRequest.new
|
562
|
+
#
|
563
|
+
# # Call the update_account method.
|
564
|
+
# result = client.update_account request
|
565
|
+
#
|
566
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::Account.
|
567
|
+
# p result
|
568
|
+
#
|
504
569
|
def update_account request, options = nil
|
505
570
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
506
571
|
|
@@ -518,16 +583,20 @@ module Google
|
|
518
583
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
519
584
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
520
585
|
|
521
|
-
header_params = {
|
522
|
-
|
523
|
-
|
586
|
+
header_params = {}
|
587
|
+
if request.account&.name
|
588
|
+
header_params["account.name"] = request.account.name
|
589
|
+
end
|
590
|
+
|
524
591
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
525
592
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
526
593
|
|
527
594
|
options.apply_defaults timeout: @config.rpcs.update_account.timeout,
|
528
595
|
metadata: metadata,
|
529
596
|
retry_policy: @config.rpcs.update_account.retry_policy
|
530
|
-
|
597
|
+
|
598
|
+
options.apply_defaults timeout: @config.timeout,
|
599
|
+
metadata: @config.metadata,
|
531
600
|
retry_policy: @config.retry_policy
|
532
601
|
|
533
602
|
@analytics_admin_service_stub.call_rpc :update_account, request, options: options do |response, operation|
|
@@ -570,6 +639,21 @@ module Google
|
|
570
639
|
#
|
571
640
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
572
641
|
#
|
642
|
+
# @example Basic example
|
643
|
+
# require "google/analytics/admin/v1alpha"
|
644
|
+
#
|
645
|
+
# # Create a client object. The client can be reused for multiple calls.
|
646
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
647
|
+
#
|
648
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
649
|
+
# request = Google::Analytics::Admin::V1alpha::ProvisionAccountTicketRequest.new
|
650
|
+
#
|
651
|
+
# # Call the provision_account_ticket method.
|
652
|
+
# result = client.provision_account_ticket request
|
653
|
+
#
|
654
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::ProvisionAccountTicketResponse.
|
655
|
+
# p result
|
656
|
+
#
|
573
657
|
def provision_account_ticket request, options = nil
|
574
658
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
575
659
|
|
@@ -590,7 +674,9 @@ module Google
|
|
590
674
|
options.apply_defaults timeout: @config.rpcs.provision_account_ticket.timeout,
|
591
675
|
metadata: metadata,
|
592
676
|
retry_policy: @config.rpcs.provision_account_ticket.retry_policy
|
593
|
-
|
677
|
+
|
678
|
+
options.apply_defaults timeout: @config.timeout,
|
679
|
+
metadata: @config.metadata,
|
594
680
|
retry_policy: @config.retry_policy
|
595
681
|
|
596
682
|
@analytics_admin_service_stub.call_rpc :provision_account_ticket, request, options: options do |response, operation|
|
@@ -638,6 +724,27 @@ module Google
|
|
638
724
|
#
|
639
725
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
640
726
|
#
|
727
|
+
# @example Basic example
|
728
|
+
# require "google/analytics/admin/v1alpha"
|
729
|
+
#
|
730
|
+
# # Create a client object. The client can be reused for multiple calls.
|
731
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
732
|
+
#
|
733
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
734
|
+
# request = Google::Analytics::Admin::V1alpha::ListAccountSummariesRequest.new
|
735
|
+
#
|
736
|
+
# # Call the list_account_summaries method.
|
737
|
+
# result = client.list_account_summaries request
|
738
|
+
#
|
739
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
740
|
+
# # iterate over all elements by calling #each, and the enumerable
|
741
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
742
|
+
# # methods are also available for managing paging directly.
|
743
|
+
# result.each do |response|
|
744
|
+
# # Each element is of type ::Google::Analytics::Admin::V1alpha::AccountSummary.
|
745
|
+
# p response
|
746
|
+
# end
|
747
|
+
#
|
641
748
|
def list_account_summaries request, options = nil
|
642
749
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
643
750
|
|
@@ -658,7 +765,9 @@ module Google
|
|
658
765
|
options.apply_defaults timeout: @config.rpcs.list_account_summaries.timeout,
|
659
766
|
metadata: metadata,
|
660
767
|
retry_policy: @config.rpcs.list_account_summaries.retry_policy
|
661
|
-
|
768
|
+
|
769
|
+
options.apply_defaults timeout: @config.timeout,
|
770
|
+
metadata: @config.metadata,
|
662
771
|
retry_policy: @config.retry_policy
|
663
772
|
|
664
773
|
@analytics_admin_service_stub.call_rpc :list_account_summaries, request, options: options do |response, operation|
|
@@ -701,6 +810,21 @@ module Google
|
|
701
810
|
#
|
702
811
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
703
812
|
#
|
813
|
+
# @example Basic example
|
814
|
+
# require "google/analytics/admin/v1alpha"
|
815
|
+
#
|
816
|
+
# # Create a client object. The client can be reused for multiple calls.
|
817
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
818
|
+
#
|
819
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
820
|
+
# request = Google::Analytics::Admin::V1alpha::GetPropertyRequest.new
|
821
|
+
#
|
822
|
+
# # Call the get_property method.
|
823
|
+
# result = client.get_property request
|
824
|
+
#
|
825
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::Property.
|
826
|
+
# p result
|
827
|
+
#
|
704
828
|
def get_property request, options = nil
|
705
829
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
706
830
|
|
@@ -718,16 +842,20 @@ module Google
|
|
718
842
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
719
843
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
720
844
|
|
721
|
-
header_params = {
|
722
|
-
|
723
|
-
|
845
|
+
header_params = {}
|
846
|
+
if request.name
|
847
|
+
header_params["name"] = request.name
|
848
|
+
end
|
849
|
+
|
724
850
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
725
851
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
726
852
|
|
727
853
|
options.apply_defaults timeout: @config.rpcs.get_property.timeout,
|
728
854
|
metadata: metadata,
|
729
855
|
retry_policy: @config.rpcs.get_property.retry_policy
|
730
|
-
|
856
|
+
|
857
|
+
options.apply_defaults timeout: @config.timeout,
|
858
|
+
metadata: @config.metadata,
|
731
859
|
retry_policy: @config.retry_policy
|
732
860
|
|
733
861
|
@analytics_admin_service_stub.call_rpc :get_property, request, options: options do |response, operation|
|
@@ -798,6 +926,27 @@ module Google
|
|
798
926
|
#
|
799
927
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
800
928
|
#
|
929
|
+
# @example Basic example
|
930
|
+
# require "google/analytics/admin/v1alpha"
|
931
|
+
#
|
932
|
+
# # Create a client object. The client can be reused for multiple calls.
|
933
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
934
|
+
#
|
935
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
936
|
+
# request = Google::Analytics::Admin::V1alpha::ListPropertiesRequest.new
|
937
|
+
#
|
938
|
+
# # Call the list_properties method.
|
939
|
+
# result = client.list_properties request
|
940
|
+
#
|
941
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
942
|
+
# # iterate over all elements by calling #each, and the enumerable
|
943
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
944
|
+
# # methods are also available for managing paging directly.
|
945
|
+
# result.each do |response|
|
946
|
+
# # Each element is of type ::Google::Analytics::Admin::V1alpha::Property.
|
947
|
+
# p response
|
948
|
+
# end
|
949
|
+
#
|
801
950
|
def list_properties request, options = nil
|
802
951
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
803
952
|
|
@@ -818,7 +967,9 @@ module Google
|
|
818
967
|
options.apply_defaults timeout: @config.rpcs.list_properties.timeout,
|
819
968
|
metadata: metadata,
|
820
969
|
retry_policy: @config.rpcs.list_properties.retry_policy
|
821
|
-
|
970
|
+
|
971
|
+
options.apply_defaults timeout: @config.timeout,
|
972
|
+
metadata: @config.metadata,
|
822
973
|
retry_policy: @config.retry_policy
|
823
974
|
|
824
975
|
@analytics_admin_service_stub.call_rpc :list_properties, request, options: options do |response, operation|
|
@@ -860,6 +1011,21 @@ module Google
|
|
860
1011
|
#
|
861
1012
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
862
1013
|
#
|
1014
|
+
# @example Basic example
|
1015
|
+
# require "google/analytics/admin/v1alpha"
|
1016
|
+
#
|
1017
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1018
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
1019
|
+
#
|
1020
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1021
|
+
# request = Google::Analytics::Admin::V1alpha::CreatePropertyRequest.new
|
1022
|
+
#
|
1023
|
+
# # Call the create_property method.
|
1024
|
+
# result = client.create_property request
|
1025
|
+
#
|
1026
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::Property.
|
1027
|
+
# p result
|
1028
|
+
#
|
863
1029
|
def create_property request, options = nil
|
864
1030
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
865
1031
|
|
@@ -880,7 +1046,9 @@ module Google
|
|
880
1046
|
options.apply_defaults timeout: @config.rpcs.create_property.timeout,
|
881
1047
|
metadata: metadata,
|
882
1048
|
retry_policy: @config.rpcs.create_property.retry_policy
|
883
|
-
|
1049
|
+
|
1050
|
+
options.apply_defaults timeout: @config.timeout,
|
1051
|
+
metadata: @config.metadata,
|
884
1052
|
retry_policy: @config.retry_policy
|
885
1053
|
|
886
1054
|
@analytics_admin_service_stub.call_rpc :create_property, request, options: options do |response, operation|
|
@@ -932,6 +1100,21 @@ module Google
|
|
932
1100
|
#
|
933
1101
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
934
1102
|
#
|
1103
|
+
# @example Basic example
|
1104
|
+
# require "google/analytics/admin/v1alpha"
|
1105
|
+
#
|
1106
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1107
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
1108
|
+
#
|
1109
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1110
|
+
# request = Google::Analytics::Admin::V1alpha::DeletePropertyRequest.new
|
1111
|
+
#
|
1112
|
+
# # Call the delete_property method.
|
1113
|
+
# result = client.delete_property request
|
1114
|
+
#
|
1115
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::Property.
|
1116
|
+
# p result
|
1117
|
+
#
|
935
1118
|
def delete_property request, options = nil
|
936
1119
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
937
1120
|
|
@@ -949,16 +1132,20 @@ module Google
|
|
949
1132
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
950
1133
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
951
1134
|
|
952
|
-
header_params = {
|
953
|
-
|
954
|
-
|
1135
|
+
header_params = {}
|
1136
|
+
if request.name
|
1137
|
+
header_params["name"] = request.name
|
1138
|
+
end
|
1139
|
+
|
955
1140
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
956
1141
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
957
1142
|
|
958
1143
|
options.apply_defaults timeout: @config.rpcs.delete_property.timeout,
|
959
1144
|
metadata: metadata,
|
960
1145
|
retry_policy: @config.rpcs.delete_property.retry_policy
|
961
|
-
|
1146
|
+
|
1147
|
+
options.apply_defaults timeout: @config.timeout,
|
1148
|
+
metadata: @config.metadata,
|
962
1149
|
retry_policy: @config.retry_policy
|
963
1150
|
|
964
1151
|
@analytics_admin_service_stub.call_rpc :delete_property, request, options: options do |response, operation|
|
@@ -1004,6 +1191,21 @@ module Google
|
|
1004
1191
|
#
|
1005
1192
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1006
1193
|
#
|
1194
|
+
# @example Basic example
|
1195
|
+
# require "google/analytics/admin/v1alpha"
|
1196
|
+
#
|
1197
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1198
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
1199
|
+
#
|
1200
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1201
|
+
# request = Google::Analytics::Admin::V1alpha::UpdatePropertyRequest.new
|
1202
|
+
#
|
1203
|
+
# # Call the update_property method.
|
1204
|
+
# result = client.update_property request
|
1205
|
+
#
|
1206
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::Property.
|
1207
|
+
# p result
|
1208
|
+
#
|
1007
1209
|
def update_property request, options = nil
|
1008
1210
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1009
1211
|
|
@@ -1021,16 +1223,20 @@ module Google
|
|
1021
1223
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
1022
1224
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1023
1225
|
|
1024
|
-
header_params = {
|
1025
|
-
|
1026
|
-
|
1226
|
+
header_params = {}
|
1227
|
+
if request.property&.name
|
1228
|
+
header_params["property.name"] = request.property.name
|
1229
|
+
end
|
1230
|
+
|
1027
1231
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1028
1232
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1029
1233
|
|
1030
1234
|
options.apply_defaults timeout: @config.rpcs.update_property.timeout,
|
1031
1235
|
metadata: metadata,
|
1032
1236
|
retry_policy: @config.rpcs.update_property.retry_policy
|
1033
|
-
|
1237
|
+
|
1238
|
+
options.apply_defaults timeout: @config.timeout,
|
1239
|
+
metadata: @config.metadata,
|
1034
1240
|
retry_policy: @config.retry_policy
|
1035
1241
|
|
1036
1242
|
@analytics_admin_service_stub.call_rpc :update_property, request, options: options do |response, operation|
|
@@ -1070,6 +1276,21 @@ module Google
|
|
1070
1276
|
#
|
1071
1277
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1072
1278
|
#
|
1279
|
+
# @example Basic example
|
1280
|
+
# require "google/analytics/admin/v1alpha"
|
1281
|
+
#
|
1282
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1283
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
1284
|
+
#
|
1285
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1286
|
+
# request = Google::Analytics::Admin::V1alpha::GetUserLinkRequest.new
|
1287
|
+
#
|
1288
|
+
# # Call the get_user_link method.
|
1289
|
+
# result = client.get_user_link request
|
1290
|
+
#
|
1291
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::UserLink.
|
1292
|
+
# p result
|
1293
|
+
#
|
1073
1294
|
def get_user_link request, options = nil
|
1074
1295
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1075
1296
|
|
@@ -1087,16 +1308,20 @@ module Google
|
|
1087
1308
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
1088
1309
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1089
1310
|
|
1090
|
-
header_params = {
|
1091
|
-
|
1092
|
-
|
1311
|
+
header_params = {}
|
1312
|
+
if request.name
|
1313
|
+
header_params["name"] = request.name
|
1314
|
+
end
|
1315
|
+
|
1093
1316
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1094
1317
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1095
1318
|
|
1096
1319
|
options.apply_defaults timeout: @config.rpcs.get_user_link.timeout,
|
1097
1320
|
metadata: metadata,
|
1098
1321
|
retry_policy: @config.rpcs.get_user_link.retry_policy
|
1099
|
-
|
1322
|
+
|
1323
|
+
options.apply_defaults timeout: @config.timeout,
|
1324
|
+
metadata: @config.metadata,
|
1100
1325
|
retry_policy: @config.retry_policy
|
1101
1326
|
|
1102
1327
|
@analytics_admin_service_stub.call_rpc :get_user_link, request, options: options do |response, operation|
|
@@ -1143,6 +1368,21 @@ module Google
|
|
1143
1368
|
#
|
1144
1369
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1145
1370
|
#
|
1371
|
+
# @example Basic example
|
1372
|
+
# require "google/analytics/admin/v1alpha"
|
1373
|
+
#
|
1374
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1375
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
1376
|
+
#
|
1377
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1378
|
+
# request = Google::Analytics::Admin::V1alpha::BatchGetUserLinksRequest.new
|
1379
|
+
#
|
1380
|
+
# # Call the batch_get_user_links method.
|
1381
|
+
# result = client.batch_get_user_links request
|
1382
|
+
#
|
1383
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::BatchGetUserLinksResponse.
|
1384
|
+
# p result
|
1385
|
+
#
|
1146
1386
|
def batch_get_user_links request, options = nil
|
1147
1387
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1148
1388
|
|
@@ -1160,16 +1400,20 @@ module Google
|
|
1160
1400
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
1161
1401
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1162
1402
|
|
1163
|
-
header_params = {
|
1164
|
-
|
1165
|
-
|
1403
|
+
header_params = {}
|
1404
|
+
if request.parent
|
1405
|
+
header_params["parent"] = request.parent
|
1406
|
+
end
|
1407
|
+
|
1166
1408
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1167
1409
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1168
1410
|
|
1169
1411
|
options.apply_defaults timeout: @config.rpcs.batch_get_user_links.timeout,
|
1170
1412
|
metadata: metadata,
|
1171
1413
|
retry_policy: @config.rpcs.batch_get_user_links.retry_policy
|
1172
|
-
|
1414
|
+
|
1415
|
+
options.apply_defaults timeout: @config.timeout,
|
1416
|
+
metadata: @config.metadata,
|
1173
1417
|
retry_policy: @config.retry_policy
|
1174
1418
|
|
1175
1419
|
@analytics_admin_service_stub.call_rpc :batch_get_user_links, request, options: options do |response, operation|
|
@@ -1219,6 +1463,27 @@ module Google
|
|
1219
1463
|
#
|
1220
1464
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1221
1465
|
#
|
1466
|
+
# @example Basic example
|
1467
|
+
# require "google/analytics/admin/v1alpha"
|
1468
|
+
#
|
1469
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1470
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
1471
|
+
#
|
1472
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1473
|
+
# request = Google::Analytics::Admin::V1alpha::ListUserLinksRequest.new
|
1474
|
+
#
|
1475
|
+
# # Call the list_user_links method.
|
1476
|
+
# result = client.list_user_links request
|
1477
|
+
#
|
1478
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1479
|
+
# # iterate over all elements by calling #each, and the enumerable
|
1480
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
1481
|
+
# # methods are also available for managing paging directly.
|
1482
|
+
# result.each do |response|
|
1483
|
+
# # Each element is of type ::Google::Analytics::Admin::V1alpha::UserLink.
|
1484
|
+
# p response
|
1485
|
+
# end
|
1486
|
+
#
|
1222
1487
|
def list_user_links request, options = nil
|
1223
1488
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1224
1489
|
|
@@ -1236,16 +1501,20 @@ module Google
|
|
1236
1501
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
1237
1502
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1238
1503
|
|
1239
|
-
header_params = {
|
1240
|
-
|
1241
|
-
|
1504
|
+
header_params = {}
|
1505
|
+
if request.parent
|
1506
|
+
header_params["parent"] = request.parent
|
1507
|
+
end
|
1508
|
+
|
1242
1509
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1243
1510
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1244
1511
|
|
1245
1512
|
options.apply_defaults timeout: @config.rpcs.list_user_links.timeout,
|
1246
1513
|
metadata: metadata,
|
1247
1514
|
retry_policy: @config.rpcs.list_user_links.retry_policy
|
1248
|
-
|
1515
|
+
|
1516
|
+
options.apply_defaults timeout: @config.timeout,
|
1517
|
+
metadata: @config.metadata,
|
1249
1518
|
retry_policy: @config.retry_policy
|
1250
1519
|
|
1251
1520
|
@analytics_admin_service_stub.call_rpc :list_user_links, request, options: options do |response, operation|
|
@@ -1304,6 +1573,27 @@ module Google
|
|
1304
1573
|
#
|
1305
1574
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1306
1575
|
#
|
1576
|
+
# @example Basic example
|
1577
|
+
# require "google/analytics/admin/v1alpha"
|
1578
|
+
#
|
1579
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1580
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
1581
|
+
#
|
1582
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1583
|
+
# request = Google::Analytics::Admin::V1alpha::AuditUserLinksRequest.new
|
1584
|
+
#
|
1585
|
+
# # Call the audit_user_links method.
|
1586
|
+
# result = client.audit_user_links request
|
1587
|
+
#
|
1588
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1589
|
+
# # iterate over all elements by calling #each, and the enumerable
|
1590
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
1591
|
+
# # methods are also available for managing paging directly.
|
1592
|
+
# result.each do |response|
|
1593
|
+
# # Each element is of type ::Google::Analytics::Admin::V1alpha::AuditUserLink.
|
1594
|
+
# p response
|
1595
|
+
# end
|
1596
|
+
#
|
1307
1597
|
def audit_user_links request, options = nil
|
1308
1598
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1309
1599
|
|
@@ -1321,16 +1611,20 @@ module Google
|
|
1321
1611
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
1322
1612
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1323
1613
|
|
1324
|
-
header_params = {
|
1325
|
-
|
1326
|
-
|
1614
|
+
header_params = {}
|
1615
|
+
if request.parent
|
1616
|
+
header_params["parent"] = request.parent
|
1617
|
+
end
|
1618
|
+
|
1327
1619
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1328
1620
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1329
1621
|
|
1330
1622
|
options.apply_defaults timeout: @config.rpcs.audit_user_links.timeout,
|
1331
1623
|
metadata: metadata,
|
1332
1624
|
retry_policy: @config.rpcs.audit_user_links.retry_policy
|
1333
|
-
|
1625
|
+
|
1626
|
+
options.apply_defaults timeout: @config.timeout,
|
1627
|
+
metadata: @config.metadata,
|
1334
1628
|
retry_policy: @config.retry_policy
|
1335
1629
|
|
1336
1630
|
@analytics_admin_service_stub.call_rpc :audit_user_links, request, options: options do |response, operation|
|
@@ -1380,6 +1674,21 @@ module Google
|
|
1380
1674
|
#
|
1381
1675
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1382
1676
|
#
|
1677
|
+
# @example Basic example
|
1678
|
+
# require "google/analytics/admin/v1alpha"
|
1679
|
+
#
|
1680
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1681
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
1682
|
+
#
|
1683
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1684
|
+
# request = Google::Analytics::Admin::V1alpha::CreateUserLinkRequest.new
|
1685
|
+
#
|
1686
|
+
# # Call the create_user_link method.
|
1687
|
+
# result = client.create_user_link request
|
1688
|
+
#
|
1689
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::UserLink.
|
1690
|
+
# p result
|
1691
|
+
#
|
1383
1692
|
def create_user_link request, options = nil
|
1384
1693
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1385
1694
|
|
@@ -1397,16 +1706,20 @@ module Google
|
|
1397
1706
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
1398
1707
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1399
1708
|
|
1400
|
-
header_params = {
|
1401
|
-
|
1402
|
-
|
1709
|
+
header_params = {}
|
1710
|
+
if request.parent
|
1711
|
+
header_params["parent"] = request.parent
|
1712
|
+
end
|
1713
|
+
|
1403
1714
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1404
1715
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1405
1716
|
|
1406
1717
|
options.apply_defaults timeout: @config.rpcs.create_user_link.timeout,
|
1407
1718
|
metadata: metadata,
|
1408
1719
|
retry_policy: @config.rpcs.create_user_link.retry_policy
|
1409
|
-
|
1720
|
+
|
1721
|
+
options.apply_defaults timeout: @config.timeout,
|
1722
|
+
metadata: @config.metadata,
|
1410
1723
|
retry_policy: @config.retry_policy
|
1411
1724
|
|
1412
1725
|
@analytics_admin_service_stub.call_rpc :create_user_link, request, options: options do |response, operation|
|
@@ -1459,6 +1772,21 @@ module Google
|
|
1459
1772
|
#
|
1460
1773
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1461
1774
|
#
|
1775
|
+
# @example Basic example
|
1776
|
+
# require "google/analytics/admin/v1alpha"
|
1777
|
+
#
|
1778
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1779
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
1780
|
+
#
|
1781
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1782
|
+
# request = Google::Analytics::Admin::V1alpha::BatchCreateUserLinksRequest.new
|
1783
|
+
#
|
1784
|
+
# # Call the batch_create_user_links method.
|
1785
|
+
# result = client.batch_create_user_links request
|
1786
|
+
#
|
1787
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::BatchCreateUserLinksResponse.
|
1788
|
+
# p result
|
1789
|
+
#
|
1462
1790
|
def batch_create_user_links request, options = nil
|
1463
1791
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1464
1792
|
|
@@ -1476,16 +1804,20 @@ module Google
|
|
1476
1804
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
1477
1805
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1478
1806
|
|
1479
|
-
header_params = {
|
1480
|
-
|
1481
|
-
|
1807
|
+
header_params = {}
|
1808
|
+
if request.parent
|
1809
|
+
header_params["parent"] = request.parent
|
1810
|
+
end
|
1811
|
+
|
1482
1812
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1483
1813
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1484
1814
|
|
1485
1815
|
options.apply_defaults timeout: @config.rpcs.batch_create_user_links.timeout,
|
1486
1816
|
metadata: metadata,
|
1487
1817
|
retry_policy: @config.rpcs.batch_create_user_links.retry_policy
|
1488
|
-
|
1818
|
+
|
1819
|
+
options.apply_defaults timeout: @config.timeout,
|
1820
|
+
metadata: @config.metadata,
|
1489
1821
|
retry_policy: @config.retry_policy
|
1490
1822
|
|
1491
1823
|
@analytics_admin_service_stub.call_rpc :batch_create_user_links, request, options: options do |response, operation|
|
@@ -1525,6 +1857,21 @@ module Google
|
|
1525
1857
|
#
|
1526
1858
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1527
1859
|
#
|
1860
|
+
# @example Basic example
|
1861
|
+
# require "google/analytics/admin/v1alpha"
|
1862
|
+
#
|
1863
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1864
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
1865
|
+
#
|
1866
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1867
|
+
# request = Google::Analytics::Admin::V1alpha::UpdateUserLinkRequest.new
|
1868
|
+
#
|
1869
|
+
# # Call the update_user_link method.
|
1870
|
+
# result = client.update_user_link request
|
1871
|
+
#
|
1872
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::UserLink.
|
1873
|
+
# p result
|
1874
|
+
#
|
1528
1875
|
def update_user_link request, options = nil
|
1529
1876
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1530
1877
|
|
@@ -1542,16 +1889,20 @@ module Google
|
|
1542
1889
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
1543
1890
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1544
1891
|
|
1545
|
-
header_params = {
|
1546
|
-
|
1547
|
-
|
1892
|
+
header_params = {}
|
1893
|
+
if request.user_link&.name
|
1894
|
+
header_params["user_link.name"] = request.user_link.name
|
1895
|
+
end
|
1896
|
+
|
1548
1897
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1549
1898
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1550
1899
|
|
1551
1900
|
options.apply_defaults timeout: @config.rpcs.update_user_link.timeout,
|
1552
1901
|
metadata: metadata,
|
1553
1902
|
retry_policy: @config.rpcs.update_user_link.retry_policy
|
1554
|
-
|
1903
|
+
|
1904
|
+
options.apply_defaults timeout: @config.timeout,
|
1905
|
+
metadata: @config.metadata,
|
1555
1906
|
retry_policy: @config.retry_policy
|
1556
1907
|
|
1557
1908
|
@analytics_admin_service_stub.call_rpc :update_user_link, request, options: options do |response, operation|
|
@@ -1597,6 +1948,21 @@ module Google
|
|
1597
1948
|
#
|
1598
1949
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1599
1950
|
#
|
1951
|
+
# @example Basic example
|
1952
|
+
# require "google/analytics/admin/v1alpha"
|
1953
|
+
#
|
1954
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1955
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
1956
|
+
#
|
1957
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1958
|
+
# request = Google::Analytics::Admin::V1alpha::BatchUpdateUserLinksRequest.new
|
1959
|
+
#
|
1960
|
+
# # Call the batch_update_user_links method.
|
1961
|
+
# result = client.batch_update_user_links request
|
1962
|
+
#
|
1963
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::BatchUpdateUserLinksResponse.
|
1964
|
+
# p result
|
1965
|
+
#
|
1600
1966
|
def batch_update_user_links request, options = nil
|
1601
1967
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1602
1968
|
|
@@ -1614,16 +1980,20 @@ module Google
|
|
1614
1980
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
1615
1981
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1616
1982
|
|
1617
|
-
header_params = {
|
1618
|
-
|
1619
|
-
|
1983
|
+
header_params = {}
|
1984
|
+
if request.parent
|
1985
|
+
header_params["parent"] = request.parent
|
1986
|
+
end
|
1987
|
+
|
1620
1988
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1621
1989
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1622
1990
|
|
1623
1991
|
options.apply_defaults timeout: @config.rpcs.batch_update_user_links.timeout,
|
1624
1992
|
metadata: metadata,
|
1625
1993
|
retry_policy: @config.rpcs.batch_update_user_links.retry_policy
|
1626
|
-
|
1994
|
+
|
1995
|
+
options.apply_defaults timeout: @config.timeout,
|
1996
|
+
metadata: @config.metadata,
|
1627
1997
|
retry_policy: @config.retry_policy
|
1628
1998
|
|
1629
1999
|
@analytics_admin_service_stub.call_rpc :batch_update_user_links, request, options: options do |response, operation|
|
@@ -1663,6 +2033,21 @@ module Google
|
|
1663
2033
|
#
|
1664
2034
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1665
2035
|
#
|
2036
|
+
# @example Basic example
|
2037
|
+
# require "google/analytics/admin/v1alpha"
|
2038
|
+
#
|
2039
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2040
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
2041
|
+
#
|
2042
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2043
|
+
# request = Google::Analytics::Admin::V1alpha::DeleteUserLinkRequest.new
|
2044
|
+
#
|
2045
|
+
# # Call the delete_user_link method.
|
2046
|
+
# result = client.delete_user_link request
|
2047
|
+
#
|
2048
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
2049
|
+
# p result
|
2050
|
+
#
|
1666
2051
|
def delete_user_link request, options = nil
|
1667
2052
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1668
2053
|
|
@@ -1680,16 +2065,20 @@ module Google
|
|
1680
2065
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
1681
2066
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1682
2067
|
|
1683
|
-
header_params = {
|
1684
|
-
|
1685
|
-
|
2068
|
+
header_params = {}
|
2069
|
+
if request.name
|
2070
|
+
header_params["name"] = request.name
|
2071
|
+
end
|
2072
|
+
|
1686
2073
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1687
2074
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1688
2075
|
|
1689
2076
|
options.apply_defaults timeout: @config.rpcs.delete_user_link.timeout,
|
1690
2077
|
metadata: metadata,
|
1691
2078
|
retry_policy: @config.rpcs.delete_user_link.retry_policy
|
1692
|
-
|
2079
|
+
|
2080
|
+
options.apply_defaults timeout: @config.timeout,
|
2081
|
+
metadata: @config.metadata,
|
1693
2082
|
retry_policy: @config.retry_policy
|
1694
2083
|
|
1695
2084
|
@analytics_admin_service_stub.call_rpc :delete_user_link, request, options: options do |response, operation|
|
@@ -1735,6 +2124,21 @@ module Google
|
|
1735
2124
|
#
|
1736
2125
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1737
2126
|
#
|
2127
|
+
# @example Basic example
|
2128
|
+
# require "google/analytics/admin/v1alpha"
|
2129
|
+
#
|
2130
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2131
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
2132
|
+
#
|
2133
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2134
|
+
# request = Google::Analytics::Admin::V1alpha::BatchDeleteUserLinksRequest.new
|
2135
|
+
#
|
2136
|
+
# # Call the batch_delete_user_links method.
|
2137
|
+
# result = client.batch_delete_user_links request
|
2138
|
+
#
|
2139
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
2140
|
+
# p result
|
2141
|
+
#
|
1738
2142
|
def batch_delete_user_links request, options = nil
|
1739
2143
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1740
2144
|
|
@@ -1752,16 +2156,20 @@ module Google
|
|
1752
2156
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
1753
2157
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1754
2158
|
|
1755
|
-
header_params = {
|
1756
|
-
|
1757
|
-
|
2159
|
+
header_params = {}
|
2160
|
+
if request.parent
|
2161
|
+
header_params["parent"] = request.parent
|
2162
|
+
end
|
2163
|
+
|
1758
2164
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1759
2165
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1760
2166
|
|
1761
2167
|
options.apply_defaults timeout: @config.rpcs.batch_delete_user_links.timeout,
|
1762
2168
|
metadata: metadata,
|
1763
2169
|
retry_policy: @config.rpcs.batch_delete_user_links.retry_policy
|
1764
|
-
|
2170
|
+
|
2171
|
+
options.apply_defaults timeout: @config.timeout,
|
2172
|
+
metadata: @config.metadata,
|
1765
2173
|
retry_policy: @config.retry_policy
|
1766
2174
|
|
1767
2175
|
@analytics_admin_service_stub.call_rpc :batch_delete_user_links, request, options: options do |response, operation|
|
@@ -1803,6 +2211,21 @@ module Google
|
|
1803
2211
|
#
|
1804
2212
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1805
2213
|
#
|
2214
|
+
# @example Basic example
|
2215
|
+
# require "google/analytics/admin/v1alpha"
|
2216
|
+
#
|
2217
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2218
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
2219
|
+
#
|
2220
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2221
|
+
# request = Google::Analytics::Admin::V1alpha::GetWebDataStreamRequest.new
|
2222
|
+
#
|
2223
|
+
# # Call the get_web_data_stream method.
|
2224
|
+
# result = client.get_web_data_stream request
|
2225
|
+
#
|
2226
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::WebDataStream.
|
2227
|
+
# p result
|
2228
|
+
#
|
1806
2229
|
def get_web_data_stream request, options = nil
|
1807
2230
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1808
2231
|
|
@@ -1820,16 +2243,20 @@ module Google
|
|
1820
2243
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
1821
2244
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1822
2245
|
|
1823
|
-
header_params = {
|
1824
|
-
|
1825
|
-
|
2246
|
+
header_params = {}
|
2247
|
+
if request.name
|
2248
|
+
header_params["name"] = request.name
|
2249
|
+
end
|
2250
|
+
|
1826
2251
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1827
2252
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1828
2253
|
|
1829
2254
|
options.apply_defaults timeout: @config.rpcs.get_web_data_stream.timeout,
|
1830
2255
|
metadata: metadata,
|
1831
2256
|
retry_policy: @config.rpcs.get_web_data_stream.retry_policy
|
1832
|
-
|
2257
|
+
|
2258
|
+
options.apply_defaults timeout: @config.timeout,
|
2259
|
+
metadata: @config.metadata,
|
1833
2260
|
retry_policy: @config.retry_policy
|
1834
2261
|
|
1835
2262
|
@analytics_admin_service_stub.call_rpc :get_web_data_stream, request, options: options do |response, operation|
|
@@ -1871,6 +2298,21 @@ module Google
|
|
1871
2298
|
#
|
1872
2299
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1873
2300
|
#
|
2301
|
+
# @example Basic example
|
2302
|
+
# require "google/analytics/admin/v1alpha"
|
2303
|
+
#
|
2304
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2305
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
2306
|
+
#
|
2307
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2308
|
+
# request = Google::Analytics::Admin::V1alpha::DeleteWebDataStreamRequest.new
|
2309
|
+
#
|
2310
|
+
# # Call the delete_web_data_stream method.
|
2311
|
+
# result = client.delete_web_data_stream request
|
2312
|
+
#
|
2313
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
2314
|
+
# p result
|
2315
|
+
#
|
1874
2316
|
def delete_web_data_stream request, options = nil
|
1875
2317
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1876
2318
|
|
@@ -1888,16 +2330,20 @@ module Google
|
|
1888
2330
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
1889
2331
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1890
2332
|
|
1891
|
-
header_params = {
|
1892
|
-
|
1893
|
-
|
2333
|
+
header_params = {}
|
2334
|
+
if request.name
|
2335
|
+
header_params["name"] = request.name
|
2336
|
+
end
|
2337
|
+
|
1894
2338
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1895
2339
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1896
2340
|
|
1897
2341
|
options.apply_defaults timeout: @config.rpcs.delete_web_data_stream.timeout,
|
1898
2342
|
metadata: metadata,
|
1899
2343
|
retry_policy: @config.rpcs.delete_web_data_stream.retry_policy
|
1900
|
-
|
2344
|
+
|
2345
|
+
options.apply_defaults timeout: @config.timeout,
|
2346
|
+
metadata: @config.metadata,
|
1901
2347
|
retry_policy: @config.retry_policy
|
1902
2348
|
|
1903
2349
|
@analytics_admin_service_stub.call_rpc :delete_web_data_stream, request, options: options do |response, operation|
|
@@ -1942,6 +2388,21 @@ module Google
|
|
1942
2388
|
#
|
1943
2389
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1944
2390
|
#
|
2391
|
+
# @example Basic example
|
2392
|
+
# require "google/analytics/admin/v1alpha"
|
2393
|
+
#
|
2394
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2395
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
2396
|
+
#
|
2397
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2398
|
+
# request = Google::Analytics::Admin::V1alpha::UpdateWebDataStreamRequest.new
|
2399
|
+
#
|
2400
|
+
# # Call the update_web_data_stream method.
|
2401
|
+
# result = client.update_web_data_stream request
|
2402
|
+
#
|
2403
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::WebDataStream.
|
2404
|
+
# p result
|
2405
|
+
#
|
1945
2406
|
def update_web_data_stream request, options = nil
|
1946
2407
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1947
2408
|
|
@@ -1959,16 +2420,20 @@ module Google
|
|
1959
2420
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
1960
2421
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1961
2422
|
|
1962
|
-
header_params = {
|
1963
|
-
|
1964
|
-
|
2423
|
+
header_params = {}
|
2424
|
+
if request.web_data_stream&.name
|
2425
|
+
header_params["web_data_stream.name"] = request.web_data_stream.name
|
2426
|
+
end
|
2427
|
+
|
1965
2428
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1966
2429
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1967
2430
|
|
1968
2431
|
options.apply_defaults timeout: @config.rpcs.update_web_data_stream.timeout,
|
1969
2432
|
metadata: metadata,
|
1970
2433
|
retry_policy: @config.rpcs.update_web_data_stream.retry_policy
|
1971
|
-
|
2434
|
+
|
2435
|
+
options.apply_defaults timeout: @config.timeout,
|
2436
|
+
metadata: @config.metadata,
|
1972
2437
|
retry_policy: @config.retry_policy
|
1973
2438
|
|
1974
2439
|
@analytics_admin_service_stub.call_rpc :update_web_data_stream, request, options: options do |response, operation|
|
@@ -2011,6 +2476,21 @@ module Google
|
|
2011
2476
|
#
|
2012
2477
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2013
2478
|
#
|
2479
|
+
# @example Basic example
|
2480
|
+
# require "google/analytics/admin/v1alpha"
|
2481
|
+
#
|
2482
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2483
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
2484
|
+
#
|
2485
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2486
|
+
# request = Google::Analytics::Admin::V1alpha::CreateWebDataStreamRequest.new
|
2487
|
+
#
|
2488
|
+
# # Call the create_web_data_stream method.
|
2489
|
+
# result = client.create_web_data_stream request
|
2490
|
+
#
|
2491
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::WebDataStream.
|
2492
|
+
# p result
|
2493
|
+
#
|
2014
2494
|
def create_web_data_stream request, options = nil
|
2015
2495
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2016
2496
|
|
@@ -2028,16 +2508,20 @@ module Google
|
|
2028
2508
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
2029
2509
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2030
2510
|
|
2031
|
-
header_params = {
|
2032
|
-
|
2033
|
-
|
2511
|
+
header_params = {}
|
2512
|
+
if request.parent
|
2513
|
+
header_params["parent"] = request.parent
|
2514
|
+
end
|
2515
|
+
|
2034
2516
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2035
2517
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2036
2518
|
|
2037
2519
|
options.apply_defaults timeout: @config.rpcs.create_web_data_stream.timeout,
|
2038
2520
|
metadata: metadata,
|
2039
2521
|
retry_policy: @config.rpcs.create_web_data_stream.retry_policy
|
2040
|
-
|
2522
|
+
|
2523
|
+
options.apply_defaults timeout: @config.timeout,
|
2524
|
+
metadata: @config.metadata,
|
2041
2525
|
retry_policy: @config.retry_policy
|
2042
2526
|
|
2043
2527
|
@analytics_admin_service_stub.call_rpc :create_web_data_stream, request, options: options do |response, operation|
|
@@ -2091,6 +2575,27 @@ module Google
|
|
2091
2575
|
#
|
2092
2576
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2093
2577
|
#
|
2578
|
+
# @example Basic example
|
2579
|
+
# require "google/analytics/admin/v1alpha"
|
2580
|
+
#
|
2581
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2582
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
2583
|
+
#
|
2584
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2585
|
+
# request = Google::Analytics::Admin::V1alpha::ListWebDataStreamsRequest.new
|
2586
|
+
#
|
2587
|
+
# # Call the list_web_data_streams method.
|
2588
|
+
# result = client.list_web_data_streams request
|
2589
|
+
#
|
2590
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
2591
|
+
# # iterate over all elements by calling #each, and the enumerable
|
2592
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
2593
|
+
# # methods are also available for managing paging directly.
|
2594
|
+
# result.each do |response|
|
2595
|
+
# # Each element is of type ::Google::Analytics::Admin::V1alpha::WebDataStream.
|
2596
|
+
# p response
|
2597
|
+
# end
|
2598
|
+
#
|
2094
2599
|
def list_web_data_streams request, options = nil
|
2095
2600
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2096
2601
|
|
@@ -2108,16 +2613,20 @@ module Google
|
|
2108
2613
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
2109
2614
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2110
2615
|
|
2111
|
-
header_params = {
|
2112
|
-
|
2113
|
-
|
2616
|
+
header_params = {}
|
2617
|
+
if request.parent
|
2618
|
+
header_params["parent"] = request.parent
|
2619
|
+
end
|
2620
|
+
|
2114
2621
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2115
2622
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2116
2623
|
|
2117
2624
|
options.apply_defaults timeout: @config.rpcs.list_web_data_streams.timeout,
|
2118
2625
|
metadata: metadata,
|
2119
2626
|
retry_policy: @config.rpcs.list_web_data_streams.retry_policy
|
2120
|
-
|
2627
|
+
|
2628
|
+
options.apply_defaults timeout: @config.timeout,
|
2629
|
+
metadata: @config.metadata,
|
2121
2630
|
retry_policy: @config.retry_policy
|
2122
2631
|
|
2123
2632
|
@analytics_admin_service_stub.call_rpc :list_web_data_streams, request, options: options do |response, operation|
|
@@ -2160,6 +2669,21 @@ module Google
|
|
2160
2669
|
#
|
2161
2670
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2162
2671
|
#
|
2672
|
+
# @example Basic example
|
2673
|
+
# require "google/analytics/admin/v1alpha"
|
2674
|
+
#
|
2675
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2676
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
2677
|
+
#
|
2678
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2679
|
+
# request = Google::Analytics::Admin::V1alpha::GetIosAppDataStreamRequest.new
|
2680
|
+
#
|
2681
|
+
# # Call the get_ios_app_data_stream method.
|
2682
|
+
# result = client.get_ios_app_data_stream request
|
2683
|
+
#
|
2684
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::IosAppDataStream.
|
2685
|
+
# p result
|
2686
|
+
#
|
2163
2687
|
def get_ios_app_data_stream request, options = nil
|
2164
2688
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2165
2689
|
|
@@ -2177,16 +2701,20 @@ module Google
|
|
2177
2701
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
2178
2702
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2179
2703
|
|
2180
|
-
header_params = {
|
2181
|
-
|
2182
|
-
|
2704
|
+
header_params = {}
|
2705
|
+
if request.name
|
2706
|
+
header_params["name"] = request.name
|
2707
|
+
end
|
2708
|
+
|
2183
2709
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2184
2710
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2185
2711
|
|
2186
2712
|
options.apply_defaults timeout: @config.rpcs.get_ios_app_data_stream.timeout,
|
2187
2713
|
metadata: metadata,
|
2188
2714
|
retry_policy: @config.rpcs.get_ios_app_data_stream.retry_policy
|
2189
|
-
|
2715
|
+
|
2716
|
+
options.apply_defaults timeout: @config.timeout,
|
2717
|
+
metadata: @config.metadata,
|
2190
2718
|
retry_policy: @config.retry_policy
|
2191
2719
|
|
2192
2720
|
@analytics_admin_service_stub.call_rpc :get_ios_app_data_stream, request, options: options do |response, operation|
|
@@ -2228,6 +2756,21 @@ module Google
|
|
2228
2756
|
#
|
2229
2757
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2230
2758
|
#
|
2759
|
+
# @example Basic example
|
2760
|
+
# require "google/analytics/admin/v1alpha"
|
2761
|
+
#
|
2762
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2763
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
2764
|
+
#
|
2765
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2766
|
+
# request = Google::Analytics::Admin::V1alpha::DeleteIosAppDataStreamRequest.new
|
2767
|
+
#
|
2768
|
+
# # Call the delete_ios_app_data_stream method.
|
2769
|
+
# result = client.delete_ios_app_data_stream request
|
2770
|
+
#
|
2771
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
2772
|
+
# p result
|
2773
|
+
#
|
2231
2774
|
def delete_ios_app_data_stream request, options = nil
|
2232
2775
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2233
2776
|
|
@@ -2245,16 +2788,20 @@ module Google
|
|
2245
2788
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
2246
2789
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2247
2790
|
|
2248
|
-
header_params = {
|
2249
|
-
|
2250
|
-
|
2791
|
+
header_params = {}
|
2792
|
+
if request.name
|
2793
|
+
header_params["name"] = request.name
|
2794
|
+
end
|
2795
|
+
|
2251
2796
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2252
2797
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2253
2798
|
|
2254
2799
|
options.apply_defaults timeout: @config.rpcs.delete_ios_app_data_stream.timeout,
|
2255
2800
|
metadata: metadata,
|
2256
2801
|
retry_policy: @config.rpcs.delete_ios_app_data_stream.retry_policy
|
2257
|
-
|
2802
|
+
|
2803
|
+
options.apply_defaults timeout: @config.timeout,
|
2804
|
+
metadata: @config.metadata,
|
2258
2805
|
retry_policy: @config.retry_policy
|
2259
2806
|
|
2260
2807
|
@analytics_admin_service_stub.call_rpc :delete_ios_app_data_stream, request, options: options do |response, operation|
|
@@ -2299,6 +2846,21 @@ module Google
|
|
2299
2846
|
#
|
2300
2847
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2301
2848
|
#
|
2849
|
+
# @example Basic example
|
2850
|
+
# require "google/analytics/admin/v1alpha"
|
2851
|
+
#
|
2852
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2853
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
2854
|
+
#
|
2855
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2856
|
+
# request = Google::Analytics::Admin::V1alpha::UpdateIosAppDataStreamRequest.new
|
2857
|
+
#
|
2858
|
+
# # Call the update_ios_app_data_stream method.
|
2859
|
+
# result = client.update_ios_app_data_stream request
|
2860
|
+
#
|
2861
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::IosAppDataStream.
|
2862
|
+
# p result
|
2863
|
+
#
|
2302
2864
|
def update_ios_app_data_stream request, options = nil
|
2303
2865
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2304
2866
|
|
@@ -2316,16 +2878,20 @@ module Google
|
|
2316
2878
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
2317
2879
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2318
2880
|
|
2319
|
-
header_params = {
|
2320
|
-
|
2321
|
-
|
2881
|
+
header_params = {}
|
2882
|
+
if request.ios_app_data_stream&.name
|
2883
|
+
header_params["ios_app_data_stream.name"] = request.ios_app_data_stream.name
|
2884
|
+
end
|
2885
|
+
|
2322
2886
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2323
2887
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2324
2888
|
|
2325
2889
|
options.apply_defaults timeout: @config.rpcs.update_ios_app_data_stream.timeout,
|
2326
2890
|
metadata: metadata,
|
2327
2891
|
retry_policy: @config.rpcs.update_ios_app_data_stream.retry_policy
|
2328
|
-
|
2892
|
+
|
2893
|
+
options.apply_defaults timeout: @config.timeout,
|
2894
|
+
metadata: @config.metadata,
|
2329
2895
|
retry_policy: @config.retry_policy
|
2330
2896
|
|
2331
2897
|
@analytics_admin_service_stub.call_rpc :update_ios_app_data_stream, request, options: options do |response, operation|
|
@@ -2379,6 +2945,27 @@ module Google
|
|
2379
2945
|
#
|
2380
2946
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2381
2947
|
#
|
2948
|
+
# @example Basic example
|
2949
|
+
# require "google/analytics/admin/v1alpha"
|
2950
|
+
#
|
2951
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2952
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
2953
|
+
#
|
2954
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2955
|
+
# request = Google::Analytics::Admin::V1alpha::ListIosAppDataStreamsRequest.new
|
2956
|
+
#
|
2957
|
+
# # Call the list_ios_app_data_streams method.
|
2958
|
+
# result = client.list_ios_app_data_streams request
|
2959
|
+
#
|
2960
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
2961
|
+
# # iterate over all elements by calling #each, and the enumerable
|
2962
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
2963
|
+
# # methods are also available for managing paging directly.
|
2964
|
+
# result.each do |response|
|
2965
|
+
# # Each element is of type ::Google::Analytics::Admin::V1alpha::IosAppDataStream.
|
2966
|
+
# p response
|
2967
|
+
# end
|
2968
|
+
#
|
2382
2969
|
def list_ios_app_data_streams request, options = nil
|
2383
2970
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2384
2971
|
|
@@ -2396,16 +2983,20 @@ module Google
|
|
2396
2983
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
2397
2984
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2398
2985
|
|
2399
|
-
header_params = {
|
2400
|
-
|
2401
|
-
|
2986
|
+
header_params = {}
|
2987
|
+
if request.parent
|
2988
|
+
header_params["parent"] = request.parent
|
2989
|
+
end
|
2990
|
+
|
2402
2991
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2403
2992
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2404
2993
|
|
2405
2994
|
options.apply_defaults timeout: @config.rpcs.list_ios_app_data_streams.timeout,
|
2406
2995
|
metadata: metadata,
|
2407
2996
|
retry_policy: @config.rpcs.list_ios_app_data_streams.retry_policy
|
2408
|
-
|
2997
|
+
|
2998
|
+
options.apply_defaults timeout: @config.timeout,
|
2999
|
+
metadata: @config.metadata,
|
2409
3000
|
retry_policy: @config.retry_policy
|
2410
3001
|
|
2411
3002
|
@analytics_admin_service_stub.call_rpc :list_ios_app_data_streams, request, options: options do |response, operation|
|
@@ -2448,6 +3039,21 @@ module Google
|
|
2448
3039
|
#
|
2449
3040
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2450
3041
|
#
|
3042
|
+
# @example Basic example
|
3043
|
+
# require "google/analytics/admin/v1alpha"
|
3044
|
+
#
|
3045
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3046
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
3047
|
+
#
|
3048
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3049
|
+
# request = Google::Analytics::Admin::V1alpha::GetAndroidAppDataStreamRequest.new
|
3050
|
+
#
|
3051
|
+
# # Call the get_android_app_data_stream method.
|
3052
|
+
# result = client.get_android_app_data_stream request
|
3053
|
+
#
|
3054
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::AndroidAppDataStream.
|
3055
|
+
# p result
|
3056
|
+
#
|
2451
3057
|
def get_android_app_data_stream request, options = nil
|
2452
3058
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2453
3059
|
|
@@ -2465,16 +3071,20 @@ module Google
|
|
2465
3071
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
2466
3072
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2467
3073
|
|
2468
|
-
header_params = {
|
2469
|
-
|
2470
|
-
|
3074
|
+
header_params = {}
|
3075
|
+
if request.name
|
3076
|
+
header_params["name"] = request.name
|
3077
|
+
end
|
3078
|
+
|
2471
3079
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2472
3080
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2473
3081
|
|
2474
3082
|
options.apply_defaults timeout: @config.rpcs.get_android_app_data_stream.timeout,
|
2475
3083
|
metadata: metadata,
|
2476
3084
|
retry_policy: @config.rpcs.get_android_app_data_stream.retry_policy
|
2477
|
-
|
3085
|
+
|
3086
|
+
options.apply_defaults timeout: @config.timeout,
|
3087
|
+
metadata: @config.metadata,
|
2478
3088
|
retry_policy: @config.retry_policy
|
2479
3089
|
|
2480
3090
|
@analytics_admin_service_stub.call_rpc :get_android_app_data_stream, request, options: options do |response, operation|
|
@@ -2516,6 +3126,21 @@ module Google
|
|
2516
3126
|
#
|
2517
3127
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2518
3128
|
#
|
3129
|
+
# @example Basic example
|
3130
|
+
# require "google/analytics/admin/v1alpha"
|
3131
|
+
#
|
3132
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3133
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
3134
|
+
#
|
3135
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3136
|
+
# request = Google::Analytics::Admin::V1alpha::DeleteAndroidAppDataStreamRequest.new
|
3137
|
+
#
|
3138
|
+
# # Call the delete_android_app_data_stream method.
|
3139
|
+
# result = client.delete_android_app_data_stream request
|
3140
|
+
#
|
3141
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
3142
|
+
# p result
|
3143
|
+
#
|
2519
3144
|
def delete_android_app_data_stream request, options = nil
|
2520
3145
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2521
3146
|
|
@@ -2533,16 +3158,20 @@ module Google
|
|
2533
3158
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
2534
3159
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2535
3160
|
|
2536
|
-
header_params = {
|
2537
|
-
|
2538
|
-
|
3161
|
+
header_params = {}
|
3162
|
+
if request.name
|
3163
|
+
header_params["name"] = request.name
|
3164
|
+
end
|
3165
|
+
|
2539
3166
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2540
3167
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2541
3168
|
|
2542
3169
|
options.apply_defaults timeout: @config.rpcs.delete_android_app_data_stream.timeout,
|
2543
3170
|
metadata: metadata,
|
2544
3171
|
retry_policy: @config.rpcs.delete_android_app_data_stream.retry_policy
|
2545
|
-
|
3172
|
+
|
3173
|
+
options.apply_defaults timeout: @config.timeout,
|
3174
|
+
metadata: @config.metadata,
|
2546
3175
|
retry_policy: @config.retry_policy
|
2547
3176
|
|
2548
3177
|
@analytics_admin_service_stub.call_rpc :delete_android_app_data_stream, request, options: options do |response, operation|
|
@@ -2587,6 +3216,21 @@ module Google
|
|
2587
3216
|
#
|
2588
3217
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2589
3218
|
#
|
3219
|
+
# @example Basic example
|
3220
|
+
# require "google/analytics/admin/v1alpha"
|
3221
|
+
#
|
3222
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3223
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
3224
|
+
#
|
3225
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3226
|
+
# request = Google::Analytics::Admin::V1alpha::UpdateAndroidAppDataStreamRequest.new
|
3227
|
+
#
|
3228
|
+
# # Call the update_android_app_data_stream method.
|
3229
|
+
# result = client.update_android_app_data_stream request
|
3230
|
+
#
|
3231
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::AndroidAppDataStream.
|
3232
|
+
# p result
|
3233
|
+
#
|
2590
3234
|
def update_android_app_data_stream request, options = nil
|
2591
3235
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2592
3236
|
|
@@ -2604,16 +3248,20 @@ module Google
|
|
2604
3248
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
2605
3249
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2606
3250
|
|
2607
|
-
header_params = {
|
2608
|
-
|
2609
|
-
|
2610
|
-
|
3251
|
+
header_params = {}
|
3252
|
+
if request.android_app_data_stream&.name
|
3253
|
+
header_params["android_app_data_stream.name"] = request.android_app_data_stream.name
|
3254
|
+
end
|
3255
|
+
|
3256
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2611
3257
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2612
3258
|
|
2613
3259
|
options.apply_defaults timeout: @config.rpcs.update_android_app_data_stream.timeout,
|
2614
3260
|
metadata: metadata,
|
2615
3261
|
retry_policy: @config.rpcs.update_android_app_data_stream.retry_policy
|
2616
|
-
|
3262
|
+
|
3263
|
+
options.apply_defaults timeout: @config.timeout,
|
3264
|
+
metadata: @config.metadata,
|
2617
3265
|
retry_policy: @config.retry_policy
|
2618
3266
|
|
2619
3267
|
@analytics_admin_service_stub.call_rpc :update_android_app_data_stream, request, options: options do |response, operation|
|
@@ -2669,6 +3317,27 @@ module Google
|
|
2669
3317
|
#
|
2670
3318
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2671
3319
|
#
|
3320
|
+
# @example Basic example
|
3321
|
+
# require "google/analytics/admin/v1alpha"
|
3322
|
+
#
|
3323
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3324
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
3325
|
+
#
|
3326
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3327
|
+
# request = Google::Analytics::Admin::V1alpha::ListAndroidAppDataStreamsRequest.new
|
3328
|
+
#
|
3329
|
+
# # Call the list_android_app_data_streams method.
|
3330
|
+
# result = client.list_android_app_data_streams request
|
3331
|
+
#
|
3332
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
3333
|
+
# # iterate over all elements by calling #each, and the enumerable
|
3334
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
3335
|
+
# # methods are also available for managing paging directly.
|
3336
|
+
# result.each do |response|
|
3337
|
+
# # Each element is of type ::Google::Analytics::Admin::V1alpha::AndroidAppDataStream.
|
3338
|
+
# p response
|
3339
|
+
# end
|
3340
|
+
#
|
2672
3341
|
def list_android_app_data_streams request, options = nil
|
2673
3342
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2674
3343
|
|
@@ -2686,16 +3355,20 @@ module Google
|
|
2686
3355
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
2687
3356
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2688
3357
|
|
2689
|
-
header_params = {
|
2690
|
-
|
2691
|
-
|
3358
|
+
header_params = {}
|
3359
|
+
if request.parent
|
3360
|
+
header_params["parent"] = request.parent
|
3361
|
+
end
|
3362
|
+
|
2692
3363
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2693
3364
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2694
3365
|
|
2695
3366
|
options.apply_defaults timeout: @config.rpcs.list_android_app_data_streams.timeout,
|
2696
3367
|
metadata: metadata,
|
2697
3368
|
retry_policy: @config.rpcs.list_android_app_data_streams.retry_policy
|
2698
|
-
|
3369
|
+
|
3370
|
+
options.apply_defaults timeout: @config.timeout,
|
3371
|
+
metadata: @config.metadata,
|
2699
3372
|
retry_policy: @config.retry_policy
|
2700
3373
|
|
2701
3374
|
@analytics_admin_service_stub.call_rpc :list_android_app_data_streams, request, options: options do |response, operation|
|
@@ -2741,6 +3414,21 @@ module Google
|
|
2741
3414
|
#
|
2742
3415
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2743
3416
|
#
|
3417
|
+
# @example Basic example
|
3418
|
+
# require "google/analytics/admin/v1alpha"
|
3419
|
+
#
|
3420
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3421
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
3422
|
+
#
|
3423
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3424
|
+
# request = Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest.new
|
3425
|
+
#
|
3426
|
+
# # Call the get_enhanced_measurement_settings method.
|
3427
|
+
# result = client.get_enhanced_measurement_settings request
|
3428
|
+
#
|
3429
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings.
|
3430
|
+
# p result
|
3431
|
+
#
|
2744
3432
|
def get_enhanced_measurement_settings request, options = nil
|
2745
3433
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2746
3434
|
|
@@ -2758,16 +3446,20 @@ module Google
|
|
2758
3446
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
2759
3447
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2760
3448
|
|
2761
|
-
header_params = {
|
2762
|
-
|
2763
|
-
|
3449
|
+
header_params = {}
|
3450
|
+
if request.name
|
3451
|
+
header_params["name"] = request.name
|
3452
|
+
end
|
3453
|
+
|
2764
3454
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2765
3455
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2766
3456
|
|
2767
3457
|
options.apply_defaults timeout: @config.rpcs.get_enhanced_measurement_settings.timeout,
|
2768
3458
|
metadata: metadata,
|
2769
3459
|
retry_policy: @config.rpcs.get_enhanced_measurement_settings.retry_policy
|
2770
|
-
|
3460
|
+
|
3461
|
+
options.apply_defaults timeout: @config.timeout,
|
3462
|
+
metadata: @config.metadata,
|
2771
3463
|
retry_policy: @config.retry_policy
|
2772
3464
|
|
2773
3465
|
@analytics_admin_service_stub.call_rpc :get_enhanced_measurement_settings, request, options: options do |response, operation|
|
@@ -2814,6 +3506,21 @@ module Google
|
|
2814
3506
|
#
|
2815
3507
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2816
3508
|
#
|
3509
|
+
# @example Basic example
|
3510
|
+
# require "google/analytics/admin/v1alpha"
|
3511
|
+
#
|
3512
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3513
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
3514
|
+
#
|
3515
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3516
|
+
# request = Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest.new
|
3517
|
+
#
|
3518
|
+
# # Call the update_enhanced_measurement_settings method.
|
3519
|
+
# result = client.update_enhanced_measurement_settings request
|
3520
|
+
#
|
3521
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings.
|
3522
|
+
# p result
|
3523
|
+
#
|
2817
3524
|
def update_enhanced_measurement_settings request, options = nil
|
2818
3525
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2819
3526
|
|
@@ -2831,16 +3538,20 @@ module Google
|
|
2831
3538
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
2832
3539
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2833
3540
|
|
2834
|
-
header_params = {
|
2835
|
-
|
2836
|
-
|
3541
|
+
header_params = {}
|
3542
|
+
if request.enhanced_measurement_settings&.name
|
3543
|
+
header_params["enhanced_measurement_settings.name"] = request.enhanced_measurement_settings.name
|
3544
|
+
end
|
3545
|
+
|
2837
3546
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2838
3547
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2839
3548
|
|
2840
3549
|
options.apply_defaults timeout: @config.rpcs.update_enhanced_measurement_settings.timeout,
|
2841
3550
|
metadata: metadata,
|
2842
3551
|
retry_policy: @config.rpcs.update_enhanced_measurement_settings.retry_policy
|
2843
|
-
|
3552
|
+
|
3553
|
+
options.apply_defaults timeout: @config.timeout,
|
3554
|
+
metadata: @config.metadata,
|
2844
3555
|
retry_policy: @config.retry_policy
|
2845
3556
|
|
2846
3557
|
@analytics_admin_service_stub.call_rpc :update_enhanced_measurement_settings, request, options: options do |response, operation|
|
@@ -2885,6 +3596,21 @@ module Google
|
|
2885
3596
|
#
|
2886
3597
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2887
3598
|
#
|
3599
|
+
# @example Basic example
|
3600
|
+
# require "google/analytics/admin/v1alpha"
|
3601
|
+
#
|
3602
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3603
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
3604
|
+
#
|
3605
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3606
|
+
# request = Google::Analytics::Admin::V1alpha::CreateFirebaseLinkRequest.new
|
3607
|
+
#
|
3608
|
+
# # Call the create_firebase_link method.
|
3609
|
+
# result = client.create_firebase_link request
|
3610
|
+
#
|
3611
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::FirebaseLink.
|
3612
|
+
# p result
|
3613
|
+
#
|
2888
3614
|
def create_firebase_link request, options = nil
|
2889
3615
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2890
3616
|
|
@@ -2902,89 +3628,23 @@ module Google
|
|
2902
3628
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
2903
3629
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2904
3630
|
|
2905
|
-
header_params = {
|
2906
|
-
|
2907
|
-
|
3631
|
+
header_params = {}
|
3632
|
+
if request.parent
|
3633
|
+
header_params["parent"] = request.parent
|
3634
|
+
end
|
3635
|
+
|
2908
3636
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2909
3637
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2910
3638
|
|
2911
3639
|
options.apply_defaults timeout: @config.rpcs.create_firebase_link.timeout,
|
2912
3640
|
metadata: metadata,
|
2913
3641
|
retry_policy: @config.rpcs.create_firebase_link.retry_policy
|
2914
|
-
options.apply_defaults metadata: @config.metadata,
|
2915
|
-
retry_policy: @config.retry_policy
|
2916
|
-
|
2917
|
-
@analytics_admin_service_stub.call_rpc :create_firebase_link, request, options: options do |response, operation|
|
2918
|
-
yield response, operation if block_given?
|
2919
|
-
return response
|
2920
|
-
end
|
2921
|
-
rescue ::GRPC::BadStatus => e
|
2922
|
-
raise ::Google::Cloud::Error.from_error(e)
|
2923
|
-
end
|
2924
|
-
|
2925
|
-
##
|
2926
|
-
# Updates a FirebaseLink on a property
|
2927
|
-
#
|
2928
|
-
# @overload update_firebase_link(request, options = nil)
|
2929
|
-
# Pass arguments to `update_firebase_link` via a request object, either of type
|
2930
|
-
# {::Google::Analytics::Admin::V1alpha::UpdateFirebaseLinkRequest} or an equivalent Hash.
|
2931
|
-
#
|
2932
|
-
# @param request [::Google::Analytics::Admin::V1alpha::UpdateFirebaseLinkRequest, ::Hash]
|
2933
|
-
# A request object representing the call parameters. Required. To specify no
|
2934
|
-
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2935
|
-
# @param options [::Gapic::CallOptions, ::Hash]
|
2936
|
-
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2937
|
-
#
|
2938
|
-
# @overload update_firebase_link(firebase_link: nil, update_mask: nil)
|
2939
|
-
# Pass arguments to `update_firebase_link` via keyword arguments. Note that at
|
2940
|
-
# least one keyword argument is required. To specify no parameters, or to keep all
|
2941
|
-
# the default parameter values, pass an empty Hash as a request object (see above).
|
2942
|
-
#
|
2943
|
-
# @param firebase_link [::Google::Analytics::Admin::V1alpha::FirebaseLink, ::Hash]
|
2944
|
-
# Required. The Firebase link to update.
|
2945
|
-
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
2946
|
-
# Required. The list of fields to be updated. Field names must be in snake case
|
2947
|
-
# (e.g., "field_to_update"). Omitted fields will not be updated. To replace
|
2948
|
-
# the entire entity, use one path with the string "*" to match all fields.
|
2949
|
-
#
|
2950
|
-
# @yield [response, operation] Access the result along with the RPC operation
|
2951
|
-
# @yieldparam response [::Google::Analytics::Admin::V1alpha::FirebaseLink]
|
2952
|
-
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2953
|
-
#
|
2954
|
-
# @return [::Google::Analytics::Admin::V1alpha::FirebaseLink]
|
2955
|
-
#
|
2956
|
-
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2957
|
-
#
|
2958
|
-
def update_firebase_link request, options = nil
|
2959
|
-
raise ::ArgumentError, "request must be provided" if request.nil?
|
2960
|
-
|
2961
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateFirebaseLinkRequest
|
2962
|
-
|
2963
|
-
# Converts hash and nil to an options object
|
2964
|
-
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2965
|
-
|
2966
|
-
# Customize the options with defaults
|
2967
|
-
metadata = @config.rpcs.update_firebase_link.metadata.to_h
|
2968
|
-
|
2969
|
-
# Set x-goog-api-client and x-goog-user-project headers
|
2970
|
-
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2971
|
-
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2972
|
-
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
2973
|
-
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2974
|
-
|
2975
|
-
header_params = {
|
2976
|
-
"firebase_link.name" => request.firebase_link.name
|
2977
|
-
}
|
2978
|
-
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2979
|
-
metadata[:"x-goog-request-params"] ||= request_params_header
|
2980
3642
|
|
2981
|
-
options.apply_defaults timeout: @config.
|
2982
|
-
metadata: metadata,
|
2983
|
-
retry_policy: @config.rpcs.update_firebase_link.retry_policy
|
2984
|
-
options.apply_defaults metadata: @config.metadata,
|
3643
|
+
options.apply_defaults timeout: @config.timeout,
|
3644
|
+
metadata: @config.metadata,
|
2985
3645
|
retry_policy: @config.retry_policy
|
2986
3646
|
|
2987
|
-
@analytics_admin_service_stub.call_rpc :
|
3647
|
+
@analytics_admin_service_stub.call_rpc :create_firebase_link, request, options: options do |response, operation|
|
2988
3648
|
yield response, operation if block_given?
|
2989
3649
|
return response
|
2990
3650
|
end
|
@@ -3022,6 +3682,21 @@ module Google
|
|
3022
3682
|
#
|
3023
3683
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3024
3684
|
#
|
3685
|
+
# @example Basic example
|
3686
|
+
# require "google/analytics/admin/v1alpha"
|
3687
|
+
#
|
3688
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3689
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
3690
|
+
#
|
3691
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3692
|
+
# request = Google::Analytics::Admin::V1alpha::DeleteFirebaseLinkRequest.new
|
3693
|
+
#
|
3694
|
+
# # Call the delete_firebase_link method.
|
3695
|
+
# result = client.delete_firebase_link request
|
3696
|
+
#
|
3697
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
3698
|
+
# p result
|
3699
|
+
#
|
3025
3700
|
def delete_firebase_link request, options = nil
|
3026
3701
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
3027
3702
|
|
@@ -3039,16 +3714,20 @@ module Google
|
|
3039
3714
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
3040
3715
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3041
3716
|
|
3042
|
-
header_params = {
|
3043
|
-
|
3044
|
-
|
3717
|
+
header_params = {}
|
3718
|
+
if request.name
|
3719
|
+
header_params["name"] = request.name
|
3720
|
+
end
|
3721
|
+
|
3045
3722
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3046
3723
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
3047
3724
|
|
3048
3725
|
options.apply_defaults timeout: @config.rpcs.delete_firebase_link.timeout,
|
3049
3726
|
metadata: metadata,
|
3050
3727
|
retry_policy: @config.rpcs.delete_firebase_link.retry_policy
|
3051
|
-
|
3728
|
+
|
3729
|
+
options.apply_defaults timeout: @config.timeout,
|
3730
|
+
metadata: @config.metadata,
|
3052
3731
|
retry_policy: @config.retry_policy
|
3053
3732
|
|
3054
3733
|
@analytics_admin_service_stub.call_rpc :delete_firebase_link, request, options: options do |response, operation|
|
@@ -3100,6 +3779,27 @@ module Google
|
|
3100
3779
|
#
|
3101
3780
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3102
3781
|
#
|
3782
|
+
# @example Basic example
|
3783
|
+
# require "google/analytics/admin/v1alpha"
|
3784
|
+
#
|
3785
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3786
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
3787
|
+
#
|
3788
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3789
|
+
# request = Google::Analytics::Admin::V1alpha::ListFirebaseLinksRequest.new
|
3790
|
+
#
|
3791
|
+
# # Call the list_firebase_links method.
|
3792
|
+
# result = client.list_firebase_links request
|
3793
|
+
#
|
3794
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
3795
|
+
# # iterate over all elements by calling #each, and the enumerable
|
3796
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
3797
|
+
# # methods are also available for managing paging directly.
|
3798
|
+
# result.each do |response|
|
3799
|
+
# # Each element is of type ::Google::Analytics::Admin::V1alpha::FirebaseLink.
|
3800
|
+
# p response
|
3801
|
+
# end
|
3802
|
+
#
|
3103
3803
|
def list_firebase_links request, options = nil
|
3104
3804
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
3105
3805
|
|
@@ -3117,16 +3817,20 @@ module Google
|
|
3117
3817
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
3118
3818
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3119
3819
|
|
3120
|
-
header_params = {
|
3121
|
-
|
3122
|
-
|
3820
|
+
header_params = {}
|
3821
|
+
if request.parent
|
3822
|
+
header_params["parent"] = request.parent
|
3823
|
+
end
|
3824
|
+
|
3123
3825
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3124
3826
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
3125
3827
|
|
3126
3828
|
options.apply_defaults timeout: @config.rpcs.list_firebase_links.timeout,
|
3127
3829
|
metadata: metadata,
|
3128
3830
|
retry_policy: @config.rpcs.list_firebase_links.retry_policy
|
3129
|
-
|
3831
|
+
|
3832
|
+
options.apply_defaults timeout: @config.timeout,
|
3833
|
+
metadata: @config.metadata,
|
3130
3834
|
retry_policy: @config.retry_policy
|
3131
3835
|
|
3132
3836
|
@analytics_admin_service_stub.call_rpc :list_firebase_links, request, options: options do |response, operation|
|
@@ -3171,6 +3875,21 @@ module Google
|
|
3171
3875
|
#
|
3172
3876
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3173
3877
|
#
|
3878
|
+
# @example Basic example
|
3879
|
+
# require "google/analytics/admin/v1alpha"
|
3880
|
+
#
|
3881
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3882
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
3883
|
+
#
|
3884
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3885
|
+
# request = Google::Analytics::Admin::V1alpha::GetGlobalSiteTagRequest.new
|
3886
|
+
#
|
3887
|
+
# # Call the get_global_site_tag method.
|
3888
|
+
# result = client.get_global_site_tag request
|
3889
|
+
#
|
3890
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::GlobalSiteTag.
|
3891
|
+
# p result
|
3892
|
+
#
|
3174
3893
|
def get_global_site_tag request, options = nil
|
3175
3894
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
3176
3895
|
|
@@ -3188,16 +3907,20 @@ module Google
|
|
3188
3907
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
3189
3908
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3190
3909
|
|
3191
|
-
header_params = {
|
3192
|
-
|
3193
|
-
|
3910
|
+
header_params = {}
|
3911
|
+
if request.name
|
3912
|
+
header_params["name"] = request.name
|
3913
|
+
end
|
3914
|
+
|
3194
3915
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3195
3916
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
3196
3917
|
|
3197
3918
|
options.apply_defaults timeout: @config.rpcs.get_global_site_tag.timeout,
|
3198
3919
|
metadata: metadata,
|
3199
3920
|
retry_policy: @config.rpcs.get_global_site_tag.retry_policy
|
3200
|
-
|
3921
|
+
|
3922
|
+
options.apply_defaults timeout: @config.timeout,
|
3923
|
+
metadata: @config.metadata,
|
3201
3924
|
retry_policy: @config.retry_policy
|
3202
3925
|
|
3203
3926
|
@analytics_admin_service_stub.call_rpc :get_global_site_tag, request, options: options do |response, operation|
|
@@ -3239,6 +3962,21 @@ module Google
|
|
3239
3962
|
#
|
3240
3963
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3241
3964
|
#
|
3965
|
+
# @example Basic example
|
3966
|
+
# require "google/analytics/admin/v1alpha"
|
3967
|
+
#
|
3968
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3969
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
3970
|
+
#
|
3971
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3972
|
+
# request = Google::Analytics::Admin::V1alpha::CreateGoogleAdsLinkRequest.new
|
3973
|
+
#
|
3974
|
+
# # Call the create_google_ads_link method.
|
3975
|
+
# result = client.create_google_ads_link request
|
3976
|
+
#
|
3977
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::GoogleAdsLink.
|
3978
|
+
# p result
|
3979
|
+
#
|
3242
3980
|
def create_google_ads_link request, options = nil
|
3243
3981
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
3244
3982
|
|
@@ -3256,16 +3994,20 @@ module Google
|
|
3256
3994
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
3257
3995
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3258
3996
|
|
3259
|
-
header_params = {
|
3260
|
-
|
3261
|
-
|
3997
|
+
header_params = {}
|
3998
|
+
if request.parent
|
3999
|
+
header_params["parent"] = request.parent
|
4000
|
+
end
|
4001
|
+
|
3262
4002
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3263
4003
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
3264
4004
|
|
3265
4005
|
options.apply_defaults timeout: @config.rpcs.create_google_ads_link.timeout,
|
3266
4006
|
metadata: metadata,
|
3267
4007
|
retry_policy: @config.rpcs.create_google_ads_link.retry_policy
|
3268
|
-
|
4008
|
+
|
4009
|
+
options.apply_defaults timeout: @config.timeout,
|
4010
|
+
metadata: @config.metadata,
|
3269
4011
|
retry_policy: @config.retry_policy
|
3270
4012
|
|
3271
4013
|
@analytics_admin_service_stub.call_rpc :create_google_ads_link, request, options: options do |response, operation|
|
@@ -3309,6 +4051,21 @@ module Google
|
|
3309
4051
|
#
|
3310
4052
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3311
4053
|
#
|
4054
|
+
# @example Basic example
|
4055
|
+
# require "google/analytics/admin/v1alpha"
|
4056
|
+
#
|
4057
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4058
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
4059
|
+
#
|
4060
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4061
|
+
# request = Google::Analytics::Admin::V1alpha::UpdateGoogleAdsLinkRequest.new
|
4062
|
+
#
|
4063
|
+
# # Call the update_google_ads_link method.
|
4064
|
+
# result = client.update_google_ads_link request
|
4065
|
+
#
|
4066
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::GoogleAdsLink.
|
4067
|
+
# p result
|
4068
|
+
#
|
3312
4069
|
def update_google_ads_link request, options = nil
|
3313
4070
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
3314
4071
|
|
@@ -3326,16 +4083,20 @@ module Google
|
|
3326
4083
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
3327
4084
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3328
4085
|
|
3329
|
-
header_params = {
|
3330
|
-
|
3331
|
-
|
4086
|
+
header_params = {}
|
4087
|
+
if request.google_ads_link&.name
|
4088
|
+
header_params["google_ads_link.name"] = request.google_ads_link.name
|
4089
|
+
end
|
4090
|
+
|
3332
4091
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3333
4092
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
3334
4093
|
|
3335
4094
|
options.apply_defaults timeout: @config.rpcs.update_google_ads_link.timeout,
|
3336
4095
|
metadata: metadata,
|
3337
4096
|
retry_policy: @config.rpcs.update_google_ads_link.retry_policy
|
3338
|
-
|
4097
|
+
|
4098
|
+
options.apply_defaults timeout: @config.timeout,
|
4099
|
+
metadata: @config.metadata,
|
3339
4100
|
retry_policy: @config.retry_policy
|
3340
4101
|
|
3341
4102
|
@analytics_admin_service_stub.call_rpc :update_google_ads_link, request, options: options do |response, operation|
|
@@ -3375,6 +4136,21 @@ module Google
|
|
3375
4136
|
#
|
3376
4137
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3377
4138
|
#
|
4139
|
+
# @example Basic example
|
4140
|
+
# require "google/analytics/admin/v1alpha"
|
4141
|
+
#
|
4142
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4143
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
4144
|
+
#
|
4145
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4146
|
+
# request = Google::Analytics::Admin::V1alpha::DeleteGoogleAdsLinkRequest.new
|
4147
|
+
#
|
4148
|
+
# # Call the delete_google_ads_link method.
|
4149
|
+
# result = client.delete_google_ads_link request
|
4150
|
+
#
|
4151
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
4152
|
+
# p result
|
4153
|
+
#
|
3378
4154
|
def delete_google_ads_link request, options = nil
|
3379
4155
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
3380
4156
|
|
@@ -3392,16 +4168,20 @@ module Google
|
|
3392
4168
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
3393
4169
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3394
4170
|
|
3395
|
-
header_params = {
|
3396
|
-
|
3397
|
-
|
4171
|
+
header_params = {}
|
4172
|
+
if request.name
|
4173
|
+
header_params["name"] = request.name
|
4174
|
+
end
|
4175
|
+
|
3398
4176
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3399
4177
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
3400
4178
|
|
3401
4179
|
options.apply_defaults timeout: @config.rpcs.delete_google_ads_link.timeout,
|
3402
4180
|
metadata: metadata,
|
3403
4181
|
retry_policy: @config.rpcs.delete_google_ads_link.retry_policy
|
3404
|
-
|
4182
|
+
|
4183
|
+
options.apply_defaults timeout: @config.timeout,
|
4184
|
+
metadata: @config.metadata,
|
3405
4185
|
retry_policy: @config.retry_policy
|
3406
4186
|
|
3407
4187
|
@analytics_admin_service_stub.call_rpc :delete_google_ads_link, request, options: options do |response, operation|
|
@@ -3451,6 +4231,27 @@ module Google
|
|
3451
4231
|
#
|
3452
4232
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3453
4233
|
#
|
4234
|
+
# @example Basic example
|
4235
|
+
# require "google/analytics/admin/v1alpha"
|
4236
|
+
#
|
4237
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4238
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
4239
|
+
#
|
4240
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4241
|
+
# request = Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksRequest.new
|
4242
|
+
#
|
4243
|
+
# # Call the list_google_ads_links method.
|
4244
|
+
# result = client.list_google_ads_links request
|
4245
|
+
#
|
4246
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
4247
|
+
# # iterate over all elements by calling #each, and the enumerable
|
4248
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
4249
|
+
# # methods are also available for managing paging directly.
|
4250
|
+
# result.each do |response|
|
4251
|
+
# # Each element is of type ::Google::Analytics::Admin::V1alpha::GoogleAdsLink.
|
4252
|
+
# p response
|
4253
|
+
# end
|
4254
|
+
#
|
3454
4255
|
def list_google_ads_links request, options = nil
|
3455
4256
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
3456
4257
|
|
@@ -3468,16 +4269,20 @@ module Google
|
|
3468
4269
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
3469
4270
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3470
4271
|
|
3471
|
-
header_params = {
|
3472
|
-
|
3473
|
-
|
4272
|
+
header_params = {}
|
4273
|
+
if request.parent
|
4274
|
+
header_params["parent"] = request.parent
|
4275
|
+
end
|
4276
|
+
|
3474
4277
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3475
4278
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
3476
4279
|
|
3477
4280
|
options.apply_defaults timeout: @config.rpcs.list_google_ads_links.timeout,
|
3478
4281
|
metadata: metadata,
|
3479
4282
|
retry_policy: @config.rpcs.list_google_ads_links.retry_policy
|
3480
|
-
|
4283
|
+
|
4284
|
+
options.apply_defaults timeout: @config.timeout,
|
4285
|
+
metadata: @config.metadata,
|
3481
4286
|
retry_policy: @config.retry_policy
|
3482
4287
|
|
3483
4288
|
@analytics_admin_service_stub.call_rpc :list_google_ads_links, request, options: options do |response, operation|
|
@@ -3521,6 +4326,21 @@ module Google
|
|
3521
4326
|
#
|
3522
4327
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3523
4328
|
#
|
4329
|
+
# @example Basic example
|
4330
|
+
# require "google/analytics/admin/v1alpha"
|
4331
|
+
#
|
4332
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4333
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
4334
|
+
#
|
4335
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4336
|
+
# request = Google::Analytics::Admin::V1alpha::GetDataSharingSettingsRequest.new
|
4337
|
+
#
|
4338
|
+
# # Call the get_data_sharing_settings method.
|
4339
|
+
# result = client.get_data_sharing_settings request
|
4340
|
+
#
|
4341
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::DataSharingSettings.
|
4342
|
+
# p result
|
4343
|
+
#
|
3524
4344
|
def get_data_sharing_settings request, options = nil
|
3525
4345
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
3526
4346
|
|
@@ -3538,16 +4358,20 @@ module Google
|
|
3538
4358
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
3539
4359
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3540
4360
|
|
3541
|
-
header_params = {
|
3542
|
-
|
3543
|
-
|
4361
|
+
header_params = {}
|
4362
|
+
if request.name
|
4363
|
+
header_params["name"] = request.name
|
4364
|
+
end
|
4365
|
+
|
3544
4366
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3545
4367
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
3546
4368
|
|
3547
4369
|
options.apply_defaults timeout: @config.rpcs.get_data_sharing_settings.timeout,
|
3548
4370
|
metadata: metadata,
|
3549
4371
|
retry_policy: @config.rpcs.get_data_sharing_settings.retry_policy
|
3550
|
-
|
4372
|
+
|
4373
|
+
options.apply_defaults timeout: @config.timeout,
|
4374
|
+
metadata: @config.metadata,
|
3551
4375
|
retry_policy: @config.retry_policy
|
3552
4376
|
|
3553
4377
|
@analytics_admin_service_stub.call_rpc :get_data_sharing_settings, request, options: options do |response, operation|
|
@@ -3591,6 +4415,21 @@ module Google
|
|
3591
4415
|
#
|
3592
4416
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3593
4417
|
#
|
4418
|
+
# @example Basic example
|
4419
|
+
# require "google/analytics/admin/v1alpha"
|
4420
|
+
#
|
4421
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4422
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
4423
|
+
#
|
4424
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4425
|
+
# request = Google::Analytics::Admin::V1alpha::GetMeasurementProtocolSecretRequest.new
|
4426
|
+
#
|
4427
|
+
# # Call the get_measurement_protocol_secret method.
|
4428
|
+
# result = client.get_measurement_protocol_secret request
|
4429
|
+
#
|
4430
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret.
|
4431
|
+
# p result
|
4432
|
+
#
|
3594
4433
|
def get_measurement_protocol_secret request, options = nil
|
3595
4434
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
3596
4435
|
|
@@ -3608,16 +4447,20 @@ module Google
|
|
3608
4447
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
3609
4448
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3610
4449
|
|
3611
|
-
header_params = {
|
3612
|
-
|
3613
|
-
|
4450
|
+
header_params = {}
|
4451
|
+
if request.name
|
4452
|
+
header_params["name"] = request.name
|
4453
|
+
end
|
4454
|
+
|
3614
4455
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3615
4456
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
3616
4457
|
|
3617
4458
|
options.apply_defaults timeout: @config.rpcs.get_measurement_protocol_secret.timeout,
|
3618
4459
|
metadata: metadata,
|
3619
4460
|
retry_policy: @config.rpcs.get_measurement_protocol_secret.retry_policy
|
3620
|
-
|
4461
|
+
|
4462
|
+
options.apply_defaults timeout: @config.timeout,
|
4463
|
+
metadata: @config.metadata,
|
3621
4464
|
retry_policy: @config.retry_policy
|
3622
4465
|
|
3623
4466
|
@analytics_admin_service_stub.call_rpc :get_measurement_protocol_secret, request, options: options do |response, operation|
|
@@ -3671,6 +4514,27 @@ module Google
|
|
3671
4514
|
#
|
3672
4515
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3673
4516
|
#
|
4517
|
+
# @example Basic example
|
4518
|
+
# require "google/analytics/admin/v1alpha"
|
4519
|
+
#
|
4520
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4521
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
4522
|
+
#
|
4523
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4524
|
+
# request = Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsRequest.new
|
4525
|
+
#
|
4526
|
+
# # Call the list_measurement_protocol_secrets method.
|
4527
|
+
# result = client.list_measurement_protocol_secrets request
|
4528
|
+
#
|
4529
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
4530
|
+
# # iterate over all elements by calling #each, and the enumerable
|
4531
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
4532
|
+
# # methods are also available for managing paging directly.
|
4533
|
+
# result.each do |response|
|
4534
|
+
# # Each element is of type ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret.
|
4535
|
+
# p response
|
4536
|
+
# end
|
4537
|
+
#
|
3674
4538
|
def list_measurement_protocol_secrets request, options = nil
|
3675
4539
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
3676
4540
|
|
@@ -3688,16 +4552,20 @@ module Google
|
|
3688
4552
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
3689
4553
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3690
4554
|
|
3691
|
-
header_params = {
|
3692
|
-
|
3693
|
-
|
4555
|
+
header_params = {}
|
4556
|
+
if request.parent
|
4557
|
+
header_params["parent"] = request.parent
|
4558
|
+
end
|
4559
|
+
|
3694
4560
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3695
4561
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
3696
4562
|
|
3697
4563
|
options.apply_defaults timeout: @config.rpcs.list_measurement_protocol_secrets.timeout,
|
3698
4564
|
metadata: metadata,
|
3699
4565
|
retry_policy: @config.rpcs.list_measurement_protocol_secrets.retry_policy
|
3700
|
-
|
4566
|
+
|
4567
|
+
options.apply_defaults timeout: @config.timeout,
|
4568
|
+
metadata: @config.metadata,
|
3701
4569
|
retry_policy: @config.retry_policy
|
3702
4570
|
|
3703
4571
|
@analytics_admin_service_stub.call_rpc :list_measurement_protocol_secrets, request, options: options do |response, operation|
|
@@ -3743,6 +4611,21 @@ module Google
|
|
3743
4611
|
#
|
3744
4612
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3745
4613
|
#
|
4614
|
+
# @example Basic example
|
4615
|
+
# require "google/analytics/admin/v1alpha"
|
4616
|
+
#
|
4617
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4618
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
4619
|
+
#
|
4620
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4621
|
+
# request = Google::Analytics::Admin::V1alpha::CreateMeasurementProtocolSecretRequest.new
|
4622
|
+
#
|
4623
|
+
# # Call the create_measurement_protocol_secret method.
|
4624
|
+
# result = client.create_measurement_protocol_secret request
|
4625
|
+
#
|
4626
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret.
|
4627
|
+
# p result
|
4628
|
+
#
|
3746
4629
|
def create_measurement_protocol_secret request, options = nil
|
3747
4630
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
3748
4631
|
|
@@ -3760,16 +4643,20 @@ module Google
|
|
3760
4643
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
3761
4644
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3762
4645
|
|
3763
|
-
header_params = {
|
3764
|
-
|
3765
|
-
|
4646
|
+
header_params = {}
|
4647
|
+
if request.parent
|
4648
|
+
header_params["parent"] = request.parent
|
4649
|
+
end
|
4650
|
+
|
3766
4651
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3767
4652
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
3768
4653
|
|
3769
4654
|
options.apply_defaults timeout: @config.rpcs.create_measurement_protocol_secret.timeout,
|
3770
4655
|
metadata: metadata,
|
3771
4656
|
retry_policy: @config.rpcs.create_measurement_protocol_secret.retry_policy
|
3772
|
-
|
4657
|
+
|
4658
|
+
options.apply_defaults timeout: @config.timeout,
|
4659
|
+
metadata: @config.metadata,
|
3773
4660
|
retry_policy: @config.retry_policy
|
3774
4661
|
|
3775
4662
|
@analytics_admin_service_stub.call_rpc :create_measurement_protocol_secret, request, options: options do |response, operation|
|
@@ -3813,6 +4700,21 @@ module Google
|
|
3813
4700
|
#
|
3814
4701
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3815
4702
|
#
|
4703
|
+
# @example Basic example
|
4704
|
+
# require "google/analytics/admin/v1alpha"
|
4705
|
+
#
|
4706
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4707
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
4708
|
+
#
|
4709
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4710
|
+
# request = Google::Analytics::Admin::V1alpha::DeleteMeasurementProtocolSecretRequest.new
|
4711
|
+
#
|
4712
|
+
# # Call the delete_measurement_protocol_secret method.
|
4713
|
+
# result = client.delete_measurement_protocol_secret request
|
4714
|
+
#
|
4715
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
4716
|
+
# p result
|
4717
|
+
#
|
3816
4718
|
def delete_measurement_protocol_secret request, options = nil
|
3817
4719
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
3818
4720
|
|
@@ -3830,16 +4732,20 @@ module Google
|
|
3830
4732
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
3831
4733
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3832
4734
|
|
3833
|
-
header_params = {
|
3834
|
-
|
3835
|
-
|
4735
|
+
header_params = {}
|
4736
|
+
if request.name
|
4737
|
+
header_params["name"] = request.name
|
4738
|
+
end
|
4739
|
+
|
3836
4740
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3837
4741
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
3838
4742
|
|
3839
4743
|
options.apply_defaults timeout: @config.rpcs.delete_measurement_protocol_secret.timeout,
|
3840
4744
|
metadata: metadata,
|
3841
4745
|
retry_policy: @config.rpcs.delete_measurement_protocol_secret.retry_policy
|
3842
|
-
|
4746
|
+
|
4747
|
+
options.apply_defaults timeout: @config.timeout,
|
4748
|
+
metadata: @config.metadata,
|
3843
4749
|
retry_policy: @config.retry_policy
|
3844
4750
|
|
3845
4751
|
@analytics_admin_service_stub.call_rpc :delete_measurement_protocol_secret, request, options: options do |response, operation|
|
@@ -3881,6 +4787,21 @@ module Google
|
|
3881
4787
|
#
|
3882
4788
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3883
4789
|
#
|
4790
|
+
# @example Basic example
|
4791
|
+
# require "google/analytics/admin/v1alpha"
|
4792
|
+
#
|
4793
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4794
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
4795
|
+
#
|
4796
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4797
|
+
# request = Google::Analytics::Admin::V1alpha::UpdateMeasurementProtocolSecretRequest.new
|
4798
|
+
#
|
4799
|
+
# # Call the update_measurement_protocol_secret method.
|
4800
|
+
# result = client.update_measurement_protocol_secret request
|
4801
|
+
#
|
4802
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret.
|
4803
|
+
# p result
|
4804
|
+
#
|
3884
4805
|
def update_measurement_protocol_secret request, options = nil
|
3885
4806
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
3886
4807
|
|
@@ -3898,16 +4819,20 @@ module Google
|
|
3898
4819
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
3899
4820
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3900
4821
|
|
3901
|
-
header_params = {
|
3902
|
-
|
3903
|
-
|
4822
|
+
header_params = {}
|
4823
|
+
if request.measurement_protocol_secret&.name
|
4824
|
+
header_params["measurement_protocol_secret.name"] = request.measurement_protocol_secret.name
|
4825
|
+
end
|
4826
|
+
|
3904
4827
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3905
4828
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
3906
4829
|
|
3907
4830
|
options.apply_defaults timeout: @config.rpcs.update_measurement_protocol_secret.timeout,
|
3908
4831
|
metadata: metadata,
|
3909
4832
|
retry_policy: @config.rpcs.update_measurement_protocol_secret.retry_policy
|
3910
|
-
|
4833
|
+
|
4834
|
+
options.apply_defaults timeout: @config.timeout,
|
4835
|
+
metadata: @config.metadata,
|
3911
4836
|
retry_policy: @config.retry_policy
|
3912
4837
|
|
3913
4838
|
@analytics_admin_service_stub.call_rpc :update_measurement_protocol_secret, request, options: options do |response, operation|
|
@@ -3973,6 +4898,27 @@ module Google
|
|
3973
4898
|
#
|
3974
4899
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3975
4900
|
#
|
4901
|
+
# @example Basic example
|
4902
|
+
# require "google/analytics/admin/v1alpha"
|
4903
|
+
#
|
4904
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4905
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
4906
|
+
#
|
4907
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4908
|
+
# request = Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsRequest.new
|
4909
|
+
#
|
4910
|
+
# # Call the search_change_history_events method.
|
4911
|
+
# result = client.search_change_history_events request
|
4912
|
+
#
|
4913
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
4914
|
+
# # iterate over all elements by calling #each, and the enumerable
|
4915
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
4916
|
+
# # methods are also available for managing paging directly.
|
4917
|
+
# result.each do |response|
|
4918
|
+
# # Each element is of type ::Google::Analytics::Admin::V1alpha::ChangeHistoryEvent.
|
4919
|
+
# p response
|
4920
|
+
# end
|
4921
|
+
#
|
3976
4922
|
def search_change_history_events request, options = nil
|
3977
4923
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
3978
4924
|
|
@@ -3990,16 +4936,20 @@ module Google
|
|
3990
4936
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
3991
4937
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3992
4938
|
|
3993
|
-
header_params = {
|
3994
|
-
|
3995
|
-
|
4939
|
+
header_params = {}
|
4940
|
+
if request.account
|
4941
|
+
header_params["account"] = request.account
|
4942
|
+
end
|
4943
|
+
|
3996
4944
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3997
4945
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
3998
4946
|
|
3999
4947
|
options.apply_defaults timeout: @config.rpcs.search_change_history_events.timeout,
|
4000
4948
|
metadata: metadata,
|
4001
4949
|
retry_policy: @config.rpcs.search_change_history_events.retry_policy
|
4002
|
-
|
4950
|
+
|
4951
|
+
options.apply_defaults timeout: @config.timeout,
|
4952
|
+
metadata: @config.metadata,
|
4003
4953
|
retry_policy: @config.retry_policy
|
4004
4954
|
|
4005
4955
|
@analytics_admin_service_stub.call_rpc :search_change_history_events, request, options: options do |response, operation|
|
@@ -4041,6 +4991,21 @@ module Google
|
|
4041
4991
|
#
|
4042
4992
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
4043
4993
|
#
|
4994
|
+
# @example Basic example
|
4995
|
+
# require "google/analytics/admin/v1alpha"
|
4996
|
+
#
|
4997
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4998
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
4999
|
+
#
|
5000
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5001
|
+
# request = Google::Analytics::Admin::V1alpha::GetGoogleSignalsSettingsRequest.new
|
5002
|
+
#
|
5003
|
+
# # Call the get_google_signals_settings method.
|
5004
|
+
# result = client.get_google_signals_settings request
|
5005
|
+
#
|
5006
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::GoogleSignalsSettings.
|
5007
|
+
# p result
|
5008
|
+
#
|
4044
5009
|
def get_google_signals_settings request, options = nil
|
4045
5010
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
4046
5011
|
|
@@ -4058,16 +5023,20 @@ module Google
|
|
4058
5023
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
4059
5024
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4060
5025
|
|
4061
|
-
header_params = {
|
4062
|
-
|
4063
|
-
|
5026
|
+
header_params = {}
|
5027
|
+
if request.name
|
5028
|
+
header_params["name"] = request.name
|
5029
|
+
end
|
5030
|
+
|
4064
5031
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4065
5032
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
4066
5033
|
|
4067
5034
|
options.apply_defaults timeout: @config.rpcs.get_google_signals_settings.timeout,
|
4068
5035
|
metadata: metadata,
|
4069
5036
|
retry_policy: @config.rpcs.get_google_signals_settings.retry_policy
|
4070
|
-
|
5037
|
+
|
5038
|
+
options.apply_defaults timeout: @config.timeout,
|
5039
|
+
metadata: @config.metadata,
|
4071
5040
|
retry_policy: @config.retry_policy
|
4072
5041
|
|
4073
5042
|
@analytics_admin_service_stub.call_rpc :get_google_signals_settings, request, options: options do |response, operation|
|
@@ -4112,6 +5081,21 @@ module Google
|
|
4112
5081
|
#
|
4113
5082
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
4114
5083
|
#
|
5084
|
+
# @example Basic example
|
5085
|
+
# require "google/analytics/admin/v1alpha"
|
5086
|
+
#
|
5087
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5088
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
5089
|
+
#
|
5090
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5091
|
+
# request = Google::Analytics::Admin::V1alpha::UpdateGoogleSignalsSettingsRequest.new
|
5092
|
+
#
|
5093
|
+
# # Call the update_google_signals_settings method.
|
5094
|
+
# result = client.update_google_signals_settings request
|
5095
|
+
#
|
5096
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::GoogleSignalsSettings.
|
5097
|
+
# p result
|
5098
|
+
#
|
4115
5099
|
def update_google_signals_settings request, options = nil
|
4116
5100
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
4117
5101
|
|
@@ -4129,16 +5113,20 @@ module Google
|
|
4129
5113
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
4130
5114
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4131
5115
|
|
4132
|
-
header_params = {
|
4133
|
-
|
4134
|
-
|
5116
|
+
header_params = {}
|
5117
|
+
if request.google_signals_settings&.name
|
5118
|
+
header_params["google_signals_settings.name"] = request.google_signals_settings.name
|
5119
|
+
end
|
5120
|
+
|
4135
5121
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4136
5122
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
4137
5123
|
|
4138
5124
|
options.apply_defaults timeout: @config.rpcs.update_google_signals_settings.timeout,
|
4139
5125
|
metadata: metadata,
|
4140
5126
|
retry_policy: @config.rpcs.update_google_signals_settings.retry_policy
|
4141
|
-
|
5127
|
+
|
5128
|
+
options.apply_defaults timeout: @config.timeout,
|
5129
|
+
metadata: @config.metadata,
|
4142
5130
|
retry_policy: @config.retry_policy
|
4143
5131
|
|
4144
5132
|
@analytics_admin_service_stub.call_rpc :update_google_signals_settings, request, options: options do |response, operation|
|
@@ -4181,6 +5169,21 @@ module Google
|
|
4181
5169
|
#
|
4182
5170
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
4183
5171
|
#
|
5172
|
+
# @example Basic example
|
5173
|
+
# require "google/analytics/admin/v1alpha"
|
5174
|
+
#
|
5175
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5176
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
5177
|
+
#
|
5178
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5179
|
+
# request = Google::Analytics::Admin::V1alpha::CreateConversionEventRequest.new
|
5180
|
+
#
|
5181
|
+
# # Call the create_conversion_event method.
|
5182
|
+
# result = client.create_conversion_event request
|
5183
|
+
#
|
5184
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::ConversionEvent.
|
5185
|
+
# p result
|
5186
|
+
#
|
4184
5187
|
def create_conversion_event request, options = nil
|
4185
5188
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
4186
5189
|
|
@@ -4198,16 +5201,20 @@ module Google
|
|
4198
5201
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
4199
5202
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4200
5203
|
|
4201
|
-
header_params = {
|
4202
|
-
|
4203
|
-
|
5204
|
+
header_params = {}
|
5205
|
+
if request.parent
|
5206
|
+
header_params["parent"] = request.parent
|
5207
|
+
end
|
5208
|
+
|
4204
5209
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4205
5210
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
4206
5211
|
|
4207
5212
|
options.apply_defaults timeout: @config.rpcs.create_conversion_event.timeout,
|
4208
5213
|
metadata: metadata,
|
4209
5214
|
retry_policy: @config.rpcs.create_conversion_event.retry_policy
|
4210
|
-
|
5215
|
+
|
5216
|
+
options.apply_defaults timeout: @config.timeout,
|
5217
|
+
metadata: @config.metadata,
|
4211
5218
|
retry_policy: @config.retry_policy
|
4212
5219
|
|
4213
5220
|
@analytics_admin_service_stub.call_rpc :create_conversion_event, request, options: options do |response, operation|
|
@@ -4249,6 +5256,21 @@ module Google
|
|
4249
5256
|
#
|
4250
5257
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
4251
5258
|
#
|
5259
|
+
# @example Basic example
|
5260
|
+
# require "google/analytics/admin/v1alpha"
|
5261
|
+
#
|
5262
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5263
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
5264
|
+
#
|
5265
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5266
|
+
# request = Google::Analytics::Admin::V1alpha::GetConversionEventRequest.new
|
5267
|
+
#
|
5268
|
+
# # Call the get_conversion_event method.
|
5269
|
+
# result = client.get_conversion_event request
|
5270
|
+
#
|
5271
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::ConversionEvent.
|
5272
|
+
# p result
|
5273
|
+
#
|
4252
5274
|
def get_conversion_event request, options = nil
|
4253
5275
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
4254
5276
|
|
@@ -4266,16 +5288,20 @@ module Google
|
|
4266
5288
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
4267
5289
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4268
5290
|
|
4269
|
-
header_params = {
|
4270
|
-
|
4271
|
-
|
5291
|
+
header_params = {}
|
5292
|
+
if request.name
|
5293
|
+
header_params["name"] = request.name
|
5294
|
+
end
|
5295
|
+
|
4272
5296
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4273
5297
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
4274
5298
|
|
4275
5299
|
options.apply_defaults timeout: @config.rpcs.get_conversion_event.timeout,
|
4276
5300
|
metadata: metadata,
|
4277
5301
|
retry_policy: @config.rpcs.get_conversion_event.retry_policy
|
4278
|
-
|
5302
|
+
|
5303
|
+
options.apply_defaults timeout: @config.timeout,
|
5304
|
+
metadata: @config.metadata,
|
4279
5305
|
retry_policy: @config.retry_policy
|
4280
5306
|
|
4281
5307
|
@analytics_admin_service_stub.call_rpc :get_conversion_event, request, options: options do |response, operation|
|
@@ -4317,6 +5343,21 @@ module Google
|
|
4317
5343
|
#
|
4318
5344
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
4319
5345
|
#
|
5346
|
+
# @example Basic example
|
5347
|
+
# require "google/analytics/admin/v1alpha"
|
5348
|
+
#
|
5349
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5350
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
5351
|
+
#
|
5352
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5353
|
+
# request = Google::Analytics::Admin::V1alpha::DeleteConversionEventRequest.new
|
5354
|
+
#
|
5355
|
+
# # Call the delete_conversion_event method.
|
5356
|
+
# result = client.delete_conversion_event request
|
5357
|
+
#
|
5358
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
5359
|
+
# p result
|
5360
|
+
#
|
4320
5361
|
def delete_conversion_event request, options = nil
|
4321
5362
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
4322
5363
|
|
@@ -4334,16 +5375,20 @@ module Google
|
|
4334
5375
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
4335
5376
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4336
5377
|
|
4337
|
-
header_params = {
|
4338
|
-
|
4339
|
-
|
5378
|
+
header_params = {}
|
5379
|
+
if request.name
|
5380
|
+
header_params["name"] = request.name
|
5381
|
+
end
|
5382
|
+
|
4340
5383
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4341
5384
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
4342
5385
|
|
4343
5386
|
options.apply_defaults timeout: @config.rpcs.delete_conversion_event.timeout,
|
4344
5387
|
metadata: metadata,
|
4345
5388
|
retry_policy: @config.rpcs.delete_conversion_event.retry_policy
|
4346
|
-
|
5389
|
+
|
5390
|
+
options.apply_defaults timeout: @config.timeout,
|
5391
|
+
metadata: @config.metadata,
|
4347
5392
|
retry_policy: @config.retry_policy
|
4348
5393
|
|
4349
5394
|
@analytics_admin_service_stub.call_rpc :delete_conversion_event, request, options: options do |response, operation|
|
@@ -4395,6 +5440,27 @@ module Google
|
|
4395
5440
|
#
|
4396
5441
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
4397
5442
|
#
|
5443
|
+
# @example Basic example
|
5444
|
+
# require "google/analytics/admin/v1alpha"
|
5445
|
+
#
|
5446
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5447
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
5448
|
+
#
|
5449
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5450
|
+
# request = Google::Analytics::Admin::V1alpha::ListConversionEventsRequest.new
|
5451
|
+
#
|
5452
|
+
# # Call the list_conversion_events method.
|
5453
|
+
# result = client.list_conversion_events request
|
5454
|
+
#
|
5455
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
5456
|
+
# # iterate over all elements by calling #each, and the enumerable
|
5457
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
5458
|
+
# # methods are also available for managing paging directly.
|
5459
|
+
# result.each do |response|
|
5460
|
+
# # Each element is of type ::Google::Analytics::Admin::V1alpha::ConversionEvent.
|
5461
|
+
# p response
|
5462
|
+
# end
|
5463
|
+
#
|
4398
5464
|
def list_conversion_events request, options = nil
|
4399
5465
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
4400
5466
|
|
@@ -4412,16 +5478,20 @@ module Google
|
|
4412
5478
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
4413
5479
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4414
5480
|
|
4415
|
-
header_params = {
|
4416
|
-
|
4417
|
-
|
5481
|
+
header_params = {}
|
5482
|
+
if request.parent
|
5483
|
+
header_params["parent"] = request.parent
|
5484
|
+
end
|
5485
|
+
|
4418
5486
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4419
5487
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
4420
5488
|
|
4421
5489
|
options.apply_defaults timeout: @config.rpcs.list_conversion_events.timeout,
|
4422
5490
|
metadata: metadata,
|
4423
5491
|
retry_policy: @config.rpcs.list_conversion_events.retry_policy
|
4424
|
-
|
5492
|
+
|
5493
|
+
options.apply_defaults timeout: @config.timeout,
|
5494
|
+
metadata: @config.metadata,
|
4425
5495
|
retry_policy: @config.retry_policy
|
4426
5496
|
|
4427
5497
|
@analytics_admin_service_stub.call_rpc :list_conversion_events, request, options: options do |response, operation|
|
@@ -4434,24 +5504,1021 @@ module Google
|
|
4434
5504
|
end
|
4435
5505
|
|
4436
5506
|
##
|
4437
|
-
#
|
5507
|
+
# Look up a single DisplayVideo360AdvertiserLink
|
4438
5508
|
#
|
4439
|
-
# @overload
|
4440
|
-
# Pass arguments to `
|
4441
|
-
# {::Google::Analytics::Admin::V1alpha::
|
5509
|
+
# @overload get_display_video360_advertiser_link(request, options = nil)
|
5510
|
+
# Pass arguments to `get_display_video360_advertiser_link` via a request object, either of type
|
5511
|
+
# {::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest} or an equivalent Hash.
|
4442
5512
|
#
|
4443
|
-
# @param request [::Google::Analytics::Admin::V1alpha::
|
5513
|
+
# @param request [::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest, ::Hash]
|
4444
5514
|
# A request object representing the call parameters. Required. To specify no
|
4445
5515
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4446
5516
|
# @param options [::Gapic::CallOptions, ::Hash]
|
4447
5517
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
4448
5518
|
#
|
4449
|
-
# @overload
|
4450
|
-
# Pass arguments to `
|
5519
|
+
# @overload get_display_video360_advertiser_link(name: nil)
|
5520
|
+
# Pass arguments to `get_display_video360_advertiser_link` via keyword arguments. Note that at
|
4451
5521
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
4452
5522
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
4453
5523
|
#
|
4454
|
-
# @param
|
5524
|
+
# @param name [::String]
|
5525
|
+
# Required. The name of the DisplayVideo360AdvertiserLink to get.
|
5526
|
+
# Example format: properties/1234/displayVideo360AdvertiserLink/5678
|
5527
|
+
#
|
5528
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
5529
|
+
# @yieldparam response [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink]
|
5530
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5531
|
+
#
|
5532
|
+
# @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink]
|
5533
|
+
#
|
5534
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5535
|
+
#
|
5536
|
+
# @example Basic example
|
5537
|
+
# require "google/analytics/admin/v1alpha"
|
5538
|
+
#
|
5539
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5540
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
5541
|
+
#
|
5542
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5543
|
+
# request = Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest.new
|
5544
|
+
#
|
5545
|
+
# # Call the get_display_video360_advertiser_link method.
|
5546
|
+
# result = client.get_display_video360_advertiser_link request
|
5547
|
+
#
|
5548
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink.
|
5549
|
+
# p result
|
5550
|
+
#
|
5551
|
+
def get_display_video360_advertiser_link request, options = nil
|
5552
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5553
|
+
|
5554
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest
|
5555
|
+
|
5556
|
+
# Converts hash and nil to an options object
|
5557
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5558
|
+
|
5559
|
+
# Customize the options with defaults
|
5560
|
+
metadata = @config.rpcs.get_display_video360_advertiser_link.metadata.to_h
|
5561
|
+
|
5562
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
5563
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5564
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5565
|
+
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
5566
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5567
|
+
|
5568
|
+
header_params = {}
|
5569
|
+
if request.name
|
5570
|
+
header_params["name"] = request.name
|
5571
|
+
end
|
5572
|
+
|
5573
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5574
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
5575
|
+
|
5576
|
+
options.apply_defaults timeout: @config.rpcs.get_display_video360_advertiser_link.timeout,
|
5577
|
+
metadata: metadata,
|
5578
|
+
retry_policy: @config.rpcs.get_display_video360_advertiser_link.retry_policy
|
5579
|
+
|
5580
|
+
options.apply_defaults timeout: @config.timeout,
|
5581
|
+
metadata: @config.metadata,
|
5582
|
+
retry_policy: @config.retry_policy
|
5583
|
+
|
5584
|
+
@analytics_admin_service_stub.call_rpc :get_display_video360_advertiser_link, request, options: options do |response, operation|
|
5585
|
+
yield response, operation if block_given?
|
5586
|
+
return response
|
5587
|
+
end
|
5588
|
+
rescue ::GRPC::BadStatus => e
|
5589
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5590
|
+
end
|
5591
|
+
|
5592
|
+
##
|
5593
|
+
# Lists all DisplayVideo360AdvertiserLinks on a property.
|
5594
|
+
#
|
5595
|
+
# @overload list_display_video360_advertiser_links(request, options = nil)
|
5596
|
+
# Pass arguments to `list_display_video360_advertiser_links` via a request object, either of type
|
5597
|
+
# {::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest} or an equivalent Hash.
|
5598
|
+
#
|
5599
|
+
# @param request [::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest, ::Hash]
|
5600
|
+
# A request object representing the call parameters. Required. To specify no
|
5601
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5602
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5603
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
5604
|
+
#
|
5605
|
+
# @overload list_display_video360_advertiser_links(parent: nil, page_size: nil, page_token: nil)
|
5606
|
+
# Pass arguments to `list_display_video360_advertiser_links` via keyword arguments. Note that at
|
5607
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5608
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5609
|
+
#
|
5610
|
+
# @param parent [::String]
|
5611
|
+
# Required. Example format: properties/1234
|
5612
|
+
# @param page_size [::Integer]
|
5613
|
+
# The maximum number of resources to return.
|
5614
|
+
# If unspecified, at most 50 resources will be returned.
|
5615
|
+
# The maximum value is 200 (higher values will be coerced to the maximum).
|
5616
|
+
# @param page_token [::String]
|
5617
|
+
# A page token, received from a previous `ListDisplayVideo360AdvertiserLinks`
|
5618
|
+
# call. Provide this to retrieve the subsequent page.
|
5619
|
+
#
|
5620
|
+
# When paginating, all other parameters provided to
|
5621
|
+
# `ListDisplayVideo360AdvertiserLinks` must match the call that provided the
|
5622
|
+
# page token.
|
5623
|
+
#
|
5624
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
5625
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink>]
|
5626
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5627
|
+
#
|
5628
|
+
# @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink>]
|
5629
|
+
#
|
5630
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5631
|
+
#
|
5632
|
+
# @example Basic example
|
5633
|
+
# require "google/analytics/admin/v1alpha"
|
5634
|
+
#
|
5635
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5636
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
5637
|
+
#
|
5638
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5639
|
+
# request = Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest.new
|
5640
|
+
#
|
5641
|
+
# # Call the list_display_video360_advertiser_links method.
|
5642
|
+
# result = client.list_display_video360_advertiser_links request
|
5643
|
+
#
|
5644
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
5645
|
+
# # iterate over all elements by calling #each, and the enumerable
|
5646
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
5647
|
+
# # methods are also available for managing paging directly.
|
5648
|
+
# result.each do |response|
|
5649
|
+
# # Each element is of type ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink.
|
5650
|
+
# p response
|
5651
|
+
# end
|
5652
|
+
#
|
5653
|
+
def list_display_video360_advertiser_links request, options = nil
|
5654
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5655
|
+
|
5656
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest
|
5657
|
+
|
5658
|
+
# Converts hash and nil to an options object
|
5659
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5660
|
+
|
5661
|
+
# Customize the options with defaults
|
5662
|
+
metadata = @config.rpcs.list_display_video360_advertiser_links.metadata.to_h
|
5663
|
+
|
5664
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
5665
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5666
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5667
|
+
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
5668
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5669
|
+
|
5670
|
+
header_params = {}
|
5671
|
+
if request.parent
|
5672
|
+
header_params["parent"] = request.parent
|
5673
|
+
end
|
5674
|
+
|
5675
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5676
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
5677
|
+
|
5678
|
+
options.apply_defaults timeout: @config.rpcs.list_display_video360_advertiser_links.timeout,
|
5679
|
+
metadata: metadata,
|
5680
|
+
retry_policy: @config.rpcs.list_display_video360_advertiser_links.retry_policy
|
5681
|
+
|
5682
|
+
options.apply_defaults timeout: @config.timeout,
|
5683
|
+
metadata: @config.metadata,
|
5684
|
+
retry_policy: @config.retry_policy
|
5685
|
+
|
5686
|
+
@analytics_admin_service_stub.call_rpc :list_display_video360_advertiser_links, request, options: options do |response, operation|
|
5687
|
+
response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_display_video360_advertiser_links, request, response, operation, options
|
5688
|
+
yield response, operation if block_given?
|
5689
|
+
return response
|
5690
|
+
end
|
5691
|
+
rescue ::GRPC::BadStatus => e
|
5692
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5693
|
+
end
|
5694
|
+
|
5695
|
+
##
|
5696
|
+
# Creates a DisplayVideo360AdvertiserLink.
|
5697
|
+
# This can only be utilized by users who have proper authorization both on
|
5698
|
+
# the Google Analytics property and on the Display & Video 360 advertiser.
|
5699
|
+
# Users who do not have access to the Display & Video 360 advertiser should
|
5700
|
+
# instead seek to create a DisplayVideo360LinkProposal.
|
5701
|
+
#
|
5702
|
+
# @overload create_display_video360_advertiser_link(request, options = nil)
|
5703
|
+
# Pass arguments to `create_display_video360_advertiser_link` via a request object, either of type
|
5704
|
+
# {::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest} or an equivalent Hash.
|
5705
|
+
#
|
5706
|
+
# @param request [::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest, ::Hash]
|
5707
|
+
# A request object representing the call parameters. Required. To specify no
|
5708
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5709
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5710
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
5711
|
+
#
|
5712
|
+
# @overload create_display_video360_advertiser_link(parent: nil, display_video_360_advertiser_link: nil)
|
5713
|
+
# Pass arguments to `create_display_video360_advertiser_link` via keyword arguments. Note that at
|
5714
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5715
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5716
|
+
#
|
5717
|
+
# @param parent [::String]
|
5718
|
+
# Required. Example format: properties/1234
|
5719
|
+
# @param display_video_360_advertiser_link [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink, ::Hash]
|
5720
|
+
# Required. The DisplayVideo360AdvertiserLink to create.
|
5721
|
+
#
|
5722
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
5723
|
+
# @yieldparam response [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink]
|
5724
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5725
|
+
#
|
5726
|
+
# @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink]
|
5727
|
+
#
|
5728
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5729
|
+
#
|
5730
|
+
# @example Basic example
|
5731
|
+
# require "google/analytics/admin/v1alpha"
|
5732
|
+
#
|
5733
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5734
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
5735
|
+
#
|
5736
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5737
|
+
# request = Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest.new
|
5738
|
+
#
|
5739
|
+
# # Call the create_display_video360_advertiser_link method.
|
5740
|
+
# result = client.create_display_video360_advertiser_link request
|
5741
|
+
#
|
5742
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink.
|
5743
|
+
# p result
|
5744
|
+
#
|
5745
|
+
def create_display_video360_advertiser_link request, options = nil
|
5746
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5747
|
+
|
5748
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest
|
5749
|
+
|
5750
|
+
# Converts hash and nil to an options object
|
5751
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5752
|
+
|
5753
|
+
# Customize the options with defaults
|
5754
|
+
metadata = @config.rpcs.create_display_video360_advertiser_link.metadata.to_h
|
5755
|
+
|
5756
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
5757
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5758
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5759
|
+
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
5760
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5761
|
+
|
5762
|
+
header_params = {}
|
5763
|
+
if request.parent
|
5764
|
+
header_params["parent"] = request.parent
|
5765
|
+
end
|
5766
|
+
|
5767
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5768
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
5769
|
+
|
5770
|
+
options.apply_defaults timeout: @config.rpcs.create_display_video360_advertiser_link.timeout,
|
5771
|
+
metadata: metadata,
|
5772
|
+
retry_policy: @config.rpcs.create_display_video360_advertiser_link.retry_policy
|
5773
|
+
|
5774
|
+
options.apply_defaults timeout: @config.timeout,
|
5775
|
+
metadata: @config.metadata,
|
5776
|
+
retry_policy: @config.retry_policy
|
5777
|
+
|
5778
|
+
@analytics_admin_service_stub.call_rpc :create_display_video360_advertiser_link, request, options: options do |response, operation|
|
5779
|
+
yield response, operation if block_given?
|
5780
|
+
return response
|
5781
|
+
end
|
5782
|
+
rescue ::GRPC::BadStatus => e
|
5783
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5784
|
+
end
|
5785
|
+
|
5786
|
+
##
|
5787
|
+
# Deletes a DisplayVideo360AdvertiserLink on a property.
|
5788
|
+
#
|
5789
|
+
# @overload delete_display_video360_advertiser_link(request, options = nil)
|
5790
|
+
# Pass arguments to `delete_display_video360_advertiser_link` via a request object, either of type
|
5791
|
+
# {::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest} or an equivalent Hash.
|
5792
|
+
#
|
5793
|
+
# @param request [::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest, ::Hash]
|
5794
|
+
# A request object representing the call parameters. Required. To specify no
|
5795
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5796
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5797
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
5798
|
+
#
|
5799
|
+
# @overload delete_display_video360_advertiser_link(name: nil)
|
5800
|
+
# Pass arguments to `delete_display_video360_advertiser_link` via keyword arguments. Note that at
|
5801
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5802
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5803
|
+
#
|
5804
|
+
# @param name [::String]
|
5805
|
+
# Required. The name of the DisplayVideo360AdvertiserLink to delete.
|
5806
|
+
# Example format: properties/1234/displayVideo360AdvertiserLinks/5678
|
5807
|
+
#
|
5808
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
5809
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
5810
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5811
|
+
#
|
5812
|
+
# @return [::Google::Protobuf::Empty]
|
5813
|
+
#
|
5814
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5815
|
+
#
|
5816
|
+
# @example Basic example
|
5817
|
+
# require "google/analytics/admin/v1alpha"
|
5818
|
+
#
|
5819
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5820
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
5821
|
+
#
|
5822
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5823
|
+
# request = Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest.new
|
5824
|
+
#
|
5825
|
+
# # Call the delete_display_video360_advertiser_link method.
|
5826
|
+
# result = client.delete_display_video360_advertiser_link request
|
5827
|
+
#
|
5828
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
5829
|
+
# p result
|
5830
|
+
#
|
5831
|
+
def delete_display_video360_advertiser_link request, options = nil
|
5832
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5833
|
+
|
5834
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest
|
5835
|
+
|
5836
|
+
# Converts hash and nil to an options object
|
5837
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5838
|
+
|
5839
|
+
# Customize the options with defaults
|
5840
|
+
metadata = @config.rpcs.delete_display_video360_advertiser_link.metadata.to_h
|
5841
|
+
|
5842
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
5843
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5844
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5845
|
+
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
5846
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5847
|
+
|
5848
|
+
header_params = {}
|
5849
|
+
if request.name
|
5850
|
+
header_params["name"] = request.name
|
5851
|
+
end
|
5852
|
+
|
5853
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5854
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
5855
|
+
|
5856
|
+
options.apply_defaults timeout: @config.rpcs.delete_display_video360_advertiser_link.timeout,
|
5857
|
+
metadata: metadata,
|
5858
|
+
retry_policy: @config.rpcs.delete_display_video360_advertiser_link.retry_policy
|
5859
|
+
|
5860
|
+
options.apply_defaults timeout: @config.timeout,
|
5861
|
+
metadata: @config.metadata,
|
5862
|
+
retry_policy: @config.retry_policy
|
5863
|
+
|
5864
|
+
@analytics_admin_service_stub.call_rpc :delete_display_video360_advertiser_link, request, options: options do |response, operation|
|
5865
|
+
yield response, operation if block_given?
|
5866
|
+
return response
|
5867
|
+
end
|
5868
|
+
rescue ::GRPC::BadStatus => e
|
5869
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5870
|
+
end
|
5871
|
+
|
5872
|
+
##
|
5873
|
+
# Updates a DisplayVideo360AdvertiserLink on a property.
|
5874
|
+
#
|
5875
|
+
# @overload update_display_video360_advertiser_link(request, options = nil)
|
5876
|
+
# Pass arguments to `update_display_video360_advertiser_link` via a request object, either of type
|
5877
|
+
# {::Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest} or an equivalent Hash.
|
5878
|
+
#
|
5879
|
+
# @param request [::Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest, ::Hash]
|
5880
|
+
# A request object representing the call parameters. Required. To specify no
|
5881
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5882
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5883
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
5884
|
+
#
|
5885
|
+
# @overload update_display_video360_advertiser_link(display_video_360_advertiser_link: nil, update_mask: nil)
|
5886
|
+
# Pass arguments to `update_display_video360_advertiser_link` via keyword arguments. Note that at
|
5887
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5888
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5889
|
+
#
|
5890
|
+
# @param display_video_360_advertiser_link [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink, ::Hash]
|
5891
|
+
# The DisplayVideo360AdvertiserLink to update
|
5892
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
5893
|
+
# Required. The list of fields to be updated. Omitted fields will not be updated.
|
5894
|
+
# To replace the entire entity, use one path with the string "*" to match
|
5895
|
+
# all fields.
|
5896
|
+
#
|
5897
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
5898
|
+
# @yieldparam response [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink]
|
5899
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5900
|
+
#
|
5901
|
+
# @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink]
|
5902
|
+
#
|
5903
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5904
|
+
#
|
5905
|
+
# @example Basic example
|
5906
|
+
# require "google/analytics/admin/v1alpha"
|
5907
|
+
#
|
5908
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5909
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
5910
|
+
#
|
5911
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5912
|
+
# request = Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest.new
|
5913
|
+
#
|
5914
|
+
# # Call the update_display_video360_advertiser_link method.
|
5915
|
+
# result = client.update_display_video360_advertiser_link request
|
5916
|
+
#
|
5917
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink.
|
5918
|
+
# p result
|
5919
|
+
#
|
5920
|
+
def update_display_video360_advertiser_link request, options = nil
|
5921
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5922
|
+
|
5923
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest
|
5924
|
+
|
5925
|
+
# Converts hash and nil to an options object
|
5926
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5927
|
+
|
5928
|
+
# Customize the options with defaults
|
5929
|
+
metadata = @config.rpcs.update_display_video360_advertiser_link.metadata.to_h
|
5930
|
+
|
5931
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
5932
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5933
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5934
|
+
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
5935
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5936
|
+
|
5937
|
+
header_params = {}
|
5938
|
+
if request.display_video_360_advertiser_link&.name
|
5939
|
+
header_params["display_video_360_advertiser_link.name"] = request.display_video_360_advertiser_link.name
|
5940
|
+
end
|
5941
|
+
|
5942
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5943
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
5944
|
+
|
5945
|
+
options.apply_defaults timeout: @config.rpcs.update_display_video360_advertiser_link.timeout,
|
5946
|
+
metadata: metadata,
|
5947
|
+
retry_policy: @config.rpcs.update_display_video360_advertiser_link.retry_policy
|
5948
|
+
|
5949
|
+
options.apply_defaults timeout: @config.timeout,
|
5950
|
+
metadata: @config.metadata,
|
5951
|
+
retry_policy: @config.retry_policy
|
5952
|
+
|
5953
|
+
@analytics_admin_service_stub.call_rpc :update_display_video360_advertiser_link, request, options: options do |response, operation|
|
5954
|
+
yield response, operation if block_given?
|
5955
|
+
return response
|
5956
|
+
end
|
5957
|
+
rescue ::GRPC::BadStatus => e
|
5958
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5959
|
+
end
|
5960
|
+
|
5961
|
+
##
|
5962
|
+
# Lookup for a single DisplayVideo360AdvertiserLinkProposal.
|
5963
|
+
#
|
5964
|
+
# @overload get_display_video360_advertiser_link_proposal(request, options = nil)
|
5965
|
+
# Pass arguments to `get_display_video360_advertiser_link_proposal` via a request object, either of type
|
5966
|
+
# {::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest} or an equivalent Hash.
|
5967
|
+
#
|
5968
|
+
# @param request [::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest, ::Hash]
|
5969
|
+
# A request object representing the call parameters. Required. To specify no
|
5970
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5971
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5972
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
5973
|
+
#
|
5974
|
+
# @overload get_display_video360_advertiser_link_proposal(name: nil)
|
5975
|
+
# Pass arguments to `get_display_video360_advertiser_link_proposal` via keyword arguments. Note that at
|
5976
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5977
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5978
|
+
#
|
5979
|
+
# @param name [::String]
|
5980
|
+
# Required. The name of the DisplayVideo360AdvertiserLinkProposal to get.
|
5981
|
+
# Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
|
5982
|
+
#
|
5983
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
5984
|
+
# @yieldparam response [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal]
|
5985
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5986
|
+
#
|
5987
|
+
# @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal]
|
5988
|
+
#
|
5989
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5990
|
+
#
|
5991
|
+
# @example Basic example
|
5992
|
+
# require "google/analytics/admin/v1alpha"
|
5993
|
+
#
|
5994
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5995
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
5996
|
+
#
|
5997
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5998
|
+
# request = Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest.new
|
5999
|
+
#
|
6000
|
+
# # Call the get_display_video360_advertiser_link_proposal method.
|
6001
|
+
# result = client.get_display_video360_advertiser_link_proposal request
|
6002
|
+
#
|
6003
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal.
|
6004
|
+
# p result
|
6005
|
+
#
|
6006
|
+
def get_display_video360_advertiser_link_proposal request, options = nil
|
6007
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
6008
|
+
|
6009
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest
|
6010
|
+
|
6011
|
+
# Converts hash and nil to an options object
|
6012
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
6013
|
+
|
6014
|
+
# Customize the options with defaults
|
6015
|
+
metadata = @config.rpcs.get_display_video360_advertiser_link_proposal.metadata.to_h
|
6016
|
+
|
6017
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
6018
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
6019
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
6020
|
+
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
6021
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
6022
|
+
|
6023
|
+
header_params = {}
|
6024
|
+
if request.name
|
6025
|
+
header_params["name"] = request.name
|
6026
|
+
end
|
6027
|
+
|
6028
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
6029
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
6030
|
+
|
6031
|
+
options.apply_defaults timeout: @config.rpcs.get_display_video360_advertiser_link_proposal.timeout,
|
6032
|
+
metadata: metadata,
|
6033
|
+
retry_policy: @config.rpcs.get_display_video360_advertiser_link_proposal.retry_policy
|
6034
|
+
|
6035
|
+
options.apply_defaults timeout: @config.timeout,
|
6036
|
+
metadata: @config.metadata,
|
6037
|
+
retry_policy: @config.retry_policy
|
6038
|
+
|
6039
|
+
@analytics_admin_service_stub.call_rpc :get_display_video360_advertiser_link_proposal, request, options: options do |response, operation|
|
6040
|
+
yield response, operation if block_given?
|
6041
|
+
return response
|
6042
|
+
end
|
6043
|
+
rescue ::GRPC::BadStatus => e
|
6044
|
+
raise ::Google::Cloud::Error.from_error(e)
|
6045
|
+
end
|
6046
|
+
|
6047
|
+
##
|
6048
|
+
# Lists DisplayVideo360AdvertiserLinkProposals on a property.
|
6049
|
+
#
|
6050
|
+
# @overload list_display_video360_advertiser_link_proposals(request, options = nil)
|
6051
|
+
# Pass arguments to `list_display_video360_advertiser_link_proposals` via a request object, either of type
|
6052
|
+
# {::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest} or an equivalent Hash.
|
6053
|
+
#
|
6054
|
+
# @param request [::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest, ::Hash]
|
6055
|
+
# A request object representing the call parameters. Required. To specify no
|
6056
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
6057
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
6058
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
6059
|
+
#
|
6060
|
+
# @overload list_display_video360_advertiser_link_proposals(parent: nil, page_size: nil, page_token: nil)
|
6061
|
+
# Pass arguments to `list_display_video360_advertiser_link_proposals` via keyword arguments. Note that at
|
6062
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
6063
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
6064
|
+
#
|
6065
|
+
# @param parent [::String]
|
6066
|
+
# Required. Example format: properties/1234
|
6067
|
+
# @param page_size [::Integer]
|
6068
|
+
# The maximum number of resources to return.
|
6069
|
+
# If unspecified, at most 50 resources will be returned.
|
6070
|
+
# The maximum value is 200 (higher values will be coerced to the maximum).
|
6071
|
+
# @param page_token [::String]
|
6072
|
+
# A page token, received from a previous
|
6073
|
+
# `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve
|
6074
|
+
# the subsequent page.
|
6075
|
+
#
|
6076
|
+
# When paginating, all other parameters provided to
|
6077
|
+
# `ListDisplayVideo360AdvertiserLinkProposals` must match the call that
|
6078
|
+
# provided the page token.
|
6079
|
+
#
|
6080
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
6081
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal>]
|
6082
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
6083
|
+
#
|
6084
|
+
# @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal>]
|
6085
|
+
#
|
6086
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
6087
|
+
#
|
6088
|
+
# @example Basic example
|
6089
|
+
# require "google/analytics/admin/v1alpha"
|
6090
|
+
#
|
6091
|
+
# # Create a client object. The client can be reused for multiple calls.
|
6092
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
6093
|
+
#
|
6094
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
6095
|
+
# request = Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest.new
|
6096
|
+
#
|
6097
|
+
# # Call the list_display_video360_advertiser_link_proposals method.
|
6098
|
+
# result = client.list_display_video360_advertiser_link_proposals request
|
6099
|
+
#
|
6100
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
6101
|
+
# # iterate over all elements by calling #each, and the enumerable
|
6102
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
6103
|
+
# # methods are also available for managing paging directly.
|
6104
|
+
# result.each do |response|
|
6105
|
+
# # Each element is of type ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal.
|
6106
|
+
# p response
|
6107
|
+
# end
|
6108
|
+
#
|
6109
|
+
def list_display_video360_advertiser_link_proposals request, options = nil
|
6110
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
6111
|
+
|
6112
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest
|
6113
|
+
|
6114
|
+
# Converts hash and nil to an options object
|
6115
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
6116
|
+
|
6117
|
+
# Customize the options with defaults
|
6118
|
+
metadata = @config.rpcs.list_display_video360_advertiser_link_proposals.metadata.to_h
|
6119
|
+
|
6120
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
6121
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
6122
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
6123
|
+
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
6124
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
6125
|
+
|
6126
|
+
header_params = {}
|
6127
|
+
if request.parent
|
6128
|
+
header_params["parent"] = request.parent
|
6129
|
+
end
|
6130
|
+
|
6131
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
6132
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
6133
|
+
|
6134
|
+
options.apply_defaults timeout: @config.rpcs.list_display_video360_advertiser_link_proposals.timeout,
|
6135
|
+
metadata: metadata,
|
6136
|
+
retry_policy: @config.rpcs.list_display_video360_advertiser_link_proposals.retry_policy
|
6137
|
+
|
6138
|
+
options.apply_defaults timeout: @config.timeout,
|
6139
|
+
metadata: @config.metadata,
|
6140
|
+
retry_policy: @config.retry_policy
|
6141
|
+
|
6142
|
+
@analytics_admin_service_stub.call_rpc :list_display_video360_advertiser_link_proposals, request, options: options do |response, operation|
|
6143
|
+
response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_display_video360_advertiser_link_proposals, request, response, operation, options
|
6144
|
+
yield response, operation if block_given?
|
6145
|
+
return response
|
6146
|
+
end
|
6147
|
+
rescue ::GRPC::BadStatus => e
|
6148
|
+
raise ::Google::Cloud::Error.from_error(e)
|
6149
|
+
end
|
6150
|
+
|
6151
|
+
##
|
6152
|
+
# Creates a DisplayVideo360AdvertiserLinkProposal.
|
6153
|
+
#
|
6154
|
+
# @overload create_display_video360_advertiser_link_proposal(request, options = nil)
|
6155
|
+
# Pass arguments to `create_display_video360_advertiser_link_proposal` via a request object, either of type
|
6156
|
+
# {::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest} or an equivalent Hash.
|
6157
|
+
#
|
6158
|
+
# @param request [::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest, ::Hash]
|
6159
|
+
# A request object representing the call parameters. Required. To specify no
|
6160
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
6161
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
6162
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
6163
|
+
#
|
6164
|
+
# @overload create_display_video360_advertiser_link_proposal(parent: nil, display_video_360_advertiser_link_proposal: nil)
|
6165
|
+
# Pass arguments to `create_display_video360_advertiser_link_proposal` via keyword arguments. Note that at
|
6166
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
6167
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
6168
|
+
#
|
6169
|
+
# @param parent [::String]
|
6170
|
+
# Required. Example format: properties/1234
|
6171
|
+
# @param display_video_360_advertiser_link_proposal [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal, ::Hash]
|
6172
|
+
# Required. The DisplayVideo360AdvertiserLinkProposal to create.
|
6173
|
+
#
|
6174
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
6175
|
+
# @yieldparam response [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal]
|
6176
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
6177
|
+
#
|
6178
|
+
# @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal]
|
6179
|
+
#
|
6180
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
6181
|
+
#
|
6182
|
+
# @example Basic example
|
6183
|
+
# require "google/analytics/admin/v1alpha"
|
6184
|
+
#
|
6185
|
+
# # Create a client object. The client can be reused for multiple calls.
|
6186
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
6187
|
+
#
|
6188
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
6189
|
+
# request = Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest.new
|
6190
|
+
#
|
6191
|
+
# # Call the create_display_video360_advertiser_link_proposal method.
|
6192
|
+
# result = client.create_display_video360_advertiser_link_proposal request
|
6193
|
+
#
|
6194
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal.
|
6195
|
+
# p result
|
6196
|
+
#
|
6197
|
+
def create_display_video360_advertiser_link_proposal request, options = nil
|
6198
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
6199
|
+
|
6200
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest
|
6201
|
+
|
6202
|
+
# Converts hash and nil to an options object
|
6203
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
6204
|
+
|
6205
|
+
# Customize the options with defaults
|
6206
|
+
metadata = @config.rpcs.create_display_video360_advertiser_link_proposal.metadata.to_h
|
6207
|
+
|
6208
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
6209
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
6210
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
6211
|
+
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
6212
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
6213
|
+
|
6214
|
+
header_params = {}
|
6215
|
+
if request.parent
|
6216
|
+
header_params["parent"] = request.parent
|
6217
|
+
end
|
6218
|
+
|
6219
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
6220
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
6221
|
+
|
6222
|
+
options.apply_defaults timeout: @config.rpcs.create_display_video360_advertiser_link_proposal.timeout,
|
6223
|
+
metadata: metadata,
|
6224
|
+
retry_policy: @config.rpcs.create_display_video360_advertiser_link_proposal.retry_policy
|
6225
|
+
|
6226
|
+
options.apply_defaults timeout: @config.timeout,
|
6227
|
+
metadata: @config.metadata,
|
6228
|
+
retry_policy: @config.retry_policy
|
6229
|
+
|
6230
|
+
@analytics_admin_service_stub.call_rpc :create_display_video360_advertiser_link_proposal, request, options: options do |response, operation|
|
6231
|
+
yield response, operation if block_given?
|
6232
|
+
return response
|
6233
|
+
end
|
6234
|
+
rescue ::GRPC::BadStatus => e
|
6235
|
+
raise ::Google::Cloud::Error.from_error(e)
|
6236
|
+
end
|
6237
|
+
|
6238
|
+
##
|
6239
|
+
# Deletes a DisplayVideo360AdvertiserLinkProposal on a property.
|
6240
|
+
# This can only be used on cancelled proposals.
|
6241
|
+
#
|
6242
|
+
# @overload delete_display_video360_advertiser_link_proposal(request, options = nil)
|
6243
|
+
# Pass arguments to `delete_display_video360_advertiser_link_proposal` via a request object, either of type
|
6244
|
+
# {::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest} or an equivalent Hash.
|
6245
|
+
#
|
6246
|
+
# @param request [::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest, ::Hash]
|
6247
|
+
# A request object representing the call parameters. Required. To specify no
|
6248
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
6249
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
6250
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
6251
|
+
#
|
6252
|
+
# @overload delete_display_video360_advertiser_link_proposal(name: nil)
|
6253
|
+
# Pass arguments to `delete_display_video360_advertiser_link_proposal` via keyword arguments. Note that at
|
6254
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
6255
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
6256
|
+
#
|
6257
|
+
# @param name [::String]
|
6258
|
+
# Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete.
|
6259
|
+
# Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
|
6260
|
+
#
|
6261
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
6262
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
6263
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
6264
|
+
#
|
6265
|
+
# @return [::Google::Protobuf::Empty]
|
6266
|
+
#
|
6267
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
6268
|
+
#
|
6269
|
+
# @example Basic example
|
6270
|
+
# require "google/analytics/admin/v1alpha"
|
6271
|
+
#
|
6272
|
+
# # Create a client object. The client can be reused for multiple calls.
|
6273
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
6274
|
+
#
|
6275
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
6276
|
+
# request = Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest.new
|
6277
|
+
#
|
6278
|
+
# # Call the delete_display_video360_advertiser_link_proposal method.
|
6279
|
+
# result = client.delete_display_video360_advertiser_link_proposal request
|
6280
|
+
#
|
6281
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
6282
|
+
# p result
|
6283
|
+
#
|
6284
|
+
def delete_display_video360_advertiser_link_proposal request, options = nil
|
6285
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
6286
|
+
|
6287
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest
|
6288
|
+
|
6289
|
+
# Converts hash and nil to an options object
|
6290
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
6291
|
+
|
6292
|
+
# Customize the options with defaults
|
6293
|
+
metadata = @config.rpcs.delete_display_video360_advertiser_link_proposal.metadata.to_h
|
6294
|
+
|
6295
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
6296
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
6297
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
6298
|
+
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
6299
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
6300
|
+
|
6301
|
+
header_params = {}
|
6302
|
+
if request.name
|
6303
|
+
header_params["name"] = request.name
|
6304
|
+
end
|
6305
|
+
|
6306
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
6307
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
6308
|
+
|
6309
|
+
options.apply_defaults timeout: @config.rpcs.delete_display_video360_advertiser_link_proposal.timeout,
|
6310
|
+
metadata: metadata,
|
6311
|
+
retry_policy: @config.rpcs.delete_display_video360_advertiser_link_proposal.retry_policy
|
6312
|
+
|
6313
|
+
options.apply_defaults timeout: @config.timeout,
|
6314
|
+
metadata: @config.metadata,
|
6315
|
+
retry_policy: @config.retry_policy
|
6316
|
+
|
6317
|
+
@analytics_admin_service_stub.call_rpc :delete_display_video360_advertiser_link_proposal, request, options: options do |response, operation|
|
6318
|
+
yield response, operation if block_given?
|
6319
|
+
return response
|
6320
|
+
end
|
6321
|
+
rescue ::GRPC::BadStatus => e
|
6322
|
+
raise ::Google::Cloud::Error.from_error(e)
|
6323
|
+
end
|
6324
|
+
|
6325
|
+
##
|
6326
|
+
# Approves a DisplayVideo360AdvertiserLinkProposal.
|
6327
|
+
# The DisplayVideo360AdvertiserLinkProposal will be deleted and a new
|
6328
|
+
# DisplayVideo360AdvertiserLink will be created.
|
6329
|
+
#
|
6330
|
+
# @overload approve_display_video360_advertiser_link_proposal(request, options = nil)
|
6331
|
+
# Pass arguments to `approve_display_video360_advertiser_link_proposal` via a request object, either of type
|
6332
|
+
# {::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest} or an equivalent Hash.
|
6333
|
+
#
|
6334
|
+
# @param request [::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest, ::Hash]
|
6335
|
+
# A request object representing the call parameters. Required. To specify no
|
6336
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
6337
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
6338
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
6339
|
+
#
|
6340
|
+
# @overload approve_display_video360_advertiser_link_proposal(name: nil)
|
6341
|
+
# Pass arguments to `approve_display_video360_advertiser_link_proposal` via keyword arguments. Note that at
|
6342
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
6343
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
6344
|
+
#
|
6345
|
+
# @param name [::String]
|
6346
|
+
# Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve.
|
6347
|
+
# Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
|
6348
|
+
#
|
6349
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
6350
|
+
# @yieldparam response [::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponse]
|
6351
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
6352
|
+
#
|
6353
|
+
# @return [::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponse]
|
6354
|
+
#
|
6355
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
6356
|
+
#
|
6357
|
+
# @example Basic example
|
6358
|
+
# require "google/analytics/admin/v1alpha"
|
6359
|
+
#
|
6360
|
+
# # Create a client object. The client can be reused for multiple calls.
|
6361
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
6362
|
+
#
|
6363
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
6364
|
+
# request = Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest.new
|
6365
|
+
#
|
6366
|
+
# # Call the approve_display_video360_advertiser_link_proposal method.
|
6367
|
+
# result = client.approve_display_video360_advertiser_link_proposal request
|
6368
|
+
#
|
6369
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponse.
|
6370
|
+
# p result
|
6371
|
+
#
|
6372
|
+
def approve_display_video360_advertiser_link_proposal request, options = nil
|
6373
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
6374
|
+
|
6375
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest
|
6376
|
+
|
6377
|
+
# Converts hash and nil to an options object
|
6378
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
6379
|
+
|
6380
|
+
# Customize the options with defaults
|
6381
|
+
metadata = @config.rpcs.approve_display_video360_advertiser_link_proposal.metadata.to_h
|
6382
|
+
|
6383
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
6384
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
6385
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
6386
|
+
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
6387
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
6388
|
+
|
6389
|
+
header_params = {}
|
6390
|
+
if request.name
|
6391
|
+
header_params["name"] = request.name
|
6392
|
+
end
|
6393
|
+
|
6394
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
6395
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
6396
|
+
|
6397
|
+
options.apply_defaults timeout: @config.rpcs.approve_display_video360_advertiser_link_proposal.timeout,
|
6398
|
+
metadata: metadata,
|
6399
|
+
retry_policy: @config.rpcs.approve_display_video360_advertiser_link_proposal.retry_policy
|
6400
|
+
|
6401
|
+
options.apply_defaults timeout: @config.timeout,
|
6402
|
+
metadata: @config.metadata,
|
6403
|
+
retry_policy: @config.retry_policy
|
6404
|
+
|
6405
|
+
@analytics_admin_service_stub.call_rpc :approve_display_video360_advertiser_link_proposal, request, options: options do |response, operation|
|
6406
|
+
yield response, operation if block_given?
|
6407
|
+
return response
|
6408
|
+
end
|
6409
|
+
rescue ::GRPC::BadStatus => e
|
6410
|
+
raise ::Google::Cloud::Error.from_error(e)
|
6411
|
+
end
|
6412
|
+
|
6413
|
+
##
|
6414
|
+
# Cancels a DisplayVideo360AdvertiserLinkProposal.
|
6415
|
+
# Cancelling can mean either:
|
6416
|
+
# - Declining a proposal initiated from Display & Video 360
|
6417
|
+
# - Withdrawing a proposal initiated from Google Analytics
|
6418
|
+
# After being cancelled, a proposal will eventually be deleted automatically.
|
6419
|
+
#
|
6420
|
+
# @overload cancel_display_video360_advertiser_link_proposal(request, options = nil)
|
6421
|
+
# Pass arguments to `cancel_display_video360_advertiser_link_proposal` via a request object, either of type
|
6422
|
+
# {::Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest} or an equivalent Hash.
|
6423
|
+
#
|
6424
|
+
# @param request [::Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest, ::Hash]
|
6425
|
+
# A request object representing the call parameters. Required. To specify no
|
6426
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
6427
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
6428
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
6429
|
+
#
|
6430
|
+
# @overload cancel_display_video360_advertiser_link_proposal(name: nil)
|
6431
|
+
# Pass arguments to `cancel_display_video360_advertiser_link_proposal` via keyword arguments. Note that at
|
6432
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
6433
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
6434
|
+
#
|
6435
|
+
# @param name [::String]
|
6436
|
+
# Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel.
|
6437
|
+
# Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
|
6438
|
+
#
|
6439
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
6440
|
+
# @yieldparam response [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal]
|
6441
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
6442
|
+
#
|
6443
|
+
# @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal]
|
6444
|
+
#
|
6445
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
6446
|
+
#
|
6447
|
+
# @example Basic example
|
6448
|
+
# require "google/analytics/admin/v1alpha"
|
6449
|
+
#
|
6450
|
+
# # Create a client object. The client can be reused for multiple calls.
|
6451
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
6452
|
+
#
|
6453
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
6454
|
+
# request = Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest.new
|
6455
|
+
#
|
6456
|
+
# # Call the cancel_display_video360_advertiser_link_proposal method.
|
6457
|
+
# result = client.cancel_display_video360_advertiser_link_proposal request
|
6458
|
+
#
|
6459
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal.
|
6460
|
+
# p result
|
6461
|
+
#
|
6462
|
+
def cancel_display_video360_advertiser_link_proposal request, options = nil
|
6463
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
6464
|
+
|
6465
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest
|
6466
|
+
|
6467
|
+
# Converts hash and nil to an options object
|
6468
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
6469
|
+
|
6470
|
+
# Customize the options with defaults
|
6471
|
+
metadata = @config.rpcs.cancel_display_video360_advertiser_link_proposal.metadata.to_h
|
6472
|
+
|
6473
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
6474
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
6475
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
6476
|
+
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
6477
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
6478
|
+
|
6479
|
+
header_params = {}
|
6480
|
+
if request.name
|
6481
|
+
header_params["name"] = request.name
|
6482
|
+
end
|
6483
|
+
|
6484
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
6485
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
6486
|
+
|
6487
|
+
options.apply_defaults timeout: @config.rpcs.cancel_display_video360_advertiser_link_proposal.timeout,
|
6488
|
+
metadata: metadata,
|
6489
|
+
retry_policy: @config.rpcs.cancel_display_video360_advertiser_link_proposal.retry_policy
|
6490
|
+
|
6491
|
+
options.apply_defaults timeout: @config.timeout,
|
6492
|
+
metadata: @config.metadata,
|
6493
|
+
retry_policy: @config.retry_policy
|
6494
|
+
|
6495
|
+
@analytics_admin_service_stub.call_rpc :cancel_display_video360_advertiser_link_proposal, request, options: options do |response, operation|
|
6496
|
+
yield response, operation if block_given?
|
6497
|
+
return response
|
6498
|
+
end
|
6499
|
+
rescue ::GRPC::BadStatus => e
|
6500
|
+
raise ::Google::Cloud::Error.from_error(e)
|
6501
|
+
end
|
6502
|
+
|
6503
|
+
##
|
6504
|
+
# Creates a CustomDimension.
|
6505
|
+
#
|
6506
|
+
# @overload create_custom_dimension(request, options = nil)
|
6507
|
+
# Pass arguments to `create_custom_dimension` via a request object, either of type
|
6508
|
+
# {::Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest} or an equivalent Hash.
|
6509
|
+
#
|
6510
|
+
# @param request [::Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest, ::Hash]
|
6511
|
+
# A request object representing the call parameters. Required. To specify no
|
6512
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
6513
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
6514
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
6515
|
+
#
|
6516
|
+
# @overload create_custom_dimension(parent: nil, custom_dimension: nil)
|
6517
|
+
# Pass arguments to `create_custom_dimension` via keyword arguments. Note that at
|
6518
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
6519
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
6520
|
+
#
|
6521
|
+
# @param parent [::String]
|
4455
6522
|
# Required. Example format: properties/1234
|
4456
6523
|
# @param custom_dimension [::Google::Analytics::Admin::V1alpha::CustomDimension, ::Hash]
|
4457
6524
|
# Required. The CustomDimension to create.
|
@@ -4464,6 +6531,21 @@ module Google
|
|
4464
6531
|
#
|
4465
6532
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
4466
6533
|
#
|
6534
|
+
# @example Basic example
|
6535
|
+
# require "google/analytics/admin/v1alpha"
|
6536
|
+
#
|
6537
|
+
# # Create a client object. The client can be reused for multiple calls.
|
6538
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
6539
|
+
#
|
6540
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
6541
|
+
# request = Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest.new
|
6542
|
+
#
|
6543
|
+
# # Call the create_custom_dimension method.
|
6544
|
+
# result = client.create_custom_dimension request
|
6545
|
+
#
|
6546
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::CustomDimension.
|
6547
|
+
# p result
|
6548
|
+
#
|
4467
6549
|
def create_custom_dimension request, options = nil
|
4468
6550
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
4469
6551
|
|
@@ -4481,16 +6563,20 @@ module Google
|
|
4481
6563
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
4482
6564
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4483
6565
|
|
4484
|
-
header_params = {
|
4485
|
-
|
4486
|
-
|
6566
|
+
header_params = {}
|
6567
|
+
if request.parent
|
6568
|
+
header_params["parent"] = request.parent
|
6569
|
+
end
|
6570
|
+
|
4487
6571
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4488
6572
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
4489
6573
|
|
4490
6574
|
options.apply_defaults timeout: @config.rpcs.create_custom_dimension.timeout,
|
4491
6575
|
metadata: metadata,
|
4492
6576
|
retry_policy: @config.rpcs.create_custom_dimension.retry_policy
|
4493
|
-
|
6577
|
+
|
6578
|
+
options.apply_defaults timeout: @config.timeout,
|
6579
|
+
metadata: @config.metadata,
|
4494
6580
|
retry_policy: @config.retry_policy
|
4495
6581
|
|
4496
6582
|
@analytics_admin_service_stub.call_rpc :create_custom_dimension, request, options: options do |response, operation|
|
@@ -4534,6 +6620,21 @@ module Google
|
|
4534
6620
|
#
|
4535
6621
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
4536
6622
|
#
|
6623
|
+
# @example Basic example
|
6624
|
+
# require "google/analytics/admin/v1alpha"
|
6625
|
+
#
|
6626
|
+
# # Create a client object. The client can be reused for multiple calls.
|
6627
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
6628
|
+
#
|
6629
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
6630
|
+
# request = Google::Analytics::Admin::V1alpha::UpdateCustomDimensionRequest.new
|
6631
|
+
#
|
6632
|
+
# # Call the update_custom_dimension method.
|
6633
|
+
# result = client.update_custom_dimension request
|
6634
|
+
#
|
6635
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::CustomDimension.
|
6636
|
+
# p result
|
6637
|
+
#
|
4537
6638
|
def update_custom_dimension request, options = nil
|
4538
6639
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
4539
6640
|
|
@@ -4551,16 +6652,20 @@ module Google
|
|
4551
6652
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
4552
6653
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4553
6654
|
|
4554
|
-
header_params = {
|
4555
|
-
|
4556
|
-
|
6655
|
+
header_params = {}
|
6656
|
+
if request.custom_dimension&.name
|
6657
|
+
header_params["custom_dimension.name"] = request.custom_dimension.name
|
6658
|
+
end
|
6659
|
+
|
4557
6660
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4558
6661
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
4559
6662
|
|
4560
6663
|
options.apply_defaults timeout: @config.rpcs.update_custom_dimension.timeout,
|
4561
6664
|
metadata: metadata,
|
4562
6665
|
retry_policy: @config.rpcs.update_custom_dimension.retry_policy
|
4563
|
-
|
6666
|
+
|
6667
|
+
options.apply_defaults timeout: @config.timeout,
|
6668
|
+
metadata: @config.metadata,
|
4564
6669
|
retry_policy: @config.retry_policy
|
4565
6670
|
|
4566
6671
|
@analytics_admin_service_stub.call_rpc :update_custom_dimension, request, options: options do |response, operation|
|
@@ -4610,6 +6715,27 @@ module Google
|
|
4610
6715
|
#
|
4611
6716
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
4612
6717
|
#
|
6718
|
+
# @example Basic example
|
6719
|
+
# require "google/analytics/admin/v1alpha"
|
6720
|
+
#
|
6721
|
+
# # Create a client object. The client can be reused for multiple calls.
|
6722
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
6723
|
+
#
|
6724
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
6725
|
+
# request = Google::Analytics::Admin::V1alpha::ListCustomDimensionsRequest.new
|
6726
|
+
#
|
6727
|
+
# # Call the list_custom_dimensions method.
|
6728
|
+
# result = client.list_custom_dimensions request
|
6729
|
+
#
|
6730
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
6731
|
+
# # iterate over all elements by calling #each, and the enumerable
|
6732
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
6733
|
+
# # methods are also available for managing paging directly.
|
6734
|
+
# result.each do |response|
|
6735
|
+
# # Each element is of type ::Google::Analytics::Admin::V1alpha::CustomDimension.
|
6736
|
+
# p response
|
6737
|
+
# end
|
6738
|
+
#
|
4613
6739
|
def list_custom_dimensions request, options = nil
|
4614
6740
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
4615
6741
|
|
@@ -4627,16 +6753,20 @@ module Google
|
|
4627
6753
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
4628
6754
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4629
6755
|
|
4630
|
-
header_params = {
|
4631
|
-
|
4632
|
-
|
6756
|
+
header_params = {}
|
6757
|
+
if request.parent
|
6758
|
+
header_params["parent"] = request.parent
|
6759
|
+
end
|
6760
|
+
|
4633
6761
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4634
6762
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
4635
6763
|
|
4636
6764
|
options.apply_defaults timeout: @config.rpcs.list_custom_dimensions.timeout,
|
4637
6765
|
metadata: metadata,
|
4638
6766
|
retry_policy: @config.rpcs.list_custom_dimensions.retry_policy
|
4639
|
-
|
6767
|
+
|
6768
|
+
options.apply_defaults timeout: @config.timeout,
|
6769
|
+
metadata: @config.metadata,
|
4640
6770
|
retry_policy: @config.retry_policy
|
4641
6771
|
|
4642
6772
|
@analytics_admin_service_stub.call_rpc :list_custom_dimensions, request, options: options do |response, operation|
|
@@ -4678,6 +6808,21 @@ module Google
|
|
4678
6808
|
#
|
4679
6809
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
4680
6810
|
#
|
6811
|
+
# @example Basic example
|
6812
|
+
# require "google/analytics/admin/v1alpha"
|
6813
|
+
#
|
6814
|
+
# # Create a client object. The client can be reused for multiple calls.
|
6815
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
6816
|
+
#
|
6817
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
6818
|
+
# request = Google::Analytics::Admin::V1alpha::ArchiveCustomDimensionRequest.new
|
6819
|
+
#
|
6820
|
+
# # Call the archive_custom_dimension method.
|
6821
|
+
# result = client.archive_custom_dimension request
|
6822
|
+
#
|
6823
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
6824
|
+
# p result
|
6825
|
+
#
|
4681
6826
|
def archive_custom_dimension request, options = nil
|
4682
6827
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
4683
6828
|
|
@@ -4695,16 +6840,20 @@ module Google
|
|
4695
6840
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
4696
6841
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4697
6842
|
|
4698
|
-
header_params = {
|
4699
|
-
|
4700
|
-
|
6843
|
+
header_params = {}
|
6844
|
+
if request.name
|
6845
|
+
header_params["name"] = request.name
|
6846
|
+
end
|
6847
|
+
|
4701
6848
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4702
6849
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
4703
6850
|
|
4704
6851
|
options.apply_defaults timeout: @config.rpcs.archive_custom_dimension.timeout,
|
4705
6852
|
metadata: metadata,
|
4706
6853
|
retry_policy: @config.rpcs.archive_custom_dimension.retry_policy
|
4707
|
-
|
6854
|
+
|
6855
|
+
options.apply_defaults timeout: @config.timeout,
|
6856
|
+
metadata: @config.metadata,
|
4708
6857
|
retry_policy: @config.retry_policy
|
4709
6858
|
|
4710
6859
|
@analytics_admin_service_stub.call_rpc :archive_custom_dimension, request, options: options do |response, operation|
|
@@ -4745,6 +6894,21 @@ module Google
|
|
4745
6894
|
#
|
4746
6895
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
4747
6896
|
#
|
6897
|
+
# @example Basic example
|
6898
|
+
# require "google/analytics/admin/v1alpha"
|
6899
|
+
#
|
6900
|
+
# # Create a client object. The client can be reused for multiple calls.
|
6901
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
6902
|
+
#
|
6903
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
6904
|
+
# request = Google::Analytics::Admin::V1alpha::GetCustomDimensionRequest.new
|
6905
|
+
#
|
6906
|
+
# # Call the get_custom_dimension method.
|
6907
|
+
# result = client.get_custom_dimension request
|
6908
|
+
#
|
6909
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::CustomDimension.
|
6910
|
+
# p result
|
6911
|
+
#
|
4748
6912
|
def get_custom_dimension request, options = nil
|
4749
6913
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
4750
6914
|
|
@@ -4762,16 +6926,20 @@ module Google
|
|
4762
6926
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
4763
6927
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4764
6928
|
|
4765
|
-
header_params = {
|
4766
|
-
|
4767
|
-
|
6929
|
+
header_params = {}
|
6930
|
+
if request.name
|
6931
|
+
header_params["name"] = request.name
|
6932
|
+
end
|
6933
|
+
|
4768
6934
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4769
6935
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
4770
6936
|
|
4771
6937
|
options.apply_defaults timeout: @config.rpcs.get_custom_dimension.timeout,
|
4772
6938
|
metadata: metadata,
|
4773
6939
|
retry_policy: @config.rpcs.get_custom_dimension.retry_policy
|
4774
|
-
|
6940
|
+
|
6941
|
+
options.apply_defaults timeout: @config.timeout,
|
6942
|
+
metadata: @config.metadata,
|
4775
6943
|
retry_policy: @config.retry_policy
|
4776
6944
|
|
4777
6945
|
@analytics_admin_service_stub.call_rpc :get_custom_dimension, request, options: options do |response, operation|
|
@@ -4813,6 +6981,21 @@ module Google
|
|
4813
6981
|
#
|
4814
6982
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
4815
6983
|
#
|
6984
|
+
# @example Basic example
|
6985
|
+
# require "google/analytics/admin/v1alpha"
|
6986
|
+
#
|
6987
|
+
# # Create a client object. The client can be reused for multiple calls.
|
6988
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
6989
|
+
#
|
6990
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
6991
|
+
# request = Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest.new
|
6992
|
+
#
|
6993
|
+
# # Call the create_custom_metric method.
|
6994
|
+
# result = client.create_custom_metric request
|
6995
|
+
#
|
6996
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::CustomMetric.
|
6997
|
+
# p result
|
6998
|
+
#
|
4816
6999
|
def create_custom_metric request, options = nil
|
4817
7000
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
4818
7001
|
|
@@ -4830,16 +7013,20 @@ module Google
|
|
4830
7013
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
4831
7014
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4832
7015
|
|
4833
|
-
header_params = {
|
4834
|
-
|
4835
|
-
|
7016
|
+
header_params = {}
|
7017
|
+
if request.parent
|
7018
|
+
header_params["parent"] = request.parent
|
7019
|
+
end
|
7020
|
+
|
4836
7021
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4837
7022
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
4838
7023
|
|
4839
7024
|
options.apply_defaults timeout: @config.rpcs.create_custom_metric.timeout,
|
4840
7025
|
metadata: metadata,
|
4841
7026
|
retry_policy: @config.rpcs.create_custom_metric.retry_policy
|
4842
|
-
|
7027
|
+
|
7028
|
+
options.apply_defaults timeout: @config.timeout,
|
7029
|
+
metadata: @config.metadata,
|
4843
7030
|
retry_policy: @config.retry_policy
|
4844
7031
|
|
4845
7032
|
@analytics_admin_service_stub.call_rpc :create_custom_metric, request, options: options do |response, operation|
|
@@ -4883,6 +7070,21 @@ module Google
|
|
4883
7070
|
#
|
4884
7071
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
4885
7072
|
#
|
7073
|
+
# @example Basic example
|
7074
|
+
# require "google/analytics/admin/v1alpha"
|
7075
|
+
#
|
7076
|
+
# # Create a client object. The client can be reused for multiple calls.
|
7077
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
7078
|
+
#
|
7079
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
7080
|
+
# request = Google::Analytics::Admin::V1alpha::UpdateCustomMetricRequest.new
|
7081
|
+
#
|
7082
|
+
# # Call the update_custom_metric method.
|
7083
|
+
# result = client.update_custom_metric request
|
7084
|
+
#
|
7085
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::CustomMetric.
|
7086
|
+
# p result
|
7087
|
+
#
|
4886
7088
|
def update_custom_metric request, options = nil
|
4887
7089
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
4888
7090
|
|
@@ -4900,16 +7102,20 @@ module Google
|
|
4900
7102
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
4901
7103
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4902
7104
|
|
4903
|
-
header_params = {
|
4904
|
-
|
4905
|
-
|
7105
|
+
header_params = {}
|
7106
|
+
if request.custom_metric&.name
|
7107
|
+
header_params["custom_metric.name"] = request.custom_metric.name
|
7108
|
+
end
|
7109
|
+
|
4906
7110
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4907
7111
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
4908
7112
|
|
4909
7113
|
options.apply_defaults timeout: @config.rpcs.update_custom_metric.timeout,
|
4910
7114
|
metadata: metadata,
|
4911
7115
|
retry_policy: @config.rpcs.update_custom_metric.retry_policy
|
4912
|
-
|
7116
|
+
|
7117
|
+
options.apply_defaults timeout: @config.timeout,
|
7118
|
+
metadata: @config.metadata,
|
4913
7119
|
retry_policy: @config.retry_policy
|
4914
7120
|
|
4915
7121
|
@analytics_admin_service_stub.call_rpc :update_custom_metric, request, options: options do |response, operation|
|
@@ -4959,6 +7165,27 @@ module Google
|
|
4959
7165
|
#
|
4960
7166
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
4961
7167
|
#
|
7168
|
+
# @example Basic example
|
7169
|
+
# require "google/analytics/admin/v1alpha"
|
7170
|
+
#
|
7171
|
+
# # Create a client object. The client can be reused for multiple calls.
|
7172
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
7173
|
+
#
|
7174
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
7175
|
+
# request = Google::Analytics::Admin::V1alpha::ListCustomMetricsRequest.new
|
7176
|
+
#
|
7177
|
+
# # Call the list_custom_metrics method.
|
7178
|
+
# result = client.list_custom_metrics request
|
7179
|
+
#
|
7180
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
7181
|
+
# # iterate over all elements by calling #each, and the enumerable
|
7182
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
7183
|
+
# # methods are also available for managing paging directly.
|
7184
|
+
# result.each do |response|
|
7185
|
+
# # Each element is of type ::Google::Analytics::Admin::V1alpha::CustomMetric.
|
7186
|
+
# p response
|
7187
|
+
# end
|
7188
|
+
#
|
4962
7189
|
def list_custom_metrics request, options = nil
|
4963
7190
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
4964
7191
|
|
@@ -4976,16 +7203,20 @@ module Google
|
|
4976
7203
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
4977
7204
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4978
7205
|
|
4979
|
-
header_params = {
|
4980
|
-
|
4981
|
-
|
7206
|
+
header_params = {}
|
7207
|
+
if request.parent
|
7208
|
+
header_params["parent"] = request.parent
|
7209
|
+
end
|
7210
|
+
|
4982
7211
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4983
7212
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
4984
7213
|
|
4985
7214
|
options.apply_defaults timeout: @config.rpcs.list_custom_metrics.timeout,
|
4986
7215
|
metadata: metadata,
|
4987
7216
|
retry_policy: @config.rpcs.list_custom_metrics.retry_policy
|
4988
|
-
|
7217
|
+
|
7218
|
+
options.apply_defaults timeout: @config.timeout,
|
7219
|
+
metadata: @config.metadata,
|
4989
7220
|
retry_policy: @config.retry_policy
|
4990
7221
|
|
4991
7222
|
@analytics_admin_service_stub.call_rpc :list_custom_metrics, request, options: options do |response, operation|
|
@@ -5027,6 +7258,21 @@ module Google
|
|
5027
7258
|
#
|
5028
7259
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5029
7260
|
#
|
7261
|
+
# @example Basic example
|
7262
|
+
# require "google/analytics/admin/v1alpha"
|
7263
|
+
#
|
7264
|
+
# # Create a client object. The client can be reused for multiple calls.
|
7265
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
7266
|
+
#
|
7267
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
7268
|
+
# request = Google::Analytics::Admin::V1alpha::ArchiveCustomMetricRequest.new
|
7269
|
+
#
|
7270
|
+
# # Call the archive_custom_metric method.
|
7271
|
+
# result = client.archive_custom_metric request
|
7272
|
+
#
|
7273
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
7274
|
+
# p result
|
7275
|
+
#
|
5030
7276
|
def archive_custom_metric request, options = nil
|
5031
7277
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
5032
7278
|
|
@@ -5044,16 +7290,20 @@ module Google
|
|
5044
7290
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
5045
7291
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5046
7292
|
|
5047
|
-
header_params = {
|
5048
|
-
|
5049
|
-
|
7293
|
+
header_params = {}
|
7294
|
+
if request.name
|
7295
|
+
header_params["name"] = request.name
|
7296
|
+
end
|
7297
|
+
|
5050
7298
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5051
7299
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
5052
7300
|
|
5053
7301
|
options.apply_defaults timeout: @config.rpcs.archive_custom_metric.timeout,
|
5054
7302
|
metadata: metadata,
|
5055
7303
|
retry_policy: @config.rpcs.archive_custom_metric.retry_policy
|
5056
|
-
|
7304
|
+
|
7305
|
+
options.apply_defaults timeout: @config.timeout,
|
7306
|
+
metadata: @config.metadata,
|
5057
7307
|
retry_policy: @config.retry_policy
|
5058
7308
|
|
5059
7309
|
@analytics_admin_service_stub.call_rpc :archive_custom_metric, request, options: options do |response, operation|
|
@@ -5094,6 +7344,21 @@ module Google
|
|
5094
7344
|
#
|
5095
7345
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5096
7346
|
#
|
7347
|
+
# @example Basic example
|
7348
|
+
# require "google/analytics/admin/v1alpha"
|
7349
|
+
#
|
7350
|
+
# # Create a client object. The client can be reused for multiple calls.
|
7351
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
7352
|
+
#
|
7353
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
7354
|
+
# request = Google::Analytics::Admin::V1alpha::GetCustomMetricRequest.new
|
7355
|
+
#
|
7356
|
+
# # Call the get_custom_metric method.
|
7357
|
+
# result = client.get_custom_metric request
|
7358
|
+
#
|
7359
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::CustomMetric.
|
7360
|
+
# p result
|
7361
|
+
#
|
5097
7362
|
def get_custom_metric request, options = nil
|
5098
7363
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
5099
7364
|
|
@@ -5111,16 +7376,20 @@ module Google
|
|
5111
7376
|
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
5112
7377
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5113
7378
|
|
5114
|
-
header_params = {
|
5115
|
-
|
5116
|
-
|
7379
|
+
header_params = {}
|
7380
|
+
if request.name
|
7381
|
+
header_params["name"] = request.name
|
7382
|
+
end
|
7383
|
+
|
5117
7384
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5118
7385
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
5119
7386
|
|
5120
7387
|
options.apply_defaults timeout: @config.rpcs.get_custom_metric.timeout,
|
5121
7388
|
metadata: metadata,
|
5122
7389
|
retry_policy: @config.rpcs.get_custom_metric.retry_policy
|
5123
|
-
|
7390
|
+
|
7391
|
+
options.apply_defaults timeout: @config.timeout,
|
7392
|
+
metadata: @config.metadata,
|
5124
7393
|
retry_policy: @config.retry_policy
|
5125
7394
|
|
5126
7395
|
@analytics_admin_service_stub.call_rpc :get_custom_metric, request, options: options do |response, operation|
|
@@ -5131,6 +7400,184 @@ module Google
|
|
5131
7400
|
raise ::Google::Cloud::Error.from_error(e)
|
5132
7401
|
end
|
5133
7402
|
|
7403
|
+
##
|
7404
|
+
# Returns the singleton data retention settings for this property.
|
7405
|
+
#
|
7406
|
+
# @overload get_data_retention_settings(request, options = nil)
|
7407
|
+
# Pass arguments to `get_data_retention_settings` via a request object, either of type
|
7408
|
+
# {::Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest} or an equivalent Hash.
|
7409
|
+
#
|
7410
|
+
# @param request [::Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest, ::Hash]
|
7411
|
+
# A request object representing the call parameters. Required. To specify no
|
7412
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
7413
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
7414
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
7415
|
+
#
|
7416
|
+
# @overload get_data_retention_settings(name: nil)
|
7417
|
+
# Pass arguments to `get_data_retention_settings` via keyword arguments. Note that at
|
7418
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
7419
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
7420
|
+
#
|
7421
|
+
# @param name [::String]
|
7422
|
+
# Required. The name of the settings to lookup.
|
7423
|
+
# Format:
|
7424
|
+
# properties/\\{property}/dataRetentionSettings
|
7425
|
+
# Example: "properties/1000/dataRetentionSettings"
|
7426
|
+
#
|
7427
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
7428
|
+
# @yieldparam response [::Google::Analytics::Admin::V1alpha::DataRetentionSettings]
|
7429
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
7430
|
+
#
|
7431
|
+
# @return [::Google::Analytics::Admin::V1alpha::DataRetentionSettings]
|
7432
|
+
#
|
7433
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
7434
|
+
#
|
7435
|
+
# @example Basic example
|
7436
|
+
# require "google/analytics/admin/v1alpha"
|
7437
|
+
#
|
7438
|
+
# # Create a client object. The client can be reused for multiple calls.
|
7439
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
7440
|
+
#
|
7441
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
7442
|
+
# request = Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest.new
|
7443
|
+
#
|
7444
|
+
# # Call the get_data_retention_settings method.
|
7445
|
+
# result = client.get_data_retention_settings request
|
7446
|
+
#
|
7447
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::DataRetentionSettings.
|
7448
|
+
# p result
|
7449
|
+
#
|
7450
|
+
def get_data_retention_settings request, options = nil
|
7451
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
7452
|
+
|
7453
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest
|
7454
|
+
|
7455
|
+
# Converts hash and nil to an options object
|
7456
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
7457
|
+
|
7458
|
+
# Customize the options with defaults
|
7459
|
+
metadata = @config.rpcs.get_data_retention_settings.metadata.to_h
|
7460
|
+
|
7461
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
7462
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
7463
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
7464
|
+
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
7465
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
7466
|
+
|
7467
|
+
header_params = {}
|
7468
|
+
if request.name
|
7469
|
+
header_params["name"] = request.name
|
7470
|
+
end
|
7471
|
+
|
7472
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
7473
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
7474
|
+
|
7475
|
+
options.apply_defaults timeout: @config.rpcs.get_data_retention_settings.timeout,
|
7476
|
+
metadata: metadata,
|
7477
|
+
retry_policy: @config.rpcs.get_data_retention_settings.retry_policy
|
7478
|
+
|
7479
|
+
options.apply_defaults timeout: @config.timeout,
|
7480
|
+
metadata: @config.metadata,
|
7481
|
+
retry_policy: @config.retry_policy
|
7482
|
+
|
7483
|
+
@analytics_admin_service_stub.call_rpc :get_data_retention_settings, request, options: options do |response, operation|
|
7484
|
+
yield response, operation if block_given?
|
7485
|
+
return response
|
7486
|
+
end
|
7487
|
+
rescue ::GRPC::BadStatus => e
|
7488
|
+
raise ::Google::Cloud::Error.from_error(e)
|
7489
|
+
end
|
7490
|
+
|
7491
|
+
##
|
7492
|
+
# Updates the singleton data retention settings for this property.
|
7493
|
+
#
|
7494
|
+
# @overload update_data_retention_settings(request, options = nil)
|
7495
|
+
# Pass arguments to `update_data_retention_settings` via a request object, either of type
|
7496
|
+
# {::Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest} or an equivalent Hash.
|
7497
|
+
#
|
7498
|
+
# @param request [::Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest, ::Hash]
|
7499
|
+
# A request object representing the call parameters. Required. To specify no
|
7500
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
7501
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
7502
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
7503
|
+
#
|
7504
|
+
# @overload update_data_retention_settings(data_retention_settings: nil, update_mask: nil)
|
7505
|
+
# Pass arguments to `update_data_retention_settings` via keyword arguments. Note that at
|
7506
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
7507
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
7508
|
+
#
|
7509
|
+
# @param data_retention_settings [::Google::Analytics::Admin::V1alpha::DataRetentionSettings, ::Hash]
|
7510
|
+
# Required. The settings to update.
|
7511
|
+
# The `name` field is used to identify the settings to be updated.
|
7512
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
7513
|
+
# Required. The list of fields to be updated. Field names must be in snake case
|
7514
|
+
# (e.g., "field_to_update"). Omitted fields will not be updated. To replace
|
7515
|
+
# the entire entity, use one path with the string "*" to match all fields.
|
7516
|
+
#
|
7517
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
7518
|
+
# @yieldparam response [::Google::Analytics::Admin::V1alpha::DataRetentionSettings]
|
7519
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
7520
|
+
#
|
7521
|
+
# @return [::Google::Analytics::Admin::V1alpha::DataRetentionSettings]
|
7522
|
+
#
|
7523
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
7524
|
+
#
|
7525
|
+
# @example Basic example
|
7526
|
+
# require "google/analytics/admin/v1alpha"
|
7527
|
+
#
|
7528
|
+
# # Create a client object. The client can be reused for multiple calls.
|
7529
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
7530
|
+
#
|
7531
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
7532
|
+
# request = Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest.new
|
7533
|
+
#
|
7534
|
+
# # Call the update_data_retention_settings method.
|
7535
|
+
# result = client.update_data_retention_settings request
|
7536
|
+
#
|
7537
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::DataRetentionSettings.
|
7538
|
+
# p result
|
7539
|
+
#
|
7540
|
+
def update_data_retention_settings request, options = nil
|
7541
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
7542
|
+
|
7543
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest
|
7544
|
+
|
7545
|
+
# Converts hash and nil to an options object
|
7546
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
7547
|
+
|
7548
|
+
# Customize the options with defaults
|
7549
|
+
metadata = @config.rpcs.update_data_retention_settings.metadata.to_h
|
7550
|
+
|
7551
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
7552
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
7553
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
7554
|
+
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
7555
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
7556
|
+
|
7557
|
+
header_params = {}
|
7558
|
+
if request.data_retention_settings&.name
|
7559
|
+
header_params["data_retention_settings.name"] = request.data_retention_settings.name
|
7560
|
+
end
|
7561
|
+
|
7562
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
7563
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
7564
|
+
|
7565
|
+
options.apply_defaults timeout: @config.rpcs.update_data_retention_settings.timeout,
|
7566
|
+
metadata: metadata,
|
7567
|
+
retry_policy: @config.rpcs.update_data_retention_settings.retry_policy
|
7568
|
+
|
7569
|
+
options.apply_defaults timeout: @config.timeout,
|
7570
|
+
metadata: @config.metadata,
|
7571
|
+
retry_policy: @config.retry_policy
|
7572
|
+
|
7573
|
+
@analytics_admin_service_stub.call_rpc :update_data_retention_settings, request, options: options do |response, operation|
|
7574
|
+
yield response, operation if block_given?
|
7575
|
+
return response
|
7576
|
+
end
|
7577
|
+
rescue ::GRPC::BadStatus => e
|
7578
|
+
raise ::Google::Cloud::Error.from_error(e)
|
7579
|
+
end
|
7580
|
+
|
5134
7581
|
##
|
5135
7582
|
# Configuration class for the AnalyticsAdminService API.
|
5136
7583
|
#
|
@@ -5144,22 +7591,21 @@ module Google
|
|
5144
7591
|
# Configuration can be applied globally to all clients, or to a single client
|
5145
7592
|
# on construction.
|
5146
7593
|
#
|
5147
|
-
#
|
7594
|
+
# @example
|
5148
7595
|
#
|
5149
|
-
#
|
5150
|
-
# to 20 seconds,
|
7596
|
+
# # Modify the global config, setting the timeout for
|
7597
|
+
# # get_account to 20 seconds,
|
7598
|
+
# # and all remaining timeouts to 10 seconds.
|
7599
|
+
# ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.configure do |config|
|
7600
|
+
# config.timeout = 10.0
|
7601
|
+
# config.rpcs.get_account.timeout = 20.0
|
7602
|
+
# end
|
5151
7603
|
#
|
5152
|
-
#
|
5153
|
-
#
|
5154
|
-
#
|
5155
|
-
#
|
5156
|
-
#
|
5157
|
-
# To apply the above configuration only to a new client:
|
5158
|
-
#
|
5159
|
-
# client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config|
|
5160
|
-
# config.timeout = 10.0
|
5161
|
-
# config.rpcs.get_account.timeout = 20.0
|
5162
|
-
# end
|
7604
|
+
# # Apply the above configuration only to a new client.
|
7605
|
+
# client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config|
|
7606
|
+
# config.timeout = 10.0
|
7607
|
+
# config.rpcs.get_account.timeout = 20.0
|
7608
|
+
# end
|
5163
7609
|
#
|
5164
7610
|
# @!attribute [rw] endpoint
|
5165
7611
|
# The hostname or hostname:port of the service endpoint.
|
@@ -5453,11 +7899,6 @@ module Google
|
|
5453
7899
|
#
|
5454
7900
|
attr_reader :create_firebase_link
|
5455
7901
|
##
|
5456
|
-
# RPC-specific configuration for `update_firebase_link`
|
5457
|
-
# @return [::Gapic::Config::Method]
|
5458
|
-
#
|
5459
|
-
attr_reader :update_firebase_link
|
5460
|
-
##
|
5461
7902
|
# RPC-specific configuration for `delete_firebase_link`
|
5462
7903
|
# @return [::Gapic::Config::Method]
|
5463
7904
|
#
|
@@ -5558,6 +7999,61 @@ module Google
|
|
5558
7999
|
#
|
5559
8000
|
attr_reader :list_conversion_events
|
5560
8001
|
##
|
8002
|
+
# RPC-specific configuration for `get_display_video360_advertiser_link`
|
8003
|
+
# @return [::Gapic::Config::Method]
|
8004
|
+
#
|
8005
|
+
attr_reader :get_display_video360_advertiser_link
|
8006
|
+
##
|
8007
|
+
# RPC-specific configuration for `list_display_video360_advertiser_links`
|
8008
|
+
# @return [::Gapic::Config::Method]
|
8009
|
+
#
|
8010
|
+
attr_reader :list_display_video360_advertiser_links
|
8011
|
+
##
|
8012
|
+
# RPC-specific configuration for `create_display_video360_advertiser_link`
|
8013
|
+
# @return [::Gapic::Config::Method]
|
8014
|
+
#
|
8015
|
+
attr_reader :create_display_video360_advertiser_link
|
8016
|
+
##
|
8017
|
+
# RPC-specific configuration for `delete_display_video360_advertiser_link`
|
8018
|
+
# @return [::Gapic::Config::Method]
|
8019
|
+
#
|
8020
|
+
attr_reader :delete_display_video360_advertiser_link
|
8021
|
+
##
|
8022
|
+
# RPC-specific configuration for `update_display_video360_advertiser_link`
|
8023
|
+
# @return [::Gapic::Config::Method]
|
8024
|
+
#
|
8025
|
+
attr_reader :update_display_video360_advertiser_link
|
8026
|
+
##
|
8027
|
+
# RPC-specific configuration for `get_display_video360_advertiser_link_proposal`
|
8028
|
+
# @return [::Gapic::Config::Method]
|
8029
|
+
#
|
8030
|
+
attr_reader :get_display_video360_advertiser_link_proposal
|
8031
|
+
##
|
8032
|
+
# RPC-specific configuration for `list_display_video360_advertiser_link_proposals`
|
8033
|
+
# @return [::Gapic::Config::Method]
|
8034
|
+
#
|
8035
|
+
attr_reader :list_display_video360_advertiser_link_proposals
|
8036
|
+
##
|
8037
|
+
# RPC-specific configuration for `create_display_video360_advertiser_link_proposal`
|
8038
|
+
# @return [::Gapic::Config::Method]
|
8039
|
+
#
|
8040
|
+
attr_reader :create_display_video360_advertiser_link_proposal
|
8041
|
+
##
|
8042
|
+
# RPC-specific configuration for `delete_display_video360_advertiser_link_proposal`
|
8043
|
+
# @return [::Gapic::Config::Method]
|
8044
|
+
#
|
8045
|
+
attr_reader :delete_display_video360_advertiser_link_proposal
|
8046
|
+
##
|
8047
|
+
# RPC-specific configuration for `approve_display_video360_advertiser_link_proposal`
|
8048
|
+
# @return [::Gapic::Config::Method]
|
8049
|
+
#
|
8050
|
+
attr_reader :approve_display_video360_advertiser_link_proposal
|
8051
|
+
##
|
8052
|
+
# RPC-specific configuration for `cancel_display_video360_advertiser_link_proposal`
|
8053
|
+
# @return [::Gapic::Config::Method]
|
8054
|
+
#
|
8055
|
+
attr_reader :cancel_display_video360_advertiser_link_proposal
|
8056
|
+
##
|
5561
8057
|
# RPC-specific configuration for `create_custom_dimension`
|
5562
8058
|
# @return [::Gapic::Config::Method]
|
5563
8059
|
#
|
@@ -5607,6 +8103,16 @@ module Google
|
|
5607
8103
|
# @return [::Gapic::Config::Method]
|
5608
8104
|
#
|
5609
8105
|
attr_reader :get_custom_metric
|
8106
|
+
##
|
8107
|
+
# RPC-specific configuration for `get_data_retention_settings`
|
8108
|
+
# @return [::Gapic::Config::Method]
|
8109
|
+
#
|
8110
|
+
attr_reader :get_data_retention_settings
|
8111
|
+
##
|
8112
|
+
# RPC-specific configuration for `update_data_retention_settings`
|
8113
|
+
# @return [::Gapic::Config::Method]
|
8114
|
+
#
|
8115
|
+
attr_reader :update_data_retention_settings
|
5610
8116
|
|
5611
8117
|
# @private
|
5612
8118
|
def initialize parent_rpcs = nil
|
@@ -5684,8 +8190,6 @@ module Google
|
|
5684
8190
|
@update_enhanced_measurement_settings = ::Gapic::Config::Method.new update_enhanced_measurement_settings_config
|
5685
8191
|
create_firebase_link_config = parent_rpcs.create_firebase_link if parent_rpcs.respond_to? :create_firebase_link
|
5686
8192
|
@create_firebase_link = ::Gapic::Config::Method.new create_firebase_link_config
|
5687
|
-
update_firebase_link_config = parent_rpcs.update_firebase_link if parent_rpcs.respond_to? :update_firebase_link
|
5688
|
-
@update_firebase_link = ::Gapic::Config::Method.new update_firebase_link_config
|
5689
8193
|
delete_firebase_link_config = parent_rpcs.delete_firebase_link if parent_rpcs.respond_to? :delete_firebase_link
|
5690
8194
|
@delete_firebase_link = ::Gapic::Config::Method.new delete_firebase_link_config
|
5691
8195
|
list_firebase_links_config = parent_rpcs.list_firebase_links if parent_rpcs.respond_to? :list_firebase_links
|
@@ -5726,6 +8230,28 @@ module Google
|
|
5726
8230
|
@delete_conversion_event = ::Gapic::Config::Method.new delete_conversion_event_config
|
5727
8231
|
list_conversion_events_config = parent_rpcs.list_conversion_events if parent_rpcs.respond_to? :list_conversion_events
|
5728
8232
|
@list_conversion_events = ::Gapic::Config::Method.new list_conversion_events_config
|
8233
|
+
get_display_video360_advertiser_link_config = parent_rpcs.get_display_video360_advertiser_link if parent_rpcs.respond_to? :get_display_video360_advertiser_link
|
8234
|
+
@get_display_video360_advertiser_link = ::Gapic::Config::Method.new get_display_video360_advertiser_link_config
|
8235
|
+
list_display_video360_advertiser_links_config = parent_rpcs.list_display_video360_advertiser_links if parent_rpcs.respond_to? :list_display_video360_advertiser_links
|
8236
|
+
@list_display_video360_advertiser_links = ::Gapic::Config::Method.new list_display_video360_advertiser_links_config
|
8237
|
+
create_display_video360_advertiser_link_config = parent_rpcs.create_display_video360_advertiser_link if parent_rpcs.respond_to? :create_display_video360_advertiser_link
|
8238
|
+
@create_display_video360_advertiser_link = ::Gapic::Config::Method.new create_display_video360_advertiser_link_config
|
8239
|
+
delete_display_video360_advertiser_link_config = parent_rpcs.delete_display_video360_advertiser_link if parent_rpcs.respond_to? :delete_display_video360_advertiser_link
|
8240
|
+
@delete_display_video360_advertiser_link = ::Gapic::Config::Method.new delete_display_video360_advertiser_link_config
|
8241
|
+
update_display_video360_advertiser_link_config = parent_rpcs.update_display_video360_advertiser_link if parent_rpcs.respond_to? :update_display_video360_advertiser_link
|
8242
|
+
@update_display_video360_advertiser_link = ::Gapic::Config::Method.new update_display_video360_advertiser_link_config
|
8243
|
+
get_display_video360_advertiser_link_proposal_config = parent_rpcs.get_display_video360_advertiser_link_proposal if parent_rpcs.respond_to? :get_display_video360_advertiser_link_proposal
|
8244
|
+
@get_display_video360_advertiser_link_proposal = ::Gapic::Config::Method.new get_display_video360_advertiser_link_proposal_config
|
8245
|
+
list_display_video360_advertiser_link_proposals_config = parent_rpcs.list_display_video360_advertiser_link_proposals if parent_rpcs.respond_to? :list_display_video360_advertiser_link_proposals
|
8246
|
+
@list_display_video360_advertiser_link_proposals = ::Gapic::Config::Method.new list_display_video360_advertiser_link_proposals_config
|
8247
|
+
create_display_video360_advertiser_link_proposal_config = parent_rpcs.create_display_video360_advertiser_link_proposal if parent_rpcs.respond_to? :create_display_video360_advertiser_link_proposal
|
8248
|
+
@create_display_video360_advertiser_link_proposal = ::Gapic::Config::Method.new create_display_video360_advertiser_link_proposal_config
|
8249
|
+
delete_display_video360_advertiser_link_proposal_config = parent_rpcs.delete_display_video360_advertiser_link_proposal if parent_rpcs.respond_to? :delete_display_video360_advertiser_link_proposal
|
8250
|
+
@delete_display_video360_advertiser_link_proposal = ::Gapic::Config::Method.new delete_display_video360_advertiser_link_proposal_config
|
8251
|
+
approve_display_video360_advertiser_link_proposal_config = parent_rpcs.approve_display_video360_advertiser_link_proposal if parent_rpcs.respond_to? :approve_display_video360_advertiser_link_proposal
|
8252
|
+
@approve_display_video360_advertiser_link_proposal = ::Gapic::Config::Method.new approve_display_video360_advertiser_link_proposal_config
|
8253
|
+
cancel_display_video360_advertiser_link_proposal_config = parent_rpcs.cancel_display_video360_advertiser_link_proposal if parent_rpcs.respond_to? :cancel_display_video360_advertiser_link_proposal
|
8254
|
+
@cancel_display_video360_advertiser_link_proposal = ::Gapic::Config::Method.new cancel_display_video360_advertiser_link_proposal_config
|
5729
8255
|
create_custom_dimension_config = parent_rpcs.create_custom_dimension if parent_rpcs.respond_to? :create_custom_dimension
|
5730
8256
|
@create_custom_dimension = ::Gapic::Config::Method.new create_custom_dimension_config
|
5731
8257
|
update_custom_dimension_config = parent_rpcs.update_custom_dimension if parent_rpcs.respond_to? :update_custom_dimension
|
@@ -5746,6 +8272,10 @@ module Google
|
|
5746
8272
|
@archive_custom_metric = ::Gapic::Config::Method.new archive_custom_metric_config
|
5747
8273
|
get_custom_metric_config = parent_rpcs.get_custom_metric if parent_rpcs.respond_to? :get_custom_metric
|
5748
8274
|
@get_custom_metric = ::Gapic::Config::Method.new get_custom_metric_config
|
8275
|
+
get_data_retention_settings_config = parent_rpcs.get_data_retention_settings if parent_rpcs.respond_to? :get_data_retention_settings
|
8276
|
+
@get_data_retention_settings = ::Gapic::Config::Method.new get_data_retention_settings_config
|
8277
|
+
update_data_retention_settings_config = parent_rpcs.update_data_retention_settings if parent_rpcs.respond_to? :update_data_retention_settings
|
8278
|
+
@update_data_retention_settings = ::Gapic::Config::Method.new update_data_retention_settings_config
|
5749
8279
|
|
5750
8280
|
yield self if block_given?
|
5751
8281
|
end
|