google-analytics-admin-v1alpha 0.18.0 → 0.20.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/analytics/admin/v1alpha/access_report_pb.rb +24 -118
- data/lib/google/analytics/admin/v1alpha/analytics_admin_pb.rb +44 -574
- data/lib/google/analytics/admin/v1alpha/analytics_admin_service/client.rb +883 -2
- data/lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb +36 -0
- data/lib/google/analytics/admin/v1alpha/analytics_admin_service/rest/client.rb +668 -2
- data/lib/google/analytics/admin/v1alpha/analytics_admin_service/rest/service_stub.rb +647 -113
- data/lib/google/analytics/admin/v1alpha/analytics_admin_services_pb.rb +18 -0
- data/lib/google/analytics/admin/v1alpha/audience_pb.rb +25 -122
- data/lib/google/analytics/admin/v1alpha/channel_group_pb.rb +24 -46
- data/lib/google/analytics/admin/v1alpha/event_create_and_edit_pb.rb +48 -0
- data/lib/google/analytics/admin/v1alpha/expanded_data_set_pb.rb +25 -41
- data/lib/google/analytics/admin/v1alpha/resources_pb.rb +33 -407
- data/lib/google/analytics/admin/v1alpha/version.rb +1 -1
- data/proto_docs/google/analytics/admin/v1alpha/analytics_admin.rb +156 -0
- data/proto_docs/google/analytics/admin/v1alpha/audience.rb +15 -10
- data/proto_docs/google/analytics/admin/v1alpha/event_create_and_edit.rb +167 -0
- data/proto_docs/google/analytics/admin/v1alpha/resources.rb +33 -0
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +6 -4
@@ -188,7 +188,7 @@ module Google
|
|
188
188
|
credentials = @config.credentials
|
189
189
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
190
190
|
# but only if the default endpoint does not have a region prefix.
|
191
|
-
enable_self_signed_jwt = @config.endpoint ==
|
191
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
192
192
|
!@config.endpoint.split(".").first.include?("-")
|
193
193
|
credentials ||= Credentials.default scope: @config.scope,
|
194
194
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -10534,6 +10534,822 @@ module Google
|
|
10534
10534
|
raise ::Google::Cloud::Error.from_error(e)
|
10535
10535
|
end
|
10536
10536
|
|
10537
|
+
##
|
10538
|
+
# Looks up a single AdSenseLink.
|
10539
|
+
#
|
10540
|
+
# @overload get_ad_sense_link(request, options = nil)
|
10541
|
+
# Pass arguments to `get_ad_sense_link` via a request object, either of type
|
10542
|
+
# {::Google::Analytics::Admin::V1alpha::GetAdSenseLinkRequest} or an equivalent Hash.
|
10543
|
+
#
|
10544
|
+
# @param request [::Google::Analytics::Admin::V1alpha::GetAdSenseLinkRequest, ::Hash]
|
10545
|
+
# A request object representing the call parameters. Required. To specify no
|
10546
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
10547
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
10548
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
10549
|
+
#
|
10550
|
+
# @overload get_ad_sense_link(name: nil)
|
10551
|
+
# Pass arguments to `get_ad_sense_link` via keyword arguments. Note that at
|
10552
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
10553
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
10554
|
+
#
|
10555
|
+
# @param name [::String]
|
10556
|
+
# Required. Unique identifier for the AdSense Link requested.
|
10557
|
+
# Format: properties/\\{propertyId}/adSenseLinks/\\{linkId}
|
10558
|
+
# Example: properties/1234/adSenseLinks/5678
|
10559
|
+
#
|
10560
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
10561
|
+
# @yieldparam response [::Google::Analytics::Admin::V1alpha::AdSenseLink]
|
10562
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
10563
|
+
#
|
10564
|
+
# @return [::Google::Analytics::Admin::V1alpha::AdSenseLink]
|
10565
|
+
#
|
10566
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
10567
|
+
#
|
10568
|
+
# @example Basic example
|
10569
|
+
# require "google/analytics/admin/v1alpha"
|
10570
|
+
#
|
10571
|
+
# # Create a client object. The client can be reused for multiple calls.
|
10572
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
10573
|
+
#
|
10574
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
10575
|
+
# request = Google::Analytics::Admin::V1alpha::GetAdSenseLinkRequest.new
|
10576
|
+
#
|
10577
|
+
# # Call the get_ad_sense_link method.
|
10578
|
+
# result = client.get_ad_sense_link request
|
10579
|
+
#
|
10580
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::AdSenseLink.
|
10581
|
+
# p result
|
10582
|
+
#
|
10583
|
+
def get_ad_sense_link request, options = nil
|
10584
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
10585
|
+
|
10586
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetAdSenseLinkRequest
|
10587
|
+
|
10588
|
+
# Converts hash and nil to an options object
|
10589
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
10590
|
+
|
10591
|
+
# Customize the options with defaults
|
10592
|
+
metadata = @config.rpcs.get_ad_sense_link.metadata.to_h
|
10593
|
+
|
10594
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
10595
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
10596
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
10597
|
+
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
10598
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
10599
|
+
|
10600
|
+
header_params = {}
|
10601
|
+
if request.name
|
10602
|
+
header_params["name"] = request.name
|
10603
|
+
end
|
10604
|
+
|
10605
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
10606
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
10607
|
+
|
10608
|
+
options.apply_defaults timeout: @config.rpcs.get_ad_sense_link.timeout,
|
10609
|
+
metadata: metadata,
|
10610
|
+
retry_policy: @config.rpcs.get_ad_sense_link.retry_policy
|
10611
|
+
|
10612
|
+
options.apply_defaults timeout: @config.timeout,
|
10613
|
+
metadata: @config.metadata,
|
10614
|
+
retry_policy: @config.retry_policy
|
10615
|
+
|
10616
|
+
@analytics_admin_service_stub.call_rpc :get_ad_sense_link, request, options: options do |response, operation|
|
10617
|
+
yield response, operation if block_given?
|
10618
|
+
return response
|
10619
|
+
end
|
10620
|
+
rescue ::GRPC::BadStatus => e
|
10621
|
+
raise ::Google::Cloud::Error.from_error(e)
|
10622
|
+
end
|
10623
|
+
|
10624
|
+
##
|
10625
|
+
# Creates an AdSenseLink.
|
10626
|
+
#
|
10627
|
+
# @overload create_ad_sense_link(request, options = nil)
|
10628
|
+
# Pass arguments to `create_ad_sense_link` via a request object, either of type
|
10629
|
+
# {::Google::Analytics::Admin::V1alpha::CreateAdSenseLinkRequest} or an equivalent Hash.
|
10630
|
+
#
|
10631
|
+
# @param request [::Google::Analytics::Admin::V1alpha::CreateAdSenseLinkRequest, ::Hash]
|
10632
|
+
# A request object representing the call parameters. Required. To specify no
|
10633
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
10634
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
10635
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
10636
|
+
#
|
10637
|
+
# @overload create_ad_sense_link(parent: nil, adsense_link: nil)
|
10638
|
+
# Pass arguments to `create_ad_sense_link` via keyword arguments. Note that at
|
10639
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
10640
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
10641
|
+
#
|
10642
|
+
# @param parent [::String]
|
10643
|
+
# Required. The property for which to create an AdSense Link.
|
10644
|
+
# Format: properties/\\{propertyId}
|
10645
|
+
# Example: properties/1234
|
10646
|
+
# @param adsense_link [::Google::Analytics::Admin::V1alpha::AdSenseLink, ::Hash]
|
10647
|
+
# Required. The AdSense Link to create
|
10648
|
+
#
|
10649
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
10650
|
+
# @yieldparam response [::Google::Analytics::Admin::V1alpha::AdSenseLink]
|
10651
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
10652
|
+
#
|
10653
|
+
# @return [::Google::Analytics::Admin::V1alpha::AdSenseLink]
|
10654
|
+
#
|
10655
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
10656
|
+
#
|
10657
|
+
# @example Basic example
|
10658
|
+
# require "google/analytics/admin/v1alpha"
|
10659
|
+
#
|
10660
|
+
# # Create a client object. The client can be reused for multiple calls.
|
10661
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
10662
|
+
#
|
10663
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
10664
|
+
# request = Google::Analytics::Admin::V1alpha::CreateAdSenseLinkRequest.new
|
10665
|
+
#
|
10666
|
+
# # Call the create_ad_sense_link method.
|
10667
|
+
# result = client.create_ad_sense_link request
|
10668
|
+
#
|
10669
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::AdSenseLink.
|
10670
|
+
# p result
|
10671
|
+
#
|
10672
|
+
def create_ad_sense_link request, options = nil
|
10673
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
10674
|
+
|
10675
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateAdSenseLinkRequest
|
10676
|
+
|
10677
|
+
# Converts hash and nil to an options object
|
10678
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
10679
|
+
|
10680
|
+
# Customize the options with defaults
|
10681
|
+
metadata = @config.rpcs.create_ad_sense_link.metadata.to_h
|
10682
|
+
|
10683
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
10684
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
10685
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
10686
|
+
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
10687
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
10688
|
+
|
10689
|
+
header_params = {}
|
10690
|
+
if request.parent
|
10691
|
+
header_params["parent"] = request.parent
|
10692
|
+
end
|
10693
|
+
|
10694
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
10695
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
10696
|
+
|
10697
|
+
options.apply_defaults timeout: @config.rpcs.create_ad_sense_link.timeout,
|
10698
|
+
metadata: metadata,
|
10699
|
+
retry_policy: @config.rpcs.create_ad_sense_link.retry_policy
|
10700
|
+
|
10701
|
+
options.apply_defaults timeout: @config.timeout,
|
10702
|
+
metadata: @config.metadata,
|
10703
|
+
retry_policy: @config.retry_policy
|
10704
|
+
|
10705
|
+
@analytics_admin_service_stub.call_rpc :create_ad_sense_link, request, options: options do |response, operation|
|
10706
|
+
yield response, operation if block_given?
|
10707
|
+
return response
|
10708
|
+
end
|
10709
|
+
rescue ::GRPC::BadStatus => e
|
10710
|
+
raise ::Google::Cloud::Error.from_error(e)
|
10711
|
+
end
|
10712
|
+
|
10713
|
+
##
|
10714
|
+
# Deletes an AdSenseLink.
|
10715
|
+
#
|
10716
|
+
# @overload delete_ad_sense_link(request, options = nil)
|
10717
|
+
# Pass arguments to `delete_ad_sense_link` via a request object, either of type
|
10718
|
+
# {::Google::Analytics::Admin::V1alpha::DeleteAdSenseLinkRequest} or an equivalent Hash.
|
10719
|
+
#
|
10720
|
+
# @param request [::Google::Analytics::Admin::V1alpha::DeleteAdSenseLinkRequest, ::Hash]
|
10721
|
+
# A request object representing the call parameters. Required. To specify no
|
10722
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
10723
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
10724
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
10725
|
+
#
|
10726
|
+
# @overload delete_ad_sense_link(name: nil)
|
10727
|
+
# Pass arguments to `delete_ad_sense_link` via keyword arguments. Note that at
|
10728
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
10729
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
10730
|
+
#
|
10731
|
+
# @param name [::String]
|
10732
|
+
# Required. Unique identifier for the AdSense Link to be deleted.
|
10733
|
+
# Format: properties/\\{propertyId}/adSenseLinks/\\{linkId}
|
10734
|
+
# Example: properties/1234/adSenseLinks/5678
|
10735
|
+
#
|
10736
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
10737
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
10738
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
10739
|
+
#
|
10740
|
+
# @return [::Google::Protobuf::Empty]
|
10741
|
+
#
|
10742
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
10743
|
+
#
|
10744
|
+
# @example Basic example
|
10745
|
+
# require "google/analytics/admin/v1alpha"
|
10746
|
+
#
|
10747
|
+
# # Create a client object. The client can be reused for multiple calls.
|
10748
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
10749
|
+
#
|
10750
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
10751
|
+
# request = Google::Analytics::Admin::V1alpha::DeleteAdSenseLinkRequest.new
|
10752
|
+
#
|
10753
|
+
# # Call the delete_ad_sense_link method.
|
10754
|
+
# result = client.delete_ad_sense_link request
|
10755
|
+
#
|
10756
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
10757
|
+
# p result
|
10758
|
+
#
|
10759
|
+
def delete_ad_sense_link request, options = nil
|
10760
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
10761
|
+
|
10762
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteAdSenseLinkRequest
|
10763
|
+
|
10764
|
+
# Converts hash and nil to an options object
|
10765
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
10766
|
+
|
10767
|
+
# Customize the options with defaults
|
10768
|
+
metadata = @config.rpcs.delete_ad_sense_link.metadata.to_h
|
10769
|
+
|
10770
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
10771
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
10772
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
10773
|
+
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
10774
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
10775
|
+
|
10776
|
+
header_params = {}
|
10777
|
+
if request.name
|
10778
|
+
header_params["name"] = request.name
|
10779
|
+
end
|
10780
|
+
|
10781
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
10782
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
10783
|
+
|
10784
|
+
options.apply_defaults timeout: @config.rpcs.delete_ad_sense_link.timeout,
|
10785
|
+
metadata: metadata,
|
10786
|
+
retry_policy: @config.rpcs.delete_ad_sense_link.retry_policy
|
10787
|
+
|
10788
|
+
options.apply_defaults timeout: @config.timeout,
|
10789
|
+
metadata: @config.metadata,
|
10790
|
+
retry_policy: @config.retry_policy
|
10791
|
+
|
10792
|
+
@analytics_admin_service_stub.call_rpc :delete_ad_sense_link, request, options: options do |response, operation|
|
10793
|
+
yield response, operation if block_given?
|
10794
|
+
return response
|
10795
|
+
end
|
10796
|
+
rescue ::GRPC::BadStatus => e
|
10797
|
+
raise ::Google::Cloud::Error.from_error(e)
|
10798
|
+
end
|
10799
|
+
|
10800
|
+
##
|
10801
|
+
# Lists AdSenseLinks on a property.
|
10802
|
+
#
|
10803
|
+
# @overload list_ad_sense_links(request, options = nil)
|
10804
|
+
# Pass arguments to `list_ad_sense_links` via a request object, either of type
|
10805
|
+
# {::Google::Analytics::Admin::V1alpha::ListAdSenseLinksRequest} or an equivalent Hash.
|
10806
|
+
#
|
10807
|
+
# @param request [::Google::Analytics::Admin::V1alpha::ListAdSenseLinksRequest, ::Hash]
|
10808
|
+
# A request object representing the call parameters. Required. To specify no
|
10809
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
10810
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
10811
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
10812
|
+
#
|
10813
|
+
# @overload list_ad_sense_links(parent: nil, page_size: nil, page_token: nil)
|
10814
|
+
# Pass arguments to `list_ad_sense_links` via keyword arguments. Note that at
|
10815
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
10816
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
10817
|
+
#
|
10818
|
+
# @param parent [::String]
|
10819
|
+
# Required. Resource name of the parent property.
|
10820
|
+
# Format: properties/\\{propertyId}
|
10821
|
+
# Example: properties/1234
|
10822
|
+
# @param page_size [::Integer]
|
10823
|
+
# The maximum number of resources to return.
|
10824
|
+
# If unspecified, at most 50 resources will be returned.
|
10825
|
+
# The maximum value is 200 (higher values will be coerced to the maximum).
|
10826
|
+
# @param page_token [::String]
|
10827
|
+
# A page token received from a previous `ListAdSenseLinks` call.
|
10828
|
+
# Provide this to retrieve the subsequent page.
|
10829
|
+
#
|
10830
|
+
# When paginating, all other parameters provided to `ListAdSenseLinks` must
|
10831
|
+
# match the call that provided the page token.
|
10832
|
+
#
|
10833
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
10834
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AdSenseLink>]
|
10835
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
10836
|
+
#
|
10837
|
+
# @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AdSenseLink>]
|
10838
|
+
#
|
10839
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
10840
|
+
#
|
10841
|
+
# @example Basic example
|
10842
|
+
# require "google/analytics/admin/v1alpha"
|
10843
|
+
#
|
10844
|
+
# # Create a client object. The client can be reused for multiple calls.
|
10845
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
10846
|
+
#
|
10847
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
10848
|
+
# request = Google::Analytics::Admin::V1alpha::ListAdSenseLinksRequest.new
|
10849
|
+
#
|
10850
|
+
# # Call the list_ad_sense_links method.
|
10851
|
+
# result = client.list_ad_sense_links request
|
10852
|
+
#
|
10853
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
10854
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
10855
|
+
# result.each do |item|
|
10856
|
+
# # Each element is of type ::Google::Analytics::Admin::V1alpha::AdSenseLink.
|
10857
|
+
# p item
|
10858
|
+
# end
|
10859
|
+
#
|
10860
|
+
def list_ad_sense_links request, options = nil
|
10861
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
10862
|
+
|
10863
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListAdSenseLinksRequest
|
10864
|
+
|
10865
|
+
# Converts hash and nil to an options object
|
10866
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
10867
|
+
|
10868
|
+
# Customize the options with defaults
|
10869
|
+
metadata = @config.rpcs.list_ad_sense_links.metadata.to_h
|
10870
|
+
|
10871
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
10872
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
10873
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
10874
|
+
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
10875
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
10876
|
+
|
10877
|
+
header_params = {}
|
10878
|
+
if request.parent
|
10879
|
+
header_params["parent"] = request.parent
|
10880
|
+
end
|
10881
|
+
|
10882
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
10883
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
10884
|
+
|
10885
|
+
options.apply_defaults timeout: @config.rpcs.list_ad_sense_links.timeout,
|
10886
|
+
metadata: metadata,
|
10887
|
+
retry_policy: @config.rpcs.list_ad_sense_links.retry_policy
|
10888
|
+
|
10889
|
+
options.apply_defaults timeout: @config.timeout,
|
10890
|
+
metadata: @config.metadata,
|
10891
|
+
retry_policy: @config.retry_policy
|
10892
|
+
|
10893
|
+
@analytics_admin_service_stub.call_rpc :list_ad_sense_links, request, options: options do |response, operation|
|
10894
|
+
response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_ad_sense_links, request, response, operation, options
|
10895
|
+
yield response, operation if block_given?
|
10896
|
+
return response
|
10897
|
+
end
|
10898
|
+
rescue ::GRPC::BadStatus => e
|
10899
|
+
raise ::Google::Cloud::Error.from_error(e)
|
10900
|
+
end
|
10901
|
+
|
10902
|
+
##
|
10903
|
+
# Lookup for a single EventCreateRule.
|
10904
|
+
#
|
10905
|
+
# @overload get_event_create_rule(request, options = nil)
|
10906
|
+
# Pass arguments to `get_event_create_rule` via a request object, either of type
|
10907
|
+
# {::Google::Analytics::Admin::V1alpha::GetEventCreateRuleRequest} or an equivalent Hash.
|
10908
|
+
#
|
10909
|
+
# @param request [::Google::Analytics::Admin::V1alpha::GetEventCreateRuleRequest, ::Hash]
|
10910
|
+
# A request object representing the call parameters. Required. To specify no
|
10911
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
10912
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
10913
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
10914
|
+
#
|
10915
|
+
# @overload get_event_create_rule(name: nil)
|
10916
|
+
# Pass arguments to `get_event_create_rule` via keyword arguments. Note that at
|
10917
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
10918
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
10919
|
+
#
|
10920
|
+
# @param name [::String]
|
10921
|
+
# Required. The name of the EventCreateRule to get.
|
10922
|
+
# Example format: properties/123/dataStreams/456/eventCreateRules/789
|
10923
|
+
#
|
10924
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
10925
|
+
# @yieldparam response [::Google::Analytics::Admin::V1alpha::EventCreateRule]
|
10926
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
10927
|
+
#
|
10928
|
+
# @return [::Google::Analytics::Admin::V1alpha::EventCreateRule]
|
10929
|
+
#
|
10930
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
10931
|
+
#
|
10932
|
+
# @example Basic example
|
10933
|
+
# require "google/analytics/admin/v1alpha"
|
10934
|
+
#
|
10935
|
+
# # Create a client object. The client can be reused for multiple calls.
|
10936
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
10937
|
+
#
|
10938
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
10939
|
+
# request = Google::Analytics::Admin::V1alpha::GetEventCreateRuleRequest.new
|
10940
|
+
#
|
10941
|
+
# # Call the get_event_create_rule method.
|
10942
|
+
# result = client.get_event_create_rule request
|
10943
|
+
#
|
10944
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::EventCreateRule.
|
10945
|
+
# p result
|
10946
|
+
#
|
10947
|
+
def get_event_create_rule request, options = nil
|
10948
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
10949
|
+
|
10950
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetEventCreateRuleRequest
|
10951
|
+
|
10952
|
+
# Converts hash and nil to an options object
|
10953
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
10954
|
+
|
10955
|
+
# Customize the options with defaults
|
10956
|
+
metadata = @config.rpcs.get_event_create_rule.metadata.to_h
|
10957
|
+
|
10958
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
10959
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
10960
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
10961
|
+
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
10962
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
10963
|
+
|
10964
|
+
header_params = {}
|
10965
|
+
if request.name
|
10966
|
+
header_params["name"] = request.name
|
10967
|
+
end
|
10968
|
+
|
10969
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
10970
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
10971
|
+
|
10972
|
+
options.apply_defaults timeout: @config.rpcs.get_event_create_rule.timeout,
|
10973
|
+
metadata: metadata,
|
10974
|
+
retry_policy: @config.rpcs.get_event_create_rule.retry_policy
|
10975
|
+
|
10976
|
+
options.apply_defaults timeout: @config.timeout,
|
10977
|
+
metadata: @config.metadata,
|
10978
|
+
retry_policy: @config.retry_policy
|
10979
|
+
|
10980
|
+
@analytics_admin_service_stub.call_rpc :get_event_create_rule, request, options: options do |response, operation|
|
10981
|
+
yield response, operation if block_given?
|
10982
|
+
return response
|
10983
|
+
end
|
10984
|
+
rescue ::GRPC::BadStatus => e
|
10985
|
+
raise ::Google::Cloud::Error.from_error(e)
|
10986
|
+
end
|
10987
|
+
|
10988
|
+
##
|
10989
|
+
# Lists EventCreateRules on a web data stream.
|
10990
|
+
#
|
10991
|
+
# @overload list_event_create_rules(request, options = nil)
|
10992
|
+
# Pass arguments to `list_event_create_rules` via a request object, either of type
|
10993
|
+
# {::Google::Analytics::Admin::V1alpha::ListEventCreateRulesRequest} or an equivalent Hash.
|
10994
|
+
#
|
10995
|
+
# @param request [::Google::Analytics::Admin::V1alpha::ListEventCreateRulesRequest, ::Hash]
|
10996
|
+
# A request object representing the call parameters. Required. To specify no
|
10997
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
10998
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
10999
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
11000
|
+
#
|
11001
|
+
# @overload list_event_create_rules(parent: nil, page_size: nil, page_token: nil)
|
11002
|
+
# Pass arguments to `list_event_create_rules` via keyword arguments. Note that at
|
11003
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
11004
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
11005
|
+
#
|
11006
|
+
# @param parent [::String]
|
11007
|
+
# Required. Example format: properties/123/dataStreams/456
|
11008
|
+
# @param page_size [::Integer]
|
11009
|
+
# The maximum number of resources to return.
|
11010
|
+
# If unspecified, at most 50 resources will be returned.
|
11011
|
+
# The maximum value is 200 (higher values will be coerced to the maximum).
|
11012
|
+
# @param page_token [::String]
|
11013
|
+
# A page token, received from a previous `ListEventCreateRules` call. Provide
|
11014
|
+
# this to retrieve the subsequent page.
|
11015
|
+
#
|
11016
|
+
# When paginating, all other parameters provided to `ListEventCreateRules`
|
11017
|
+
# must match the call that provided the page token.
|
11018
|
+
#
|
11019
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
11020
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::EventCreateRule>]
|
11021
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
11022
|
+
#
|
11023
|
+
# @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::EventCreateRule>]
|
11024
|
+
#
|
11025
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
11026
|
+
#
|
11027
|
+
# @example Basic example
|
11028
|
+
# require "google/analytics/admin/v1alpha"
|
11029
|
+
#
|
11030
|
+
# # Create a client object. The client can be reused for multiple calls.
|
11031
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
11032
|
+
#
|
11033
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
11034
|
+
# request = Google::Analytics::Admin::V1alpha::ListEventCreateRulesRequest.new
|
11035
|
+
#
|
11036
|
+
# # Call the list_event_create_rules method.
|
11037
|
+
# result = client.list_event_create_rules request
|
11038
|
+
#
|
11039
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
11040
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
11041
|
+
# result.each do |item|
|
11042
|
+
# # Each element is of type ::Google::Analytics::Admin::V1alpha::EventCreateRule.
|
11043
|
+
# p item
|
11044
|
+
# end
|
11045
|
+
#
|
11046
|
+
def list_event_create_rules request, options = nil
|
11047
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
11048
|
+
|
11049
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListEventCreateRulesRequest
|
11050
|
+
|
11051
|
+
# Converts hash and nil to an options object
|
11052
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
11053
|
+
|
11054
|
+
# Customize the options with defaults
|
11055
|
+
metadata = @config.rpcs.list_event_create_rules.metadata.to_h
|
11056
|
+
|
11057
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
11058
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
11059
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
11060
|
+
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
11061
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
11062
|
+
|
11063
|
+
header_params = {}
|
11064
|
+
if request.parent
|
11065
|
+
header_params["parent"] = request.parent
|
11066
|
+
end
|
11067
|
+
|
11068
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
11069
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
11070
|
+
|
11071
|
+
options.apply_defaults timeout: @config.rpcs.list_event_create_rules.timeout,
|
11072
|
+
metadata: metadata,
|
11073
|
+
retry_policy: @config.rpcs.list_event_create_rules.retry_policy
|
11074
|
+
|
11075
|
+
options.apply_defaults timeout: @config.timeout,
|
11076
|
+
metadata: @config.metadata,
|
11077
|
+
retry_policy: @config.retry_policy
|
11078
|
+
|
11079
|
+
@analytics_admin_service_stub.call_rpc :list_event_create_rules, request, options: options do |response, operation|
|
11080
|
+
response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_event_create_rules, request, response, operation, options
|
11081
|
+
yield response, operation if block_given?
|
11082
|
+
return response
|
11083
|
+
end
|
11084
|
+
rescue ::GRPC::BadStatus => e
|
11085
|
+
raise ::Google::Cloud::Error.from_error(e)
|
11086
|
+
end
|
11087
|
+
|
11088
|
+
##
|
11089
|
+
# Creates an EventCreateRule.
|
11090
|
+
#
|
11091
|
+
# @overload create_event_create_rule(request, options = nil)
|
11092
|
+
# Pass arguments to `create_event_create_rule` via a request object, either of type
|
11093
|
+
# {::Google::Analytics::Admin::V1alpha::CreateEventCreateRuleRequest} or an equivalent Hash.
|
11094
|
+
#
|
11095
|
+
# @param request [::Google::Analytics::Admin::V1alpha::CreateEventCreateRuleRequest, ::Hash]
|
11096
|
+
# A request object representing the call parameters. Required. To specify no
|
11097
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
11098
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
11099
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
11100
|
+
#
|
11101
|
+
# @overload create_event_create_rule(parent: nil, event_create_rule: nil)
|
11102
|
+
# Pass arguments to `create_event_create_rule` via keyword arguments. Note that at
|
11103
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
11104
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
11105
|
+
#
|
11106
|
+
# @param parent [::String]
|
11107
|
+
# Required. Example format: properties/123/dataStreams/456
|
11108
|
+
# @param event_create_rule [::Google::Analytics::Admin::V1alpha::EventCreateRule, ::Hash]
|
11109
|
+
# Required. The EventCreateRule to create.
|
11110
|
+
#
|
11111
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
11112
|
+
# @yieldparam response [::Google::Analytics::Admin::V1alpha::EventCreateRule]
|
11113
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
11114
|
+
#
|
11115
|
+
# @return [::Google::Analytics::Admin::V1alpha::EventCreateRule]
|
11116
|
+
#
|
11117
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
11118
|
+
#
|
11119
|
+
# @example Basic example
|
11120
|
+
# require "google/analytics/admin/v1alpha"
|
11121
|
+
#
|
11122
|
+
# # Create a client object. The client can be reused for multiple calls.
|
11123
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
11124
|
+
#
|
11125
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
11126
|
+
# request = Google::Analytics::Admin::V1alpha::CreateEventCreateRuleRequest.new
|
11127
|
+
#
|
11128
|
+
# # Call the create_event_create_rule method.
|
11129
|
+
# result = client.create_event_create_rule request
|
11130
|
+
#
|
11131
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::EventCreateRule.
|
11132
|
+
# p result
|
11133
|
+
#
|
11134
|
+
def create_event_create_rule request, options = nil
|
11135
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
11136
|
+
|
11137
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateEventCreateRuleRequest
|
11138
|
+
|
11139
|
+
# Converts hash and nil to an options object
|
11140
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
11141
|
+
|
11142
|
+
# Customize the options with defaults
|
11143
|
+
metadata = @config.rpcs.create_event_create_rule.metadata.to_h
|
11144
|
+
|
11145
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
11146
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
11147
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
11148
|
+
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
11149
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
11150
|
+
|
11151
|
+
header_params = {}
|
11152
|
+
if request.parent
|
11153
|
+
header_params["parent"] = request.parent
|
11154
|
+
end
|
11155
|
+
|
11156
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
11157
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
11158
|
+
|
11159
|
+
options.apply_defaults timeout: @config.rpcs.create_event_create_rule.timeout,
|
11160
|
+
metadata: metadata,
|
11161
|
+
retry_policy: @config.rpcs.create_event_create_rule.retry_policy
|
11162
|
+
|
11163
|
+
options.apply_defaults timeout: @config.timeout,
|
11164
|
+
metadata: @config.metadata,
|
11165
|
+
retry_policy: @config.retry_policy
|
11166
|
+
|
11167
|
+
@analytics_admin_service_stub.call_rpc :create_event_create_rule, request, options: options do |response, operation|
|
11168
|
+
yield response, operation if block_given?
|
11169
|
+
return response
|
11170
|
+
end
|
11171
|
+
rescue ::GRPC::BadStatus => e
|
11172
|
+
raise ::Google::Cloud::Error.from_error(e)
|
11173
|
+
end
|
11174
|
+
|
11175
|
+
##
|
11176
|
+
# Updates an EventCreateRule.
|
11177
|
+
#
|
11178
|
+
# @overload update_event_create_rule(request, options = nil)
|
11179
|
+
# Pass arguments to `update_event_create_rule` via a request object, either of type
|
11180
|
+
# {::Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest} or an equivalent Hash.
|
11181
|
+
#
|
11182
|
+
# @param request [::Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest, ::Hash]
|
11183
|
+
# A request object representing the call parameters. Required. To specify no
|
11184
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
11185
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
11186
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
11187
|
+
#
|
11188
|
+
# @overload update_event_create_rule(event_create_rule: nil, update_mask: nil)
|
11189
|
+
# Pass arguments to `update_event_create_rule` via keyword arguments. Note that at
|
11190
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
11191
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
11192
|
+
#
|
11193
|
+
# @param event_create_rule [::Google::Analytics::Admin::V1alpha::EventCreateRule, ::Hash]
|
11194
|
+
# Required. The EventCreateRule to update.
|
11195
|
+
# The resource's `name` field is used to identify the EventCreateRule to be
|
11196
|
+
# updated.
|
11197
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
11198
|
+
# Required. The list of fields to be updated. Field names must be in snake
|
11199
|
+
# case (e.g., "field_to_update"). Omitted fields will not be updated. To
|
11200
|
+
# replace the entire entity, use one path with the string "*" to match all
|
11201
|
+
# fields.
|
11202
|
+
#
|
11203
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
11204
|
+
# @yieldparam response [::Google::Analytics::Admin::V1alpha::EventCreateRule]
|
11205
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
11206
|
+
#
|
11207
|
+
# @return [::Google::Analytics::Admin::V1alpha::EventCreateRule]
|
11208
|
+
#
|
11209
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
11210
|
+
#
|
11211
|
+
# @example Basic example
|
11212
|
+
# require "google/analytics/admin/v1alpha"
|
11213
|
+
#
|
11214
|
+
# # Create a client object. The client can be reused for multiple calls.
|
11215
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
11216
|
+
#
|
11217
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
11218
|
+
# request = Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest.new
|
11219
|
+
#
|
11220
|
+
# # Call the update_event_create_rule method.
|
11221
|
+
# result = client.update_event_create_rule request
|
11222
|
+
#
|
11223
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::EventCreateRule.
|
11224
|
+
# p result
|
11225
|
+
#
|
11226
|
+
def update_event_create_rule request, options = nil
|
11227
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
11228
|
+
|
11229
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest
|
11230
|
+
|
11231
|
+
# Converts hash and nil to an options object
|
11232
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
11233
|
+
|
11234
|
+
# Customize the options with defaults
|
11235
|
+
metadata = @config.rpcs.update_event_create_rule.metadata.to_h
|
11236
|
+
|
11237
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
11238
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
11239
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
11240
|
+
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
11241
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
11242
|
+
|
11243
|
+
header_params = {}
|
11244
|
+
if request.event_create_rule&.name
|
11245
|
+
header_params["event_create_rule.name"] = request.event_create_rule.name
|
11246
|
+
end
|
11247
|
+
|
11248
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
11249
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
11250
|
+
|
11251
|
+
options.apply_defaults timeout: @config.rpcs.update_event_create_rule.timeout,
|
11252
|
+
metadata: metadata,
|
11253
|
+
retry_policy: @config.rpcs.update_event_create_rule.retry_policy
|
11254
|
+
|
11255
|
+
options.apply_defaults timeout: @config.timeout,
|
11256
|
+
metadata: @config.metadata,
|
11257
|
+
retry_policy: @config.retry_policy
|
11258
|
+
|
11259
|
+
@analytics_admin_service_stub.call_rpc :update_event_create_rule, request, options: options do |response, operation|
|
11260
|
+
yield response, operation if block_given?
|
11261
|
+
return response
|
11262
|
+
end
|
11263
|
+
rescue ::GRPC::BadStatus => e
|
11264
|
+
raise ::Google::Cloud::Error.from_error(e)
|
11265
|
+
end
|
11266
|
+
|
11267
|
+
##
|
11268
|
+
# Deletes an EventCreateRule.
|
11269
|
+
#
|
11270
|
+
# @overload delete_event_create_rule(request, options = nil)
|
11271
|
+
# Pass arguments to `delete_event_create_rule` via a request object, either of type
|
11272
|
+
# {::Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest} or an equivalent Hash.
|
11273
|
+
#
|
11274
|
+
# @param request [::Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest, ::Hash]
|
11275
|
+
# A request object representing the call parameters. Required. To specify no
|
11276
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
11277
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
11278
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
11279
|
+
#
|
11280
|
+
# @overload delete_event_create_rule(name: nil)
|
11281
|
+
# Pass arguments to `delete_event_create_rule` via keyword arguments. Note that at
|
11282
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
11283
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
11284
|
+
#
|
11285
|
+
# @param name [::String]
|
11286
|
+
# Required. Example format:
|
11287
|
+
# properties/123/dataStreams/456/eventCreateRules/789
|
11288
|
+
#
|
11289
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
11290
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
11291
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
11292
|
+
#
|
11293
|
+
# @return [::Google::Protobuf::Empty]
|
11294
|
+
#
|
11295
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
11296
|
+
#
|
11297
|
+
# @example Basic example
|
11298
|
+
# require "google/analytics/admin/v1alpha"
|
11299
|
+
#
|
11300
|
+
# # Create a client object. The client can be reused for multiple calls.
|
11301
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
11302
|
+
#
|
11303
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
11304
|
+
# request = Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest.new
|
11305
|
+
#
|
11306
|
+
# # Call the delete_event_create_rule method.
|
11307
|
+
# result = client.delete_event_create_rule request
|
11308
|
+
#
|
11309
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
11310
|
+
# p result
|
11311
|
+
#
|
11312
|
+
def delete_event_create_rule request, options = nil
|
11313
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
11314
|
+
|
11315
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest
|
11316
|
+
|
11317
|
+
# Converts hash and nil to an options object
|
11318
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
11319
|
+
|
11320
|
+
# Customize the options with defaults
|
11321
|
+
metadata = @config.rpcs.delete_event_create_rule.metadata.to_h
|
11322
|
+
|
11323
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
11324
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
11325
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
11326
|
+
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
11327
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
11328
|
+
|
11329
|
+
header_params = {}
|
11330
|
+
if request.name
|
11331
|
+
header_params["name"] = request.name
|
11332
|
+
end
|
11333
|
+
|
11334
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
11335
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
11336
|
+
|
11337
|
+
options.apply_defaults timeout: @config.rpcs.delete_event_create_rule.timeout,
|
11338
|
+
metadata: metadata,
|
11339
|
+
retry_policy: @config.rpcs.delete_event_create_rule.retry_policy
|
11340
|
+
|
11341
|
+
options.apply_defaults timeout: @config.timeout,
|
11342
|
+
metadata: @config.metadata,
|
11343
|
+
retry_policy: @config.retry_policy
|
11344
|
+
|
11345
|
+
@analytics_admin_service_stub.call_rpc :delete_event_create_rule, request, options: options do |response, operation|
|
11346
|
+
yield response, operation if block_given?
|
11347
|
+
return response
|
11348
|
+
end
|
11349
|
+
rescue ::GRPC::BadStatus => e
|
11350
|
+
raise ::Google::Cloud::Error.from_error(e)
|
11351
|
+
end
|
11352
|
+
|
10537
11353
|
##
|
10538
11354
|
# Configuration class for the AnalyticsAdminService API.
|
10539
11355
|
#
|
@@ -10616,7 +11432,9 @@ module Google
|
|
10616
11432
|
class Configuration
|
10617
11433
|
extend ::Gapic::Config
|
10618
11434
|
|
10619
|
-
|
11435
|
+
DEFAULT_ENDPOINT = "analyticsadmin.googleapis.com"
|
11436
|
+
|
11437
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
10620
11438
|
config_attr :credentials, nil do |value|
|
10621
11439
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
10622
11440
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -11234,6 +12052,51 @@ module Google
|
|
11234
12052
|
# @return [::Gapic::Config::Method]
|
11235
12053
|
#
|
11236
12054
|
attr_reader :fetch_connected_ga4_property
|
12055
|
+
##
|
12056
|
+
# RPC-specific configuration for `get_ad_sense_link`
|
12057
|
+
# @return [::Gapic::Config::Method]
|
12058
|
+
#
|
12059
|
+
attr_reader :get_ad_sense_link
|
12060
|
+
##
|
12061
|
+
# RPC-specific configuration for `create_ad_sense_link`
|
12062
|
+
# @return [::Gapic::Config::Method]
|
12063
|
+
#
|
12064
|
+
attr_reader :create_ad_sense_link
|
12065
|
+
##
|
12066
|
+
# RPC-specific configuration for `delete_ad_sense_link`
|
12067
|
+
# @return [::Gapic::Config::Method]
|
12068
|
+
#
|
12069
|
+
attr_reader :delete_ad_sense_link
|
12070
|
+
##
|
12071
|
+
# RPC-specific configuration for `list_ad_sense_links`
|
12072
|
+
# @return [::Gapic::Config::Method]
|
12073
|
+
#
|
12074
|
+
attr_reader :list_ad_sense_links
|
12075
|
+
##
|
12076
|
+
# RPC-specific configuration for `get_event_create_rule`
|
12077
|
+
# @return [::Gapic::Config::Method]
|
12078
|
+
#
|
12079
|
+
attr_reader :get_event_create_rule
|
12080
|
+
##
|
12081
|
+
# RPC-specific configuration for `list_event_create_rules`
|
12082
|
+
# @return [::Gapic::Config::Method]
|
12083
|
+
#
|
12084
|
+
attr_reader :list_event_create_rules
|
12085
|
+
##
|
12086
|
+
# RPC-specific configuration for `create_event_create_rule`
|
12087
|
+
# @return [::Gapic::Config::Method]
|
12088
|
+
#
|
12089
|
+
attr_reader :create_event_create_rule
|
12090
|
+
##
|
12091
|
+
# RPC-specific configuration for `update_event_create_rule`
|
12092
|
+
# @return [::Gapic::Config::Method]
|
12093
|
+
#
|
12094
|
+
attr_reader :update_event_create_rule
|
12095
|
+
##
|
12096
|
+
# RPC-specific configuration for `delete_event_create_rule`
|
12097
|
+
# @return [::Gapic::Config::Method]
|
12098
|
+
#
|
12099
|
+
attr_reader :delete_event_create_rule
|
11237
12100
|
|
11238
12101
|
# @private
|
11239
12102
|
def initialize parent_rpcs = nil
|
@@ -11463,6 +12326,24 @@ module Google
|
|
11463
12326
|
@list_connected_site_tags = ::Gapic::Config::Method.new list_connected_site_tags_config
|
11464
12327
|
fetch_connected_ga4_property_config = parent_rpcs.fetch_connected_ga4_property if parent_rpcs.respond_to? :fetch_connected_ga4_property
|
11465
12328
|
@fetch_connected_ga4_property = ::Gapic::Config::Method.new fetch_connected_ga4_property_config
|
12329
|
+
get_ad_sense_link_config = parent_rpcs.get_ad_sense_link if parent_rpcs.respond_to? :get_ad_sense_link
|
12330
|
+
@get_ad_sense_link = ::Gapic::Config::Method.new get_ad_sense_link_config
|
12331
|
+
create_ad_sense_link_config = parent_rpcs.create_ad_sense_link if parent_rpcs.respond_to? :create_ad_sense_link
|
12332
|
+
@create_ad_sense_link = ::Gapic::Config::Method.new create_ad_sense_link_config
|
12333
|
+
delete_ad_sense_link_config = parent_rpcs.delete_ad_sense_link if parent_rpcs.respond_to? :delete_ad_sense_link
|
12334
|
+
@delete_ad_sense_link = ::Gapic::Config::Method.new delete_ad_sense_link_config
|
12335
|
+
list_ad_sense_links_config = parent_rpcs.list_ad_sense_links if parent_rpcs.respond_to? :list_ad_sense_links
|
12336
|
+
@list_ad_sense_links = ::Gapic::Config::Method.new list_ad_sense_links_config
|
12337
|
+
get_event_create_rule_config = parent_rpcs.get_event_create_rule if parent_rpcs.respond_to? :get_event_create_rule
|
12338
|
+
@get_event_create_rule = ::Gapic::Config::Method.new get_event_create_rule_config
|
12339
|
+
list_event_create_rules_config = parent_rpcs.list_event_create_rules if parent_rpcs.respond_to? :list_event_create_rules
|
12340
|
+
@list_event_create_rules = ::Gapic::Config::Method.new list_event_create_rules_config
|
12341
|
+
create_event_create_rule_config = parent_rpcs.create_event_create_rule if parent_rpcs.respond_to? :create_event_create_rule
|
12342
|
+
@create_event_create_rule = ::Gapic::Config::Method.new create_event_create_rule_config
|
12343
|
+
update_event_create_rule_config = parent_rpcs.update_event_create_rule if parent_rpcs.respond_to? :update_event_create_rule
|
12344
|
+
@update_event_create_rule = ::Gapic::Config::Method.new update_event_create_rule_config
|
12345
|
+
delete_event_create_rule_config = parent_rpcs.delete_event_create_rule if parent_rpcs.respond_to? :delete_event_create_rule
|
12346
|
+
@delete_event_create_rule = ::Gapic::Config::Method.new delete_event_create_rule_config
|
11466
12347
|
|
11467
12348
|
yield self if block_given?
|
11468
12349
|
end
|