google-analytics-admin-v1alpha 0.23.0 → 0.24.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 +7 -1
- data/lib/google/analytics/admin/v1alpha/analytics_admin_service/client.rb +489 -0
- data/lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb +19 -0
- data/lib/google/analytics/admin/v1alpha/analytics_admin_service/rest/client.rb +370 -0
- data/lib/google/analytics/admin/v1alpha/analytics_admin_service/rest/service_stub.rb +297 -0
- data/lib/google/analytics/admin/v1alpha/analytics_admin_services_pb.rb +11 -0
- data/lib/google/analytics/admin/v1alpha/resources_pb.rb +6 -1
- data/lib/google/analytics/admin/v1alpha/version.rb +1 -1
- data/proto_docs/google/analytics/admin/v1alpha/analytics_admin.rb +89 -0
- data/proto_docs/google/analytics/admin/v1alpha/resources.rb +156 -2
- data/proto_docs/google/api/field_behavior.rb +14 -0
- metadata +3 -3
@@ -3518,6 +3518,460 @@ module Google
|
|
3518
3518
|
raise ::Google::Cloud::Error.from_error(e)
|
3519
3519
|
end
|
3520
3520
|
|
3521
|
+
##
|
3522
|
+
# Looks up a single SKAdNetworkConversionValueSchema.
|
3523
|
+
#
|
3524
|
+
# @overload get_sk_ad_network_conversion_value_schema(request, options = nil)
|
3525
|
+
# Pass arguments to `get_sk_ad_network_conversion_value_schema` via a request object, either of type
|
3526
|
+
# {::Google::Analytics::Admin::V1alpha::GetSKAdNetworkConversionValueSchemaRequest} or an equivalent Hash.
|
3527
|
+
#
|
3528
|
+
# @param request [::Google::Analytics::Admin::V1alpha::GetSKAdNetworkConversionValueSchemaRequest, ::Hash]
|
3529
|
+
# A request object representing the call parameters. Required. To specify no
|
3530
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3531
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3532
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
3533
|
+
#
|
3534
|
+
# @overload get_sk_ad_network_conversion_value_schema(name: nil)
|
3535
|
+
# Pass arguments to `get_sk_ad_network_conversion_value_schema` via keyword arguments. Note that at
|
3536
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3537
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3538
|
+
#
|
3539
|
+
# @param name [::String]
|
3540
|
+
# Required. The resource name of SKAdNetwork conversion value schema to look
|
3541
|
+
# up. Format:
|
3542
|
+
# properties/\\{property}/dataStreams/\\{dataStream}/sKAdNetworkConversionValueSchema/\\{skadnetwork_conversion_value_schema}
|
3543
|
+
#
|
3544
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
3545
|
+
# @yieldparam response [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema]
|
3546
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
3547
|
+
#
|
3548
|
+
# @return [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema]
|
3549
|
+
#
|
3550
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3551
|
+
#
|
3552
|
+
# @example Basic example
|
3553
|
+
# require "google/analytics/admin/v1alpha"
|
3554
|
+
#
|
3555
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3556
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
3557
|
+
#
|
3558
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3559
|
+
# request = Google::Analytics::Admin::V1alpha::GetSKAdNetworkConversionValueSchemaRequest.new
|
3560
|
+
#
|
3561
|
+
# # Call the get_sk_ad_network_conversion_value_schema method.
|
3562
|
+
# result = client.get_sk_ad_network_conversion_value_schema request
|
3563
|
+
#
|
3564
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema.
|
3565
|
+
# p result
|
3566
|
+
#
|
3567
|
+
def get_sk_ad_network_conversion_value_schema request, options = nil
|
3568
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3569
|
+
|
3570
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetSKAdNetworkConversionValueSchemaRequest
|
3571
|
+
|
3572
|
+
# Converts hash and nil to an options object
|
3573
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3574
|
+
|
3575
|
+
# Customize the options with defaults
|
3576
|
+
metadata = @config.rpcs.get_sk_ad_network_conversion_value_schema.metadata.to_h
|
3577
|
+
|
3578
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
3579
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3580
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3581
|
+
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
3582
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3583
|
+
|
3584
|
+
header_params = {}
|
3585
|
+
if request.name
|
3586
|
+
header_params["name"] = request.name
|
3587
|
+
end
|
3588
|
+
|
3589
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3590
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
3591
|
+
|
3592
|
+
options.apply_defaults timeout: @config.rpcs.get_sk_ad_network_conversion_value_schema.timeout,
|
3593
|
+
metadata: metadata,
|
3594
|
+
retry_policy: @config.rpcs.get_sk_ad_network_conversion_value_schema.retry_policy
|
3595
|
+
|
3596
|
+
options.apply_defaults timeout: @config.timeout,
|
3597
|
+
metadata: @config.metadata,
|
3598
|
+
retry_policy: @config.retry_policy
|
3599
|
+
|
3600
|
+
@analytics_admin_service_stub.call_rpc :get_sk_ad_network_conversion_value_schema, request, options: options do |response, operation|
|
3601
|
+
yield response, operation if block_given?
|
3602
|
+
return response
|
3603
|
+
end
|
3604
|
+
rescue ::GRPC::BadStatus => e
|
3605
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3606
|
+
end
|
3607
|
+
|
3608
|
+
##
|
3609
|
+
# Creates a SKAdNetworkConversionValueSchema.
|
3610
|
+
#
|
3611
|
+
# @overload create_sk_ad_network_conversion_value_schema(request, options = nil)
|
3612
|
+
# Pass arguments to `create_sk_ad_network_conversion_value_schema` via a request object, either of type
|
3613
|
+
# {::Google::Analytics::Admin::V1alpha::CreateSKAdNetworkConversionValueSchemaRequest} or an equivalent Hash.
|
3614
|
+
#
|
3615
|
+
# @param request [::Google::Analytics::Admin::V1alpha::CreateSKAdNetworkConversionValueSchemaRequest, ::Hash]
|
3616
|
+
# A request object representing the call parameters. Required. To specify no
|
3617
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3618
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3619
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
3620
|
+
#
|
3621
|
+
# @overload create_sk_ad_network_conversion_value_schema(parent: nil, skadnetwork_conversion_value_schema: nil)
|
3622
|
+
# Pass arguments to `create_sk_ad_network_conversion_value_schema` via keyword arguments. Note that at
|
3623
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3624
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3625
|
+
#
|
3626
|
+
# @param parent [::String]
|
3627
|
+
# Required. The parent resource where this schema will be created.
|
3628
|
+
# Format: properties/\\{property}/dataStreams/\\{dataStream}
|
3629
|
+
# @param skadnetwork_conversion_value_schema [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema, ::Hash]
|
3630
|
+
# Required. SKAdNetwork conversion value schema to create.
|
3631
|
+
#
|
3632
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
3633
|
+
# @yieldparam response [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema]
|
3634
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
3635
|
+
#
|
3636
|
+
# @return [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema]
|
3637
|
+
#
|
3638
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3639
|
+
#
|
3640
|
+
# @example Basic example
|
3641
|
+
# require "google/analytics/admin/v1alpha"
|
3642
|
+
#
|
3643
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3644
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
3645
|
+
#
|
3646
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3647
|
+
# request = Google::Analytics::Admin::V1alpha::CreateSKAdNetworkConversionValueSchemaRequest.new
|
3648
|
+
#
|
3649
|
+
# # Call the create_sk_ad_network_conversion_value_schema method.
|
3650
|
+
# result = client.create_sk_ad_network_conversion_value_schema request
|
3651
|
+
#
|
3652
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema.
|
3653
|
+
# p result
|
3654
|
+
#
|
3655
|
+
def create_sk_ad_network_conversion_value_schema request, options = nil
|
3656
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3657
|
+
|
3658
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateSKAdNetworkConversionValueSchemaRequest
|
3659
|
+
|
3660
|
+
# Converts hash and nil to an options object
|
3661
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3662
|
+
|
3663
|
+
# Customize the options with defaults
|
3664
|
+
metadata = @config.rpcs.create_sk_ad_network_conversion_value_schema.metadata.to_h
|
3665
|
+
|
3666
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
3667
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3668
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3669
|
+
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
3670
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3671
|
+
|
3672
|
+
header_params = {}
|
3673
|
+
if request.parent
|
3674
|
+
header_params["parent"] = request.parent
|
3675
|
+
end
|
3676
|
+
|
3677
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3678
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
3679
|
+
|
3680
|
+
options.apply_defaults timeout: @config.rpcs.create_sk_ad_network_conversion_value_schema.timeout,
|
3681
|
+
metadata: metadata,
|
3682
|
+
retry_policy: @config.rpcs.create_sk_ad_network_conversion_value_schema.retry_policy
|
3683
|
+
|
3684
|
+
options.apply_defaults timeout: @config.timeout,
|
3685
|
+
metadata: @config.metadata,
|
3686
|
+
retry_policy: @config.retry_policy
|
3687
|
+
|
3688
|
+
@analytics_admin_service_stub.call_rpc :create_sk_ad_network_conversion_value_schema, request, options: options do |response, operation|
|
3689
|
+
yield response, operation if block_given?
|
3690
|
+
return response
|
3691
|
+
end
|
3692
|
+
rescue ::GRPC::BadStatus => e
|
3693
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3694
|
+
end
|
3695
|
+
|
3696
|
+
##
|
3697
|
+
# Deletes target SKAdNetworkConversionValueSchema.
|
3698
|
+
#
|
3699
|
+
# @overload delete_sk_ad_network_conversion_value_schema(request, options = nil)
|
3700
|
+
# Pass arguments to `delete_sk_ad_network_conversion_value_schema` via a request object, either of type
|
3701
|
+
# {::Google::Analytics::Admin::V1alpha::DeleteSKAdNetworkConversionValueSchemaRequest} or an equivalent Hash.
|
3702
|
+
#
|
3703
|
+
# @param request [::Google::Analytics::Admin::V1alpha::DeleteSKAdNetworkConversionValueSchemaRequest, ::Hash]
|
3704
|
+
# A request object representing the call parameters. Required. To specify no
|
3705
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3706
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3707
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
3708
|
+
#
|
3709
|
+
# @overload delete_sk_ad_network_conversion_value_schema(name: nil)
|
3710
|
+
# Pass arguments to `delete_sk_ad_network_conversion_value_schema` via keyword arguments. Note that at
|
3711
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3712
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3713
|
+
#
|
3714
|
+
# @param name [::String]
|
3715
|
+
# Required. The name of the SKAdNetworkConversionValueSchema to delete.
|
3716
|
+
# Format:
|
3717
|
+
# properties/\\{property}/dataStreams/\\{dataStream}/sKAdNetworkConversionValueSchema/\\{skadnetwork_conversion_value_schema}
|
3718
|
+
#
|
3719
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
3720
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
3721
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
3722
|
+
#
|
3723
|
+
# @return [::Google::Protobuf::Empty]
|
3724
|
+
#
|
3725
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3726
|
+
#
|
3727
|
+
# @example Basic example
|
3728
|
+
# require "google/analytics/admin/v1alpha"
|
3729
|
+
#
|
3730
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3731
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
3732
|
+
#
|
3733
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3734
|
+
# request = Google::Analytics::Admin::V1alpha::DeleteSKAdNetworkConversionValueSchemaRequest.new
|
3735
|
+
#
|
3736
|
+
# # Call the delete_sk_ad_network_conversion_value_schema method.
|
3737
|
+
# result = client.delete_sk_ad_network_conversion_value_schema request
|
3738
|
+
#
|
3739
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
3740
|
+
# p result
|
3741
|
+
#
|
3742
|
+
def delete_sk_ad_network_conversion_value_schema request, options = nil
|
3743
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3744
|
+
|
3745
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteSKAdNetworkConversionValueSchemaRequest
|
3746
|
+
|
3747
|
+
# Converts hash and nil to an options object
|
3748
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3749
|
+
|
3750
|
+
# Customize the options with defaults
|
3751
|
+
metadata = @config.rpcs.delete_sk_ad_network_conversion_value_schema.metadata.to_h
|
3752
|
+
|
3753
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
3754
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3755
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3756
|
+
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
3757
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3758
|
+
|
3759
|
+
header_params = {}
|
3760
|
+
if request.name
|
3761
|
+
header_params["name"] = request.name
|
3762
|
+
end
|
3763
|
+
|
3764
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3765
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
3766
|
+
|
3767
|
+
options.apply_defaults timeout: @config.rpcs.delete_sk_ad_network_conversion_value_schema.timeout,
|
3768
|
+
metadata: metadata,
|
3769
|
+
retry_policy: @config.rpcs.delete_sk_ad_network_conversion_value_schema.retry_policy
|
3770
|
+
|
3771
|
+
options.apply_defaults timeout: @config.timeout,
|
3772
|
+
metadata: @config.metadata,
|
3773
|
+
retry_policy: @config.retry_policy
|
3774
|
+
|
3775
|
+
@analytics_admin_service_stub.call_rpc :delete_sk_ad_network_conversion_value_schema, request, options: options do |response, operation|
|
3776
|
+
yield response, operation if block_given?
|
3777
|
+
return response
|
3778
|
+
end
|
3779
|
+
rescue ::GRPC::BadStatus => e
|
3780
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3781
|
+
end
|
3782
|
+
|
3783
|
+
##
|
3784
|
+
# Updates a SKAdNetworkConversionValueSchema.
|
3785
|
+
#
|
3786
|
+
# @overload update_sk_ad_network_conversion_value_schema(request, options = nil)
|
3787
|
+
# Pass arguments to `update_sk_ad_network_conversion_value_schema` via a request object, either of type
|
3788
|
+
# {::Google::Analytics::Admin::V1alpha::UpdateSKAdNetworkConversionValueSchemaRequest} or an equivalent Hash.
|
3789
|
+
#
|
3790
|
+
# @param request [::Google::Analytics::Admin::V1alpha::UpdateSKAdNetworkConversionValueSchemaRequest, ::Hash]
|
3791
|
+
# A request object representing the call parameters. Required. To specify no
|
3792
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3793
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3794
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
3795
|
+
#
|
3796
|
+
# @overload update_sk_ad_network_conversion_value_schema(skadnetwork_conversion_value_schema: nil, update_mask: nil)
|
3797
|
+
# Pass arguments to `update_sk_ad_network_conversion_value_schema` via keyword arguments. Note that at
|
3798
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3799
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3800
|
+
#
|
3801
|
+
# @param skadnetwork_conversion_value_schema [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema, ::Hash]
|
3802
|
+
# Required. SKAdNetwork conversion value schema to update.
|
3803
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
3804
|
+
# Required. The list of fields to be updated. Omitted fields will not be
|
3805
|
+
# updated.
|
3806
|
+
#
|
3807
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
3808
|
+
# @yieldparam response [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema]
|
3809
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
3810
|
+
#
|
3811
|
+
# @return [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema]
|
3812
|
+
#
|
3813
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3814
|
+
#
|
3815
|
+
# @example Basic example
|
3816
|
+
# require "google/analytics/admin/v1alpha"
|
3817
|
+
#
|
3818
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3819
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
3820
|
+
#
|
3821
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3822
|
+
# request = Google::Analytics::Admin::V1alpha::UpdateSKAdNetworkConversionValueSchemaRequest.new
|
3823
|
+
#
|
3824
|
+
# # Call the update_sk_ad_network_conversion_value_schema method.
|
3825
|
+
# result = client.update_sk_ad_network_conversion_value_schema request
|
3826
|
+
#
|
3827
|
+
# # The returned object is of type Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema.
|
3828
|
+
# p result
|
3829
|
+
#
|
3830
|
+
def update_sk_ad_network_conversion_value_schema request, options = nil
|
3831
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3832
|
+
|
3833
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateSKAdNetworkConversionValueSchemaRequest
|
3834
|
+
|
3835
|
+
# Converts hash and nil to an options object
|
3836
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3837
|
+
|
3838
|
+
# Customize the options with defaults
|
3839
|
+
metadata = @config.rpcs.update_sk_ad_network_conversion_value_schema.metadata.to_h
|
3840
|
+
|
3841
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
3842
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3843
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3844
|
+
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
3845
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3846
|
+
|
3847
|
+
header_params = {}
|
3848
|
+
if request.skadnetwork_conversion_value_schema&.name
|
3849
|
+
header_params["skadnetwork_conversion_value_schema.name"] = request.skadnetwork_conversion_value_schema.name
|
3850
|
+
end
|
3851
|
+
|
3852
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3853
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
3854
|
+
|
3855
|
+
options.apply_defaults timeout: @config.rpcs.update_sk_ad_network_conversion_value_schema.timeout,
|
3856
|
+
metadata: metadata,
|
3857
|
+
retry_policy: @config.rpcs.update_sk_ad_network_conversion_value_schema.retry_policy
|
3858
|
+
|
3859
|
+
options.apply_defaults timeout: @config.timeout,
|
3860
|
+
metadata: @config.metadata,
|
3861
|
+
retry_policy: @config.retry_policy
|
3862
|
+
|
3863
|
+
@analytics_admin_service_stub.call_rpc :update_sk_ad_network_conversion_value_schema, request, options: options do |response, operation|
|
3864
|
+
yield response, operation if block_given?
|
3865
|
+
return response
|
3866
|
+
end
|
3867
|
+
rescue ::GRPC::BadStatus => e
|
3868
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3869
|
+
end
|
3870
|
+
|
3871
|
+
##
|
3872
|
+
# Lists SKAdNetworkConversionValueSchema on a stream.
|
3873
|
+
# Properties can have at most one SKAdNetworkConversionValueSchema.
|
3874
|
+
#
|
3875
|
+
# @overload list_sk_ad_network_conversion_value_schemas(request, options = nil)
|
3876
|
+
# Pass arguments to `list_sk_ad_network_conversion_value_schemas` via a request object, either of type
|
3877
|
+
# {::Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasRequest} or an equivalent Hash.
|
3878
|
+
#
|
3879
|
+
# @param request [::Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasRequest, ::Hash]
|
3880
|
+
# A request object representing the call parameters. Required. To specify no
|
3881
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3882
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3883
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
3884
|
+
#
|
3885
|
+
# @overload list_sk_ad_network_conversion_value_schemas(parent: nil, page_size: nil, page_token: nil)
|
3886
|
+
# Pass arguments to `list_sk_ad_network_conversion_value_schemas` via keyword arguments. Note that at
|
3887
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3888
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3889
|
+
#
|
3890
|
+
# @param parent [::String]
|
3891
|
+
# Required. Format:
|
3892
|
+
# properties/\\{property_id}/dataStreams/\\{dataStream}/sKAdNetworkConversionValueSchema
|
3893
|
+
# Example: properties/1234/dataStreams/5678/sKAdNetworkConversionValueSchema
|
3894
|
+
# @param page_size [::Integer]
|
3895
|
+
# The maximum number of resources to return. The service may return
|
3896
|
+
# fewer than this value, even if there are additional pages.
|
3897
|
+
# If unspecified, at most 50 resources will be returned.
|
3898
|
+
# The maximum value is 200; (higher values will be coerced to the maximum)
|
3899
|
+
# @param page_token [::String]
|
3900
|
+
# A page token, received from a previous
|
3901
|
+
# `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the
|
3902
|
+
# subsequent page. When paginating, all other parameters provided to
|
3903
|
+
# `ListSKAdNetworkConversionValueSchema` must match the call that provided
|
3904
|
+
# the page token.
|
3905
|
+
#
|
3906
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
3907
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema>]
|
3908
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
3909
|
+
#
|
3910
|
+
# @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema>]
|
3911
|
+
#
|
3912
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3913
|
+
#
|
3914
|
+
# @example Basic example
|
3915
|
+
# require "google/analytics/admin/v1alpha"
|
3916
|
+
#
|
3917
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3918
|
+
# client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
|
3919
|
+
#
|
3920
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3921
|
+
# request = Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasRequest.new
|
3922
|
+
#
|
3923
|
+
# # Call the list_sk_ad_network_conversion_value_schemas method.
|
3924
|
+
# result = client.list_sk_ad_network_conversion_value_schemas request
|
3925
|
+
#
|
3926
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
3927
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
3928
|
+
# result.each do |item|
|
3929
|
+
# # Each element is of type ::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema.
|
3930
|
+
# p item
|
3931
|
+
# end
|
3932
|
+
#
|
3933
|
+
def list_sk_ad_network_conversion_value_schemas request, options = nil
|
3934
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3935
|
+
|
3936
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasRequest
|
3937
|
+
|
3938
|
+
# Converts hash and nil to an options object
|
3939
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3940
|
+
|
3941
|
+
# Customize the options with defaults
|
3942
|
+
metadata = @config.rpcs.list_sk_ad_network_conversion_value_schemas.metadata.to_h
|
3943
|
+
|
3944
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
3945
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3946
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3947
|
+
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
3948
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3949
|
+
|
3950
|
+
header_params = {}
|
3951
|
+
if request.parent
|
3952
|
+
header_params["parent"] = request.parent
|
3953
|
+
end
|
3954
|
+
|
3955
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3956
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
3957
|
+
|
3958
|
+
options.apply_defaults timeout: @config.rpcs.list_sk_ad_network_conversion_value_schemas.timeout,
|
3959
|
+
metadata: metadata,
|
3960
|
+
retry_policy: @config.rpcs.list_sk_ad_network_conversion_value_schemas.retry_policy
|
3961
|
+
|
3962
|
+
options.apply_defaults timeout: @config.timeout,
|
3963
|
+
metadata: @config.metadata,
|
3964
|
+
retry_policy: @config.retry_policy
|
3965
|
+
|
3966
|
+
@analytics_admin_service_stub.call_rpc :list_sk_ad_network_conversion_value_schemas, request, options: options do |response, operation|
|
3967
|
+
response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_sk_ad_network_conversion_value_schemas, request, response, operation, options
|
3968
|
+
yield response, operation if block_given?
|
3969
|
+
return response
|
3970
|
+
end
|
3971
|
+
rescue ::GRPC::BadStatus => e
|
3972
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3973
|
+
end
|
3974
|
+
|
3521
3975
|
##
|
3522
3976
|
# Searches through all changes to an account or its children given the
|
3523
3977
|
# specified set of filters.
|
@@ -11760,6 +12214,31 @@ module Google
|
|
11760
12214
|
#
|
11761
12215
|
attr_reader :acknowledge_user_data_collection
|
11762
12216
|
##
|
12217
|
+
# RPC-specific configuration for `get_sk_ad_network_conversion_value_schema`
|
12218
|
+
# @return [::Gapic::Config::Method]
|
12219
|
+
#
|
12220
|
+
attr_reader :get_sk_ad_network_conversion_value_schema
|
12221
|
+
##
|
12222
|
+
# RPC-specific configuration for `create_sk_ad_network_conversion_value_schema`
|
12223
|
+
# @return [::Gapic::Config::Method]
|
12224
|
+
#
|
12225
|
+
attr_reader :create_sk_ad_network_conversion_value_schema
|
12226
|
+
##
|
12227
|
+
# RPC-specific configuration for `delete_sk_ad_network_conversion_value_schema`
|
12228
|
+
# @return [::Gapic::Config::Method]
|
12229
|
+
#
|
12230
|
+
attr_reader :delete_sk_ad_network_conversion_value_schema
|
12231
|
+
##
|
12232
|
+
# RPC-specific configuration for `update_sk_ad_network_conversion_value_schema`
|
12233
|
+
# @return [::Gapic::Config::Method]
|
12234
|
+
#
|
12235
|
+
attr_reader :update_sk_ad_network_conversion_value_schema
|
12236
|
+
##
|
12237
|
+
# RPC-specific configuration for `list_sk_ad_network_conversion_value_schemas`
|
12238
|
+
# @return [::Gapic::Config::Method]
|
12239
|
+
#
|
12240
|
+
attr_reader :list_sk_ad_network_conversion_value_schemas
|
12241
|
+
##
|
11763
12242
|
# RPC-specific configuration for `search_change_history_events`
|
11764
12243
|
# @return [::Gapic::Config::Method]
|
11765
12244
|
#
|
@@ -12269,6 +12748,16 @@ module Google
|
|
12269
12748
|
@update_measurement_protocol_secret = ::Gapic::Config::Method.new update_measurement_protocol_secret_config
|
12270
12749
|
acknowledge_user_data_collection_config = parent_rpcs.acknowledge_user_data_collection if parent_rpcs.respond_to? :acknowledge_user_data_collection
|
12271
12750
|
@acknowledge_user_data_collection = ::Gapic::Config::Method.new acknowledge_user_data_collection_config
|
12751
|
+
get_sk_ad_network_conversion_value_schema_config = parent_rpcs.get_sk_ad_network_conversion_value_schema if parent_rpcs.respond_to? :get_sk_ad_network_conversion_value_schema
|
12752
|
+
@get_sk_ad_network_conversion_value_schema = ::Gapic::Config::Method.new get_sk_ad_network_conversion_value_schema_config
|
12753
|
+
create_sk_ad_network_conversion_value_schema_config = parent_rpcs.create_sk_ad_network_conversion_value_schema if parent_rpcs.respond_to? :create_sk_ad_network_conversion_value_schema
|
12754
|
+
@create_sk_ad_network_conversion_value_schema = ::Gapic::Config::Method.new create_sk_ad_network_conversion_value_schema_config
|
12755
|
+
delete_sk_ad_network_conversion_value_schema_config = parent_rpcs.delete_sk_ad_network_conversion_value_schema if parent_rpcs.respond_to? :delete_sk_ad_network_conversion_value_schema
|
12756
|
+
@delete_sk_ad_network_conversion_value_schema = ::Gapic::Config::Method.new delete_sk_ad_network_conversion_value_schema_config
|
12757
|
+
update_sk_ad_network_conversion_value_schema_config = parent_rpcs.update_sk_ad_network_conversion_value_schema if parent_rpcs.respond_to? :update_sk_ad_network_conversion_value_schema
|
12758
|
+
@update_sk_ad_network_conversion_value_schema = ::Gapic::Config::Method.new update_sk_ad_network_conversion_value_schema_config
|
12759
|
+
list_sk_ad_network_conversion_value_schemas_config = parent_rpcs.list_sk_ad_network_conversion_value_schemas if parent_rpcs.respond_to? :list_sk_ad_network_conversion_value_schemas
|
12760
|
+
@list_sk_ad_network_conversion_value_schemas = ::Gapic::Config::Method.new list_sk_ad_network_conversion_value_schemas_config
|
12272
12761
|
search_change_history_events_config = parent_rpcs.search_change_history_events if parent_rpcs.respond_to? :search_change_history_events
|
12273
12762
|
@search_change_history_events = ::Gapic::Config::Method.new search_change_history_events_config
|
12274
12763
|
get_google_signals_settings_config = parent_rpcs.get_google_signals_settings if parent_rpcs.respond_to? :get_google_signals_settings
|
@@ -440,6 +440,25 @@ module Google
|
|
440
440
|
"properties/#{property}"
|
441
441
|
end
|
442
442
|
|
443
|
+
##
|
444
|
+
# Create a fully-qualified SKAdNetworkConversionValueSchema resource string.
|
445
|
+
#
|
446
|
+
# The resource will be in the following format:
|
447
|
+
#
|
448
|
+
# `properties/{property}/dataStreams/{data_stream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}`
|
449
|
+
#
|
450
|
+
# @param property [String]
|
451
|
+
# @param data_stream [String]
|
452
|
+
# @param skadnetwork_conversion_value_schema [String]
|
453
|
+
#
|
454
|
+
# @return [::String]
|
455
|
+
def sk_ad_network_conversion_value_schema_path property:, data_stream:, skadnetwork_conversion_value_schema:
|
456
|
+
raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/"
|
457
|
+
raise ::ArgumentError, "data_stream cannot contain /" if data_stream.to_s.include? "/"
|
458
|
+
|
459
|
+
"properties/#{property}/dataStreams/#{data_stream}/sKAdNetworkConversionValueSchema/#{skadnetwork_conversion_value_schema}"
|
460
|
+
end
|
461
|
+
|
443
462
|
##
|
444
463
|
# Create a fully-qualified SearchAds360Link resource string.
|
445
464
|
#
|