google-analytics-admin-v1alpha 0.34.1 → 0.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/analytics/admin/v1alpha/analytics_admin_pb.rb +5 -1
- data/lib/google/analytics/admin/v1alpha/analytics_admin_service/client.rb +307 -1
- data/lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb +17 -0
- data/lib/google/analytics/admin/v1alpha/analytics_admin_service/rest/client.rb +286 -1
- data/lib/google/analytics/admin/v1alpha/analytics_admin_service/rest/service_stub.rb +184 -0
- data/lib/google/analytics/admin/v1alpha/analytics_admin_services_pb.rb +6 -0
- data/lib/google/analytics/admin/v1alpha/resources_pb.rb +3 -1
- data/lib/google/analytics/admin/v1alpha/version.rb +1 -1
- data/proto_docs/google/analytics/admin/v1alpha/analytics_admin.rb +68 -0
- data/proto_docs/google/analytics/admin/v1alpha/resources.rb +80 -27
- metadata +7 -13
@@ -12498,7 +12498,7 @@ module Google
|
|
12498
12498
|
# @param options [::Gapic::CallOptions, ::Hash]
|
12499
12499
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
12500
12500
|
#
|
12501
|
-
# @overload provision_subproperty(subproperty: nil, subproperty_event_filter: nil)
|
12501
|
+
# @overload provision_subproperty(subproperty: nil, subproperty_event_filter: nil, custom_dimension_and_metric_synchronization_mode: nil)
|
12502
12502
|
# Pass arguments to `provision_subproperty` via keyword arguments. Note that at
|
12503
12503
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
12504
12504
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -12507,6 +12507,9 @@ module Google
|
|
12507
12507
|
# Required. The subproperty to create.
|
12508
12508
|
# @param subproperty_event_filter [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter, ::Hash]
|
12509
12509
|
# Optional. The subproperty event filter to create on an ordinary property.
|
12510
|
+
# @param custom_dimension_and_metric_synchronization_mode [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig::SynchronizationMode]
|
12511
|
+
# Optional. The subproperty feature synchronization mode for Custom
|
12512
|
+
# Dimensions and Metrics
|
12510
12513
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
12511
12514
|
# @yieldparam result [::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyResponse]
|
12512
12515
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -13555,6 +13558,267 @@ module Google
|
|
13555
13558
|
raise ::Google::Cloud::Error.from_error(e)
|
13556
13559
|
end
|
13557
13560
|
|
13561
|
+
##
|
13562
|
+
# List all Subproperty Sync Configs on a property.
|
13563
|
+
#
|
13564
|
+
# @overload list_subproperty_sync_configs(request, options = nil)
|
13565
|
+
# Pass arguments to `list_subproperty_sync_configs` via a request object, either of type
|
13566
|
+
# {::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsRequest} or an equivalent Hash.
|
13567
|
+
#
|
13568
|
+
# @param request [::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsRequest, ::Hash]
|
13569
|
+
# A request object representing the call parameters. Required. To specify no
|
13570
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
13571
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
13572
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
13573
|
+
#
|
13574
|
+
# @overload list_subproperty_sync_configs(parent: nil, page_size: nil, page_token: nil)
|
13575
|
+
# Pass arguments to `list_subproperty_sync_configs` via keyword arguments. Note that at
|
13576
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
13577
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
13578
|
+
#
|
13579
|
+
# @param parent [::String]
|
13580
|
+
# Required. Resource name of the property.
|
13581
|
+
# Format: properties/property_id
|
13582
|
+
# Example: properties/123
|
13583
|
+
# @param page_size [::Integer]
|
13584
|
+
# Optional. The maximum number of resources to return. The service may return
|
13585
|
+
# fewer than this value, even if there are additional pages. If unspecified,
|
13586
|
+
# at most 50 resources will be returned. The maximum value is 200; (higher
|
13587
|
+
# values will be coerced to the maximum)
|
13588
|
+
# @param page_token [::String]
|
13589
|
+
# Optional. A page token, received from a previous
|
13590
|
+
# `ListSubpropertySyncConfig` call. Provide this to retrieve the subsequent
|
13591
|
+
# page. When paginating, all other parameters provided to
|
13592
|
+
# `ListSubpropertySyncConfig` must match the call that provided the page
|
13593
|
+
# token.
|
13594
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
13595
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig>]
|
13596
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
13597
|
+
#
|
13598
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig>]
|
13599
|
+
#
|
13600
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
13601
|
+
#
|
13602
|
+
# @example Basic example
|
13603
|
+
# require "google/analytics/admin/v1alpha"
|
13604
|
+
#
|
13605
|
+
# # Create a client object. The client can be reused for multiple calls.
|
13606
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new
|
13607
|
+
#
|
13608
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
13609
|
+
# request = Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsRequest.new
|
13610
|
+
#
|
13611
|
+
# # Call the list_subproperty_sync_configs method.
|
13612
|
+
# result = client.list_subproperty_sync_configs request
|
13613
|
+
#
|
13614
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
13615
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
13616
|
+
# result.each do |item|
|
13617
|
+
# # Each element is of type ::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig.
|
13618
|
+
# p item
|
13619
|
+
# end
|
13620
|
+
#
|
13621
|
+
def list_subproperty_sync_configs request, options = nil
|
13622
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
13623
|
+
|
13624
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsRequest
|
13625
|
+
|
13626
|
+
# Converts hash and nil to an options object
|
13627
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
13628
|
+
|
13629
|
+
# Customize the options with defaults
|
13630
|
+
call_metadata = @config.rpcs.list_subproperty_sync_configs.metadata.to_h
|
13631
|
+
|
13632
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
13633
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
13634
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
13635
|
+
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION,
|
13636
|
+
transports_version_send: [:rest]
|
13637
|
+
|
13638
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
13639
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
13640
|
+
|
13641
|
+
options.apply_defaults timeout: @config.rpcs.list_subproperty_sync_configs.timeout,
|
13642
|
+
metadata: call_metadata,
|
13643
|
+
retry_policy: @config.rpcs.list_subproperty_sync_configs.retry_policy
|
13644
|
+
|
13645
|
+
options.apply_defaults timeout: @config.timeout,
|
13646
|
+
metadata: @config.metadata,
|
13647
|
+
retry_policy: @config.retry_policy
|
13648
|
+
|
13649
|
+
@analytics_admin_service_stub.list_subproperty_sync_configs request, options do |result, operation|
|
13650
|
+
result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_subproperty_sync_configs, "subproperty_sync_configs", request, result, options
|
13651
|
+
yield result, operation if block_given?
|
13652
|
+
throw :response, result
|
13653
|
+
end
|
13654
|
+
rescue ::Gapic::Rest::Error => e
|
13655
|
+
raise ::Google::Cloud::Error.from_error(e)
|
13656
|
+
end
|
13657
|
+
|
13658
|
+
##
|
13659
|
+
# Updates a Subproperty Sync Config.
|
13660
|
+
#
|
13661
|
+
# @overload update_subproperty_sync_config(request, options = nil)
|
13662
|
+
# Pass arguments to `update_subproperty_sync_config` via a request object, either of type
|
13663
|
+
# {::Google::Analytics::Admin::V1alpha::UpdateSubpropertySyncConfigRequest} or an equivalent Hash.
|
13664
|
+
#
|
13665
|
+
# @param request [::Google::Analytics::Admin::V1alpha::UpdateSubpropertySyncConfigRequest, ::Hash]
|
13666
|
+
# A request object representing the call parameters. Required. To specify no
|
13667
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
13668
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
13669
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
13670
|
+
#
|
13671
|
+
# @overload update_subproperty_sync_config(subproperty_sync_config: nil, update_mask: nil)
|
13672
|
+
# Pass arguments to `update_subproperty_sync_config` via keyword arguments. Note that at
|
13673
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
13674
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
13675
|
+
#
|
13676
|
+
# @param subproperty_sync_config [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig, ::Hash]
|
13677
|
+
# Required. The SubpropertySyncConfig to update.
|
13678
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
13679
|
+
# Optional. The list of fields to update. Field names must be in snake case
|
13680
|
+
# (for example, "field_to_update"). Omitted fields will not be updated. To
|
13681
|
+
# replace the entire entity, use one path with the string "*" to match all
|
13682
|
+
# fields.
|
13683
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
13684
|
+
# @yieldparam result [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig]
|
13685
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
13686
|
+
#
|
13687
|
+
# @return [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig]
|
13688
|
+
#
|
13689
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
13690
|
+
#
|
13691
|
+
# @example Basic example
|
13692
|
+
# require "google/analytics/admin/v1alpha"
|
13693
|
+
#
|
13694
|
+
# # Create a client object. The client can be reused for multiple calls.
|
13695
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new
|
13696
|
+
#
|
13697
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
13698
|
+
# request = Google::Analytics::Admin::V1alpha::UpdateSubpropertySyncConfigRequest.new
|
13699
|
+
#
|
13700
|
+
# # Call the update_subproperty_sync_config method.
|
13701
|
+
# result = client.update_subproperty_sync_config request
|
13702
|
+
#
|
13703
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::SubpropertySyncConfig.
|
13704
|
+
# p result
|
13705
|
+
#
|
13706
|
+
def update_subproperty_sync_config request, options = nil
|
13707
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
13708
|
+
|
13709
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateSubpropertySyncConfigRequest
|
13710
|
+
|
13711
|
+
# Converts hash and nil to an options object
|
13712
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
13713
|
+
|
13714
|
+
# Customize the options with defaults
|
13715
|
+
call_metadata = @config.rpcs.update_subproperty_sync_config.metadata.to_h
|
13716
|
+
|
13717
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
13718
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
13719
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
13720
|
+
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION,
|
13721
|
+
transports_version_send: [:rest]
|
13722
|
+
|
13723
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
13724
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
13725
|
+
|
13726
|
+
options.apply_defaults timeout: @config.rpcs.update_subproperty_sync_config.timeout,
|
13727
|
+
metadata: call_metadata,
|
13728
|
+
retry_policy: @config.rpcs.update_subproperty_sync_config.retry_policy
|
13729
|
+
|
13730
|
+
options.apply_defaults timeout: @config.timeout,
|
13731
|
+
metadata: @config.metadata,
|
13732
|
+
retry_policy: @config.retry_policy
|
13733
|
+
|
13734
|
+
@analytics_admin_service_stub.update_subproperty_sync_config request, options do |result, operation|
|
13735
|
+
yield result, operation if block_given?
|
13736
|
+
end
|
13737
|
+
rescue ::Gapic::Rest::Error => e
|
13738
|
+
raise ::Google::Cloud::Error.from_error(e)
|
13739
|
+
end
|
13740
|
+
|
13741
|
+
##
|
13742
|
+
# Lookup for a single Subproperty Sync Config.
|
13743
|
+
#
|
13744
|
+
# @overload get_subproperty_sync_config(request, options = nil)
|
13745
|
+
# Pass arguments to `get_subproperty_sync_config` via a request object, either of type
|
13746
|
+
# {::Google::Analytics::Admin::V1alpha::GetSubpropertySyncConfigRequest} or an equivalent Hash.
|
13747
|
+
#
|
13748
|
+
# @param request [::Google::Analytics::Admin::V1alpha::GetSubpropertySyncConfigRequest, ::Hash]
|
13749
|
+
# A request object representing the call parameters. Required. To specify no
|
13750
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
13751
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
13752
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
13753
|
+
#
|
13754
|
+
# @overload get_subproperty_sync_config(name: nil)
|
13755
|
+
# Pass arguments to `get_subproperty_sync_config` via keyword arguments. Note that at
|
13756
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
13757
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
13758
|
+
#
|
13759
|
+
# @param name [::String]
|
13760
|
+
# Required. Resource name of the SubpropertySyncConfig to lookup.
|
13761
|
+
# Format:
|
13762
|
+
# properties/\\{ordinary_property_id}/subpropertySyncConfigs/\\{subproperty_id}
|
13763
|
+
# Example: properties/1234/subpropertySyncConfigs/5678
|
13764
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
13765
|
+
# @yieldparam result [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig]
|
13766
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
13767
|
+
#
|
13768
|
+
# @return [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig]
|
13769
|
+
#
|
13770
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
13771
|
+
#
|
13772
|
+
# @example Basic example
|
13773
|
+
# require "google/analytics/admin/v1alpha"
|
13774
|
+
#
|
13775
|
+
# # Create a client object. The client can be reused for multiple calls.
|
13776
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new
|
13777
|
+
#
|
13778
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
13779
|
+
# request = Google::Analytics::Admin::V1alpha::GetSubpropertySyncConfigRequest.new
|
13780
|
+
#
|
13781
|
+
# # Call the get_subproperty_sync_config method.
|
13782
|
+
# result = client.get_subproperty_sync_config request
|
13783
|
+
#
|
13784
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::SubpropertySyncConfig.
|
13785
|
+
# p result
|
13786
|
+
#
|
13787
|
+
def get_subproperty_sync_config request, options = nil
|
13788
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
13789
|
+
|
13790
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetSubpropertySyncConfigRequest
|
13791
|
+
|
13792
|
+
# Converts hash and nil to an options object
|
13793
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
13794
|
+
|
13795
|
+
# Customize the options with defaults
|
13796
|
+
call_metadata = @config.rpcs.get_subproperty_sync_config.metadata.to_h
|
13797
|
+
|
13798
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
13799
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
13800
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
13801
|
+
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION,
|
13802
|
+
transports_version_send: [:rest]
|
13803
|
+
|
13804
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
13805
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
13806
|
+
|
13807
|
+
options.apply_defaults timeout: @config.rpcs.get_subproperty_sync_config.timeout,
|
13808
|
+
metadata: call_metadata,
|
13809
|
+
retry_policy: @config.rpcs.get_subproperty_sync_config.retry_policy
|
13810
|
+
|
13811
|
+
options.apply_defaults timeout: @config.timeout,
|
13812
|
+
metadata: @config.metadata,
|
13813
|
+
retry_policy: @config.retry_policy
|
13814
|
+
|
13815
|
+
@analytics_admin_service_stub.get_subproperty_sync_config request, options do |result, operation|
|
13816
|
+
yield result, operation if block_given?
|
13817
|
+
end
|
13818
|
+
rescue ::Gapic::Rest::Error => e
|
13819
|
+
raise ::Google::Cloud::Error.from_error(e)
|
13820
|
+
end
|
13821
|
+
|
13558
13822
|
##
|
13559
13823
|
# Configuration class for the AnalyticsAdminService REST API.
|
13560
13824
|
#
|
@@ -14481,6 +14745,21 @@ module Google
|
|
14481
14745
|
# @return [::Gapic::Config::Method]
|
14482
14746
|
#
|
14483
14747
|
attr_reader :submit_user_deletion
|
14748
|
+
##
|
14749
|
+
# RPC-specific configuration for `list_subproperty_sync_configs`
|
14750
|
+
# @return [::Gapic::Config::Method]
|
14751
|
+
#
|
14752
|
+
attr_reader :list_subproperty_sync_configs
|
14753
|
+
##
|
14754
|
+
# RPC-specific configuration for `update_subproperty_sync_config`
|
14755
|
+
# @return [::Gapic::Config::Method]
|
14756
|
+
#
|
14757
|
+
attr_reader :update_subproperty_sync_config
|
14758
|
+
##
|
14759
|
+
# RPC-specific configuration for `get_subproperty_sync_config`
|
14760
|
+
# @return [::Gapic::Config::Method]
|
14761
|
+
#
|
14762
|
+
attr_reader :get_subproperty_sync_config
|
14484
14763
|
|
14485
14764
|
# @private
|
14486
14765
|
def initialize parent_rpcs = nil
|
@@ -14796,6 +15075,12 @@ module Google
|
|
14796
15075
|
@delete_reporting_data_annotation = ::Gapic::Config::Method.new delete_reporting_data_annotation_config
|
14797
15076
|
submit_user_deletion_config = parent_rpcs.submit_user_deletion if parent_rpcs.respond_to? :submit_user_deletion
|
14798
15077
|
@submit_user_deletion = ::Gapic::Config::Method.new submit_user_deletion_config
|
15078
|
+
list_subproperty_sync_configs_config = parent_rpcs.list_subproperty_sync_configs if parent_rpcs.respond_to? :list_subproperty_sync_configs
|
15079
|
+
@list_subproperty_sync_configs = ::Gapic::Config::Method.new list_subproperty_sync_configs_config
|
15080
|
+
update_subproperty_sync_config_config = parent_rpcs.update_subproperty_sync_config if parent_rpcs.respond_to? :update_subproperty_sync_config
|
15081
|
+
@update_subproperty_sync_config = ::Gapic::Config::Method.new update_subproperty_sync_config_config
|
15082
|
+
get_subproperty_sync_config_config = parent_rpcs.get_subproperty_sync_config if parent_rpcs.respond_to? :get_subproperty_sync_config
|
15083
|
+
@get_subproperty_sync_config = ::Gapic::Config::Method.new get_subproperty_sync_config_config
|
14799
15084
|
|
14800
15085
|
yield self if block_given?
|
14801
15086
|
end
|
@@ -6313,6 +6313,126 @@ module Google
|
|
6313
6313
|
end
|
6314
6314
|
end
|
6315
6315
|
|
6316
|
+
##
|
6317
|
+
# Baseline implementation for the list_subproperty_sync_configs REST call
|
6318
|
+
#
|
6319
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsRequest]
|
6320
|
+
# A request object representing the call parameters. Required.
|
6321
|
+
# @param options [::Gapic::CallOptions]
|
6322
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
6323
|
+
#
|
6324
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
6325
|
+
# @yieldparam result [::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsResponse]
|
6326
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
6327
|
+
#
|
6328
|
+
# @return [::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsResponse]
|
6329
|
+
# A result object deserialized from the server's reply
|
6330
|
+
def list_subproperty_sync_configs request_pb, options = nil
|
6331
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
6332
|
+
|
6333
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_subproperty_sync_configs_request request_pb
|
6334
|
+
query_string_params = if query_string_params.any?
|
6335
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
6336
|
+
else
|
6337
|
+
{}
|
6338
|
+
end
|
6339
|
+
|
6340
|
+
response = @client_stub.make_http_request(
|
6341
|
+
verb,
|
6342
|
+
uri: uri,
|
6343
|
+
body: body || "",
|
6344
|
+
params: query_string_params,
|
6345
|
+
method_name: "list_subproperty_sync_configs",
|
6346
|
+
options: options
|
6347
|
+
)
|
6348
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
6349
|
+
result = ::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsResponse.decode_json response.body, ignore_unknown_fields: true
|
6350
|
+
catch :response do
|
6351
|
+
yield result, operation if block_given?
|
6352
|
+
result
|
6353
|
+
end
|
6354
|
+
end
|
6355
|
+
|
6356
|
+
##
|
6357
|
+
# Baseline implementation for the update_subproperty_sync_config REST call
|
6358
|
+
#
|
6359
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateSubpropertySyncConfigRequest]
|
6360
|
+
# A request object representing the call parameters. Required.
|
6361
|
+
# @param options [::Gapic::CallOptions]
|
6362
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
6363
|
+
#
|
6364
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
6365
|
+
# @yieldparam result [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig]
|
6366
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
6367
|
+
#
|
6368
|
+
# @return [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig]
|
6369
|
+
# A result object deserialized from the server's reply
|
6370
|
+
def update_subproperty_sync_config request_pb, options = nil
|
6371
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
6372
|
+
|
6373
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_subproperty_sync_config_request request_pb
|
6374
|
+
query_string_params = if query_string_params.any?
|
6375
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
6376
|
+
else
|
6377
|
+
{}
|
6378
|
+
end
|
6379
|
+
|
6380
|
+
response = @client_stub.make_http_request(
|
6381
|
+
verb,
|
6382
|
+
uri: uri,
|
6383
|
+
body: body || "",
|
6384
|
+
params: query_string_params,
|
6385
|
+
method_name: "update_subproperty_sync_config",
|
6386
|
+
options: options
|
6387
|
+
)
|
6388
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
6389
|
+
result = ::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig.decode_json response.body, ignore_unknown_fields: true
|
6390
|
+
catch :response do
|
6391
|
+
yield result, operation if block_given?
|
6392
|
+
result
|
6393
|
+
end
|
6394
|
+
end
|
6395
|
+
|
6396
|
+
##
|
6397
|
+
# Baseline implementation for the get_subproperty_sync_config REST call
|
6398
|
+
#
|
6399
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::GetSubpropertySyncConfigRequest]
|
6400
|
+
# A request object representing the call parameters. Required.
|
6401
|
+
# @param options [::Gapic::CallOptions]
|
6402
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
6403
|
+
#
|
6404
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
6405
|
+
# @yieldparam result [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig]
|
6406
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
6407
|
+
#
|
6408
|
+
# @return [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig]
|
6409
|
+
# A result object deserialized from the server's reply
|
6410
|
+
def get_subproperty_sync_config request_pb, options = nil
|
6411
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
6412
|
+
|
6413
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_subproperty_sync_config_request request_pb
|
6414
|
+
query_string_params = if query_string_params.any?
|
6415
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
6416
|
+
else
|
6417
|
+
{}
|
6418
|
+
end
|
6419
|
+
|
6420
|
+
response = @client_stub.make_http_request(
|
6421
|
+
verb,
|
6422
|
+
uri: uri,
|
6423
|
+
body: body || "",
|
6424
|
+
params: query_string_params,
|
6425
|
+
method_name: "get_subproperty_sync_config",
|
6426
|
+
options: options
|
6427
|
+
)
|
6428
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
6429
|
+
result = ::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig.decode_json response.body, ignore_unknown_fields: true
|
6430
|
+
catch :response do
|
6431
|
+
yield result, operation if block_given?
|
6432
|
+
result
|
6433
|
+
end
|
6434
|
+
end
|
6435
|
+
|
6316
6436
|
##
|
6317
6437
|
# @private
|
6318
6438
|
#
|
@@ -9711,6 +9831,70 @@ module Google
|
|
9711
9831
|
)
|
9712
9832
|
transcoder.transcode request_pb
|
9713
9833
|
end
|
9834
|
+
|
9835
|
+
##
|
9836
|
+
# @private
|
9837
|
+
#
|
9838
|
+
# GRPC transcoding helper method for the list_subproperty_sync_configs REST call
|
9839
|
+
#
|
9840
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsRequest]
|
9841
|
+
# A request object representing the call parameters. Required.
|
9842
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
9843
|
+
# Uri, Body, Query string parameters
|
9844
|
+
def self.transcode_list_subproperty_sync_configs_request request_pb
|
9845
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
9846
|
+
.with_bindings(
|
9847
|
+
uri_method: :get,
|
9848
|
+
uri_template: "/v1alpha/{parent}/subpropertySyncConfigs",
|
9849
|
+
matches: [
|
9850
|
+
["parent", %r{^properties/[^/]+/?$}, false]
|
9851
|
+
]
|
9852
|
+
)
|
9853
|
+
transcoder.transcode request_pb
|
9854
|
+
end
|
9855
|
+
|
9856
|
+
##
|
9857
|
+
# @private
|
9858
|
+
#
|
9859
|
+
# GRPC transcoding helper method for the update_subproperty_sync_config REST call
|
9860
|
+
#
|
9861
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateSubpropertySyncConfigRequest]
|
9862
|
+
# A request object representing the call parameters. Required.
|
9863
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
9864
|
+
# Uri, Body, Query string parameters
|
9865
|
+
def self.transcode_update_subproperty_sync_config_request request_pb
|
9866
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
9867
|
+
.with_bindings(
|
9868
|
+
uri_method: :patch,
|
9869
|
+
uri_template: "/v1alpha/{subproperty_sync_config.name}",
|
9870
|
+
body: "subproperty_sync_config",
|
9871
|
+
matches: [
|
9872
|
+
["subproperty_sync_config.name", %r{^properties/[^/]+/subpropertySyncConfigs/[^/]+/?$}, false]
|
9873
|
+
]
|
9874
|
+
)
|
9875
|
+
transcoder.transcode request_pb
|
9876
|
+
end
|
9877
|
+
|
9878
|
+
##
|
9879
|
+
# @private
|
9880
|
+
#
|
9881
|
+
# GRPC transcoding helper method for the get_subproperty_sync_config REST call
|
9882
|
+
#
|
9883
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::GetSubpropertySyncConfigRequest]
|
9884
|
+
# A request object representing the call parameters. Required.
|
9885
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
9886
|
+
# Uri, Body, Query string parameters
|
9887
|
+
def self.transcode_get_subproperty_sync_config_request request_pb
|
9888
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
9889
|
+
.with_bindings(
|
9890
|
+
uri_method: :get,
|
9891
|
+
uri_template: "/v1alpha/{name}",
|
9892
|
+
matches: [
|
9893
|
+
["name", %r{^properties/[^/]+/subpropertySyncConfigs/[^/]+/?$}, false]
|
9894
|
+
]
|
9895
|
+
)
|
9896
|
+
transcoder.transcode request_pb
|
9897
|
+
end
|
9714
9898
|
end
|
9715
9899
|
end
|
9716
9900
|
end
|
@@ -459,6 +459,12 @@ module Google
|
|
459
459
|
rpc :DeleteReportingDataAnnotation, ::Google::Analytics::Admin::V1alpha::DeleteReportingDataAnnotationRequest, ::Google::Protobuf::Empty
|
460
460
|
# Submits a request for user deletion for a property.
|
461
461
|
rpc :SubmitUserDeletion, ::Google::Analytics::Admin::V1alpha::SubmitUserDeletionRequest, ::Google::Analytics::Admin::V1alpha::SubmitUserDeletionResponse
|
462
|
+
# List all Subproperty Sync Configs on a property.
|
463
|
+
rpc :ListSubpropertySyncConfigs, ::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsRequest, ::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsResponse
|
464
|
+
# Updates a Subproperty Sync Config.
|
465
|
+
rpc :UpdateSubpropertySyncConfig, ::Google::Analytics::Admin::V1alpha::UpdateSubpropertySyncConfigRequest, ::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig
|
466
|
+
# Lookup for a single Subproperty Sync Config.
|
467
|
+
rpc :GetSubpropertySyncConfig, ::Google::Analytics::Admin::V1alpha::GetSubpropertySyncConfigRequest, ::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig
|
462
468
|
end
|
463
469
|
|
464
470
|
Stub = Service.rpc_stub_class
|