google-analytics-admin-v1alpha 0.16.0 → 0.18.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/README.md +2 -2
- data/lib/google/analytics/admin/v1alpha/analytics_admin_pb.rb +68 -0
- data/lib/google/analytics/admin/v1alpha/analytics_admin_service/client.rb +1266 -210
- data/lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb +34 -0
- data/lib/google/analytics/admin/v1alpha/analytics_admin_service/rest/client.rb +848 -17
- data/lib/google/analytics/admin/v1alpha/analytics_admin_service/rest/service_stub.rb +682 -27
- data/lib/google/analytics/admin/v1alpha/analytics_admin_services_pb.rb +32 -0
- data/lib/google/analytics/admin/v1alpha/channel_group_pb.rb +74 -0
- data/lib/google/analytics/admin/v1alpha/resources_pb.rb +25 -0
- data/lib/google/analytics/admin/v1alpha/version.rb +1 -1
- data/proto_docs/google/analytics/admin/v1alpha/analytics_admin.rb +217 -11
- data/proto_docs/google/analytics/admin/v1alpha/channel_group.rb +158 -0
- data/proto_docs/google/analytics/admin/v1alpha/expanded_data_set.rb +2 -2
- data/proto_docs/google/analytics/admin/v1alpha/resources.rb +93 -6
- data/proto_docs/google/api/client.rb +67 -4
- metadata +4 -2
@@ -3764,24 +3764,404 @@ module Google
|
|
3764
3764
|
result
|
3765
3765
|
end
|
3766
3766
|
|
3767
|
+
##
|
3768
|
+
# Baseline implementation for the get_channel_group REST call
|
3769
|
+
#
|
3770
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::GetChannelGroupRequest]
|
3771
|
+
# A request object representing the call parameters. Required.
|
3772
|
+
# @param options [::Gapic::CallOptions]
|
3773
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3774
|
+
#
|
3775
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
3776
|
+
# @yieldparam result [::Google::Analytics::Admin::V1alpha::ChannelGroup]
|
3777
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3778
|
+
#
|
3779
|
+
# @return [::Google::Analytics::Admin::V1alpha::ChannelGroup]
|
3780
|
+
# A result object deserialized from the server's reply
|
3781
|
+
def get_channel_group request_pb, options = nil
|
3782
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
3783
|
+
|
3784
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_channel_group_request request_pb
|
3785
|
+
query_string_params = if query_string_params.any?
|
3786
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
3787
|
+
else
|
3788
|
+
{}
|
3789
|
+
end
|
3790
|
+
|
3791
|
+
response = @client_stub.make_http_request(
|
3792
|
+
verb,
|
3793
|
+
uri: uri,
|
3794
|
+
body: body || "",
|
3795
|
+
params: query_string_params,
|
3796
|
+
options: options
|
3797
|
+
)
|
3798
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
3799
|
+
result = ::Google::Analytics::Admin::V1alpha::ChannelGroup.decode_json response.body, ignore_unknown_fields: true
|
3800
|
+
|
3801
|
+
yield result, operation if block_given?
|
3802
|
+
result
|
3803
|
+
end
|
3804
|
+
|
3805
|
+
##
|
3806
|
+
# Baseline implementation for the list_channel_groups REST call
|
3807
|
+
#
|
3808
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::ListChannelGroupsRequest]
|
3809
|
+
# A request object representing the call parameters. Required.
|
3810
|
+
# @param options [::Gapic::CallOptions]
|
3811
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3812
|
+
#
|
3813
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
3814
|
+
# @yieldparam result [::Google::Analytics::Admin::V1alpha::ListChannelGroupsResponse]
|
3815
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3816
|
+
#
|
3817
|
+
# @return [::Google::Analytics::Admin::V1alpha::ListChannelGroupsResponse]
|
3818
|
+
# A result object deserialized from the server's reply
|
3819
|
+
def list_channel_groups request_pb, options = nil
|
3820
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
3821
|
+
|
3822
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_channel_groups_request request_pb
|
3823
|
+
query_string_params = if query_string_params.any?
|
3824
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
3825
|
+
else
|
3826
|
+
{}
|
3827
|
+
end
|
3828
|
+
|
3829
|
+
response = @client_stub.make_http_request(
|
3830
|
+
verb,
|
3831
|
+
uri: uri,
|
3832
|
+
body: body || "",
|
3833
|
+
params: query_string_params,
|
3834
|
+
options: options
|
3835
|
+
)
|
3836
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
3837
|
+
result = ::Google::Analytics::Admin::V1alpha::ListChannelGroupsResponse.decode_json response.body, ignore_unknown_fields: true
|
3838
|
+
|
3839
|
+
yield result, operation if block_given?
|
3840
|
+
result
|
3841
|
+
end
|
3842
|
+
|
3843
|
+
##
|
3844
|
+
# Baseline implementation for the create_channel_group REST call
|
3845
|
+
#
|
3846
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::CreateChannelGroupRequest]
|
3847
|
+
# A request object representing the call parameters. Required.
|
3848
|
+
# @param options [::Gapic::CallOptions]
|
3849
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3850
|
+
#
|
3851
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
3852
|
+
# @yieldparam result [::Google::Analytics::Admin::V1alpha::ChannelGroup]
|
3853
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3854
|
+
#
|
3855
|
+
# @return [::Google::Analytics::Admin::V1alpha::ChannelGroup]
|
3856
|
+
# A result object deserialized from the server's reply
|
3857
|
+
def create_channel_group request_pb, options = nil
|
3858
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
3859
|
+
|
3860
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_channel_group_request request_pb
|
3861
|
+
query_string_params = if query_string_params.any?
|
3862
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
3863
|
+
else
|
3864
|
+
{}
|
3865
|
+
end
|
3866
|
+
|
3867
|
+
response = @client_stub.make_http_request(
|
3868
|
+
verb,
|
3869
|
+
uri: uri,
|
3870
|
+
body: body || "",
|
3871
|
+
params: query_string_params,
|
3872
|
+
options: options
|
3873
|
+
)
|
3874
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
3875
|
+
result = ::Google::Analytics::Admin::V1alpha::ChannelGroup.decode_json response.body, ignore_unknown_fields: true
|
3876
|
+
|
3877
|
+
yield result, operation if block_given?
|
3878
|
+
result
|
3879
|
+
end
|
3880
|
+
|
3881
|
+
##
|
3882
|
+
# Baseline implementation for the update_channel_group REST call
|
3883
|
+
#
|
3884
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateChannelGroupRequest]
|
3885
|
+
# A request object representing the call parameters. Required.
|
3886
|
+
# @param options [::Gapic::CallOptions]
|
3887
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3888
|
+
#
|
3889
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
3890
|
+
# @yieldparam result [::Google::Analytics::Admin::V1alpha::ChannelGroup]
|
3891
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3892
|
+
#
|
3893
|
+
# @return [::Google::Analytics::Admin::V1alpha::ChannelGroup]
|
3894
|
+
# A result object deserialized from the server's reply
|
3895
|
+
def update_channel_group request_pb, options = nil
|
3896
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
3897
|
+
|
3898
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_channel_group_request request_pb
|
3899
|
+
query_string_params = if query_string_params.any?
|
3900
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
3901
|
+
else
|
3902
|
+
{}
|
3903
|
+
end
|
3904
|
+
|
3905
|
+
response = @client_stub.make_http_request(
|
3906
|
+
verb,
|
3907
|
+
uri: uri,
|
3908
|
+
body: body || "",
|
3909
|
+
params: query_string_params,
|
3910
|
+
options: options
|
3911
|
+
)
|
3912
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
3913
|
+
result = ::Google::Analytics::Admin::V1alpha::ChannelGroup.decode_json response.body, ignore_unknown_fields: true
|
3914
|
+
|
3915
|
+
yield result, operation if block_given?
|
3916
|
+
result
|
3917
|
+
end
|
3918
|
+
|
3919
|
+
##
|
3920
|
+
# Baseline implementation for the delete_channel_group REST call
|
3921
|
+
#
|
3922
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteChannelGroupRequest]
|
3923
|
+
# A request object representing the call parameters. Required.
|
3924
|
+
# @param options [::Gapic::CallOptions]
|
3925
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3926
|
+
#
|
3927
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
3928
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
3929
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3930
|
+
#
|
3931
|
+
# @return [::Google::Protobuf::Empty]
|
3932
|
+
# A result object deserialized from the server's reply
|
3933
|
+
def delete_channel_group request_pb, options = nil
|
3934
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
3935
|
+
|
3936
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_channel_group_request request_pb
|
3937
|
+
query_string_params = if query_string_params.any?
|
3938
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
3939
|
+
else
|
3940
|
+
{}
|
3941
|
+
end
|
3942
|
+
|
3943
|
+
response = @client_stub.make_http_request(
|
3944
|
+
verb,
|
3945
|
+
uri: uri,
|
3946
|
+
body: body || "",
|
3947
|
+
params: query_string_params,
|
3948
|
+
options: options
|
3949
|
+
)
|
3950
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
3951
|
+
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
3952
|
+
|
3953
|
+
yield result, operation if block_given?
|
3954
|
+
result
|
3955
|
+
end
|
3956
|
+
|
3767
3957
|
##
|
3768
3958
|
# Baseline implementation for the set_automated_ga4_configuration_opt_out REST call
|
3769
3959
|
#
|
3770
|
-
# @param request_pb [::Google::Analytics::Admin::V1alpha::SetAutomatedGa4ConfigurationOptOutRequest]
|
3960
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::SetAutomatedGa4ConfigurationOptOutRequest]
|
3961
|
+
# A request object representing the call parameters. Required.
|
3962
|
+
# @param options [::Gapic::CallOptions]
|
3963
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3964
|
+
#
|
3965
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
3966
|
+
# @yieldparam result [::Google::Analytics::Admin::V1alpha::SetAutomatedGa4ConfigurationOptOutResponse]
|
3967
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3968
|
+
#
|
3969
|
+
# @return [::Google::Analytics::Admin::V1alpha::SetAutomatedGa4ConfigurationOptOutResponse]
|
3970
|
+
# A result object deserialized from the server's reply
|
3971
|
+
def set_automated_ga4_configuration_opt_out request_pb, options = nil
|
3972
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
3973
|
+
|
3974
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_set_automated_ga4_configuration_opt_out_request request_pb
|
3975
|
+
query_string_params = if query_string_params.any?
|
3976
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
3977
|
+
else
|
3978
|
+
{}
|
3979
|
+
end
|
3980
|
+
|
3981
|
+
response = @client_stub.make_http_request(
|
3982
|
+
verb,
|
3983
|
+
uri: uri,
|
3984
|
+
body: body || "",
|
3985
|
+
params: query_string_params,
|
3986
|
+
options: options
|
3987
|
+
)
|
3988
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
3989
|
+
result = ::Google::Analytics::Admin::V1alpha::SetAutomatedGa4ConfigurationOptOutResponse.decode_json response.body, ignore_unknown_fields: true
|
3990
|
+
|
3991
|
+
yield result, operation if block_given?
|
3992
|
+
result
|
3993
|
+
end
|
3994
|
+
|
3995
|
+
##
|
3996
|
+
# Baseline implementation for the fetch_automated_ga4_configuration_opt_out REST call
|
3997
|
+
#
|
3998
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutRequest]
|
3999
|
+
# A request object representing the call parameters. Required.
|
4000
|
+
# @param options [::Gapic::CallOptions]
|
4001
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
4002
|
+
#
|
4003
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
4004
|
+
# @yieldparam result [::Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutResponse]
|
4005
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
4006
|
+
#
|
4007
|
+
# @return [::Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutResponse]
|
4008
|
+
# A result object deserialized from the server's reply
|
4009
|
+
def fetch_automated_ga4_configuration_opt_out request_pb, options = nil
|
4010
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
4011
|
+
|
4012
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_fetch_automated_ga4_configuration_opt_out_request request_pb
|
4013
|
+
query_string_params = if query_string_params.any?
|
4014
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
4015
|
+
else
|
4016
|
+
{}
|
4017
|
+
end
|
4018
|
+
|
4019
|
+
response = @client_stub.make_http_request(
|
4020
|
+
verb,
|
4021
|
+
uri: uri,
|
4022
|
+
body: body || "",
|
4023
|
+
params: query_string_params,
|
4024
|
+
options: options
|
4025
|
+
)
|
4026
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
4027
|
+
result = ::Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutResponse.decode_json response.body, ignore_unknown_fields: true
|
4028
|
+
|
4029
|
+
yield result, operation if block_given?
|
4030
|
+
result
|
4031
|
+
end
|
4032
|
+
|
4033
|
+
##
|
4034
|
+
# Baseline implementation for the get_big_query_link REST call
|
4035
|
+
#
|
4036
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest]
|
4037
|
+
# A request object representing the call parameters. Required.
|
4038
|
+
# @param options [::Gapic::CallOptions]
|
4039
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
4040
|
+
#
|
4041
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
4042
|
+
# @yieldparam result [::Google::Analytics::Admin::V1alpha::BigQueryLink]
|
4043
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
4044
|
+
#
|
4045
|
+
# @return [::Google::Analytics::Admin::V1alpha::BigQueryLink]
|
4046
|
+
# A result object deserialized from the server's reply
|
4047
|
+
def get_big_query_link request_pb, options = nil
|
4048
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
4049
|
+
|
4050
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_big_query_link_request request_pb
|
4051
|
+
query_string_params = if query_string_params.any?
|
4052
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
4053
|
+
else
|
4054
|
+
{}
|
4055
|
+
end
|
4056
|
+
|
4057
|
+
response = @client_stub.make_http_request(
|
4058
|
+
verb,
|
4059
|
+
uri: uri,
|
4060
|
+
body: body || "",
|
4061
|
+
params: query_string_params,
|
4062
|
+
options: options
|
4063
|
+
)
|
4064
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
4065
|
+
result = ::Google::Analytics::Admin::V1alpha::BigQueryLink.decode_json response.body, ignore_unknown_fields: true
|
4066
|
+
|
4067
|
+
yield result, operation if block_given?
|
4068
|
+
result
|
4069
|
+
end
|
4070
|
+
|
4071
|
+
##
|
4072
|
+
# Baseline implementation for the list_big_query_links REST call
|
4073
|
+
#
|
4074
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest]
|
4075
|
+
# A request object representing the call parameters. Required.
|
4076
|
+
# @param options [::Gapic::CallOptions]
|
4077
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
4078
|
+
#
|
4079
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
4080
|
+
# @yieldparam result [::Google::Analytics::Admin::V1alpha::ListBigQueryLinksResponse]
|
4081
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
4082
|
+
#
|
4083
|
+
# @return [::Google::Analytics::Admin::V1alpha::ListBigQueryLinksResponse]
|
4084
|
+
# A result object deserialized from the server's reply
|
4085
|
+
def list_big_query_links request_pb, options = nil
|
4086
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
4087
|
+
|
4088
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_big_query_links_request request_pb
|
4089
|
+
query_string_params = if query_string_params.any?
|
4090
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
4091
|
+
else
|
4092
|
+
{}
|
4093
|
+
end
|
4094
|
+
|
4095
|
+
response = @client_stub.make_http_request(
|
4096
|
+
verb,
|
4097
|
+
uri: uri,
|
4098
|
+
body: body || "",
|
4099
|
+
params: query_string_params,
|
4100
|
+
options: options
|
4101
|
+
)
|
4102
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
4103
|
+
result = ::Google::Analytics::Admin::V1alpha::ListBigQueryLinksResponse.decode_json response.body, ignore_unknown_fields: true
|
4104
|
+
|
4105
|
+
yield result, operation if block_given?
|
4106
|
+
result
|
4107
|
+
end
|
4108
|
+
|
4109
|
+
##
|
4110
|
+
# Baseline implementation for the get_enhanced_measurement_settings REST call
|
4111
|
+
#
|
4112
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest]
|
4113
|
+
# A request object representing the call parameters. Required.
|
4114
|
+
# @param options [::Gapic::CallOptions]
|
4115
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
4116
|
+
#
|
4117
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
4118
|
+
# @yieldparam result [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings]
|
4119
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
4120
|
+
#
|
4121
|
+
# @return [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings]
|
4122
|
+
# A result object deserialized from the server's reply
|
4123
|
+
def get_enhanced_measurement_settings request_pb, options = nil
|
4124
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
4125
|
+
|
4126
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_enhanced_measurement_settings_request request_pb
|
4127
|
+
query_string_params = if query_string_params.any?
|
4128
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
4129
|
+
else
|
4130
|
+
{}
|
4131
|
+
end
|
4132
|
+
|
4133
|
+
response = @client_stub.make_http_request(
|
4134
|
+
verb,
|
4135
|
+
uri: uri,
|
4136
|
+
body: body || "",
|
4137
|
+
params: query_string_params,
|
4138
|
+
options: options
|
4139
|
+
)
|
4140
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
4141
|
+
result = ::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings.decode_json response.body, ignore_unknown_fields: true
|
4142
|
+
|
4143
|
+
yield result, operation if block_given?
|
4144
|
+
result
|
4145
|
+
end
|
4146
|
+
|
4147
|
+
##
|
4148
|
+
# Baseline implementation for the update_enhanced_measurement_settings REST call
|
4149
|
+
#
|
4150
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest]
|
3771
4151
|
# A request object representing the call parameters. Required.
|
3772
4152
|
# @param options [::Gapic::CallOptions]
|
3773
4153
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3774
4154
|
#
|
3775
4155
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
3776
|
-
# @yieldparam result [::Google::Analytics::Admin::V1alpha::
|
4156
|
+
# @yieldparam result [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings]
|
3777
4157
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3778
4158
|
#
|
3779
|
-
# @return [::Google::Analytics::Admin::V1alpha::
|
4159
|
+
# @return [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings]
|
3780
4160
|
# A result object deserialized from the server's reply
|
3781
|
-
def
|
4161
|
+
def update_enhanced_measurement_settings request_pb, options = nil
|
3782
4162
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
3783
4163
|
|
3784
|
-
verb, uri, query_string_params, body = ServiceStub.
|
4164
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_enhanced_measurement_settings_request request_pb
|
3785
4165
|
query_string_params = if query_string_params.any?
|
3786
4166
|
query_string_params.to_h { |p| p.split("=", 2) }
|
3787
4167
|
else
|
@@ -3796,30 +4176,30 @@ module Google
|
|
3796
4176
|
options: options
|
3797
4177
|
)
|
3798
4178
|
operation = ::Gapic::Rest::TransportOperation.new response
|
3799
|
-
result = ::Google::Analytics::Admin::V1alpha::
|
4179
|
+
result = ::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings.decode_json response.body, ignore_unknown_fields: true
|
3800
4180
|
|
3801
4181
|
yield result, operation if block_given?
|
3802
4182
|
result
|
3803
4183
|
end
|
3804
4184
|
|
3805
4185
|
##
|
3806
|
-
# Baseline implementation for the
|
4186
|
+
# Baseline implementation for the create_connected_site_tag REST call
|
3807
4187
|
#
|
3808
|
-
# @param request_pb [::Google::Analytics::Admin::V1alpha::
|
4188
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::CreateConnectedSiteTagRequest]
|
3809
4189
|
# A request object representing the call parameters. Required.
|
3810
4190
|
# @param options [::Gapic::CallOptions]
|
3811
4191
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3812
4192
|
#
|
3813
4193
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
3814
|
-
# @yieldparam result [::Google::Analytics::Admin::V1alpha::
|
4194
|
+
# @yieldparam result [::Google::Analytics::Admin::V1alpha::CreateConnectedSiteTagResponse]
|
3815
4195
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3816
4196
|
#
|
3817
|
-
# @return [::Google::Analytics::Admin::V1alpha::
|
4197
|
+
# @return [::Google::Analytics::Admin::V1alpha::CreateConnectedSiteTagResponse]
|
3818
4198
|
# A result object deserialized from the server's reply
|
3819
|
-
def
|
4199
|
+
def create_connected_site_tag request_pb, options = nil
|
3820
4200
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
3821
4201
|
|
3822
|
-
verb, uri, query_string_params, body = ServiceStub.
|
4202
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_connected_site_tag_request request_pb
|
3823
4203
|
query_string_params = if query_string_params.any?
|
3824
4204
|
query_string_params.to_h { |p| p.split("=", 2) }
|
3825
4205
|
else
|
@@ -3834,30 +4214,30 @@ module Google
|
|
3834
4214
|
options: options
|
3835
4215
|
)
|
3836
4216
|
operation = ::Gapic::Rest::TransportOperation.new response
|
3837
|
-
result = ::Google::Analytics::Admin::V1alpha::
|
4217
|
+
result = ::Google::Analytics::Admin::V1alpha::CreateConnectedSiteTagResponse.decode_json response.body, ignore_unknown_fields: true
|
3838
4218
|
|
3839
4219
|
yield result, operation if block_given?
|
3840
4220
|
result
|
3841
4221
|
end
|
3842
4222
|
|
3843
4223
|
##
|
3844
|
-
# Baseline implementation for the
|
4224
|
+
# Baseline implementation for the delete_connected_site_tag REST call
|
3845
4225
|
#
|
3846
|
-
# @param request_pb [::Google::Analytics::Admin::V1alpha::
|
4226
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteConnectedSiteTagRequest]
|
3847
4227
|
# A request object representing the call parameters. Required.
|
3848
4228
|
# @param options [::Gapic::CallOptions]
|
3849
4229
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3850
4230
|
#
|
3851
4231
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
3852
|
-
# @yieldparam result [::Google::
|
4232
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
3853
4233
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3854
4234
|
#
|
3855
|
-
# @return [::Google::
|
4235
|
+
# @return [::Google::Protobuf::Empty]
|
3856
4236
|
# A result object deserialized from the server's reply
|
3857
|
-
def
|
4237
|
+
def delete_connected_site_tag request_pb, options = nil
|
3858
4238
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
3859
4239
|
|
3860
|
-
verb, uri, query_string_params, body = ServiceStub.
|
4240
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_connected_site_tag_request request_pb
|
3861
4241
|
query_string_params = if query_string_params.any?
|
3862
4242
|
query_string_params.to_h { |p| p.split("=", 2) }
|
3863
4243
|
else
|
@@ -3872,30 +4252,30 @@ module Google
|
|
3872
4252
|
options: options
|
3873
4253
|
)
|
3874
4254
|
operation = ::Gapic::Rest::TransportOperation.new response
|
3875
|
-
result = ::Google::
|
4255
|
+
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
3876
4256
|
|
3877
4257
|
yield result, operation if block_given?
|
3878
4258
|
result
|
3879
4259
|
end
|
3880
4260
|
|
3881
4261
|
##
|
3882
|
-
# Baseline implementation for the
|
4262
|
+
# Baseline implementation for the list_connected_site_tags REST call
|
3883
4263
|
#
|
3884
|
-
# @param request_pb [::Google::Analytics::Admin::V1alpha::
|
4264
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::ListConnectedSiteTagsRequest]
|
3885
4265
|
# A request object representing the call parameters. Required.
|
3886
4266
|
# @param options [::Gapic::CallOptions]
|
3887
4267
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3888
4268
|
#
|
3889
4269
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
3890
|
-
# @yieldparam result [::Google::Analytics::Admin::V1alpha::
|
4270
|
+
# @yieldparam result [::Google::Analytics::Admin::V1alpha::ListConnectedSiteTagsResponse]
|
3891
4271
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3892
4272
|
#
|
3893
|
-
# @return [::Google::Analytics::Admin::V1alpha::
|
4273
|
+
# @return [::Google::Analytics::Admin::V1alpha::ListConnectedSiteTagsResponse]
|
3894
4274
|
# A result object deserialized from the server's reply
|
3895
|
-
def
|
4275
|
+
def list_connected_site_tags request_pb, options = nil
|
3896
4276
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
3897
4277
|
|
3898
|
-
verb, uri, query_string_params, body = ServiceStub.
|
4278
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_connected_site_tags_request request_pb
|
3899
4279
|
query_string_params = if query_string_params.any?
|
3900
4280
|
query_string_params.to_h { |p| p.split("=", 2) }
|
3901
4281
|
else
|
@@ -3910,7 +4290,45 @@ module Google
|
|
3910
4290
|
options: options
|
3911
4291
|
)
|
3912
4292
|
operation = ::Gapic::Rest::TransportOperation.new response
|
3913
|
-
result = ::Google::Analytics::Admin::V1alpha::
|
4293
|
+
result = ::Google::Analytics::Admin::V1alpha::ListConnectedSiteTagsResponse.decode_json response.body, ignore_unknown_fields: true
|
4294
|
+
|
4295
|
+
yield result, operation if block_given?
|
4296
|
+
result
|
4297
|
+
end
|
4298
|
+
|
4299
|
+
##
|
4300
|
+
# Baseline implementation for the fetch_connected_ga4_property REST call
|
4301
|
+
#
|
4302
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::FetchConnectedGa4PropertyRequest]
|
4303
|
+
# A request object representing the call parameters. Required.
|
4304
|
+
# @param options [::Gapic::CallOptions]
|
4305
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
4306
|
+
#
|
4307
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
4308
|
+
# @yieldparam result [::Google::Analytics::Admin::V1alpha::FetchConnectedGa4PropertyResponse]
|
4309
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
4310
|
+
#
|
4311
|
+
# @return [::Google::Analytics::Admin::V1alpha::FetchConnectedGa4PropertyResponse]
|
4312
|
+
# A result object deserialized from the server's reply
|
4313
|
+
def fetch_connected_ga4_property request_pb, options = nil
|
4314
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
4315
|
+
|
4316
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_fetch_connected_ga4_property_request request_pb
|
4317
|
+
query_string_params = if query_string_params.any?
|
4318
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
4319
|
+
else
|
4320
|
+
{}
|
4321
|
+
end
|
4322
|
+
|
4323
|
+
response = @client_stub.make_http_request(
|
4324
|
+
verb,
|
4325
|
+
uri: uri,
|
4326
|
+
body: body || "",
|
4327
|
+
params: query_string_params,
|
4328
|
+
options: options
|
4329
|
+
)
|
4330
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
4331
|
+
result = ::Google::Analytics::Admin::V1alpha::FetchConnectedGa4PropertyResponse.decode_json response.body, ignore_unknown_fields: true
|
3914
4332
|
|
3915
4333
|
yield result, operation if block_given?
|
3916
4334
|
result
|
@@ -5783,6 +6201,14 @@ module Google
|
|
5783
6201
|
["entity", %r{^properties/[^/]+/?$}, false]
|
5784
6202
|
]
|
5785
6203
|
)
|
6204
|
+
.with_bindings(
|
6205
|
+
uri_method: :post,
|
6206
|
+
uri_template: "/v1alpha/{entity}:runAccessReport",
|
6207
|
+
body: "*",
|
6208
|
+
matches: [
|
6209
|
+
["entity", %r{^accounts/[^/]+/?$}, false]
|
6210
|
+
]
|
6211
|
+
)
|
5786
6212
|
transcoder.transcode request_pb
|
5787
6213
|
end
|
5788
6214
|
|
@@ -6155,6 +6581,113 @@ module Google
|
|
6155
6581
|
transcoder.transcode request_pb
|
6156
6582
|
end
|
6157
6583
|
|
6584
|
+
##
|
6585
|
+
# @private
|
6586
|
+
#
|
6587
|
+
# GRPC transcoding helper method for the get_channel_group REST call
|
6588
|
+
#
|
6589
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::GetChannelGroupRequest]
|
6590
|
+
# A request object representing the call parameters. Required.
|
6591
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
6592
|
+
# Uri, Body, Query string parameters
|
6593
|
+
def self.transcode_get_channel_group_request request_pb
|
6594
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
6595
|
+
.with_bindings(
|
6596
|
+
uri_method: :get,
|
6597
|
+
uri_template: "/v1alpha/{name}",
|
6598
|
+
matches: [
|
6599
|
+
["name", %r{^properties/[^/]+/channelGroups/[^/]+/?$}, false]
|
6600
|
+
]
|
6601
|
+
)
|
6602
|
+
transcoder.transcode request_pb
|
6603
|
+
end
|
6604
|
+
|
6605
|
+
##
|
6606
|
+
# @private
|
6607
|
+
#
|
6608
|
+
# GRPC transcoding helper method for the list_channel_groups REST call
|
6609
|
+
#
|
6610
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::ListChannelGroupsRequest]
|
6611
|
+
# A request object representing the call parameters. Required.
|
6612
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
6613
|
+
# Uri, Body, Query string parameters
|
6614
|
+
def self.transcode_list_channel_groups_request request_pb
|
6615
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
6616
|
+
.with_bindings(
|
6617
|
+
uri_method: :get,
|
6618
|
+
uri_template: "/v1alpha/{parent}/channelGroups",
|
6619
|
+
matches: [
|
6620
|
+
["parent", %r{^properties/[^/]+/?$}, false]
|
6621
|
+
]
|
6622
|
+
)
|
6623
|
+
transcoder.transcode request_pb
|
6624
|
+
end
|
6625
|
+
|
6626
|
+
##
|
6627
|
+
# @private
|
6628
|
+
#
|
6629
|
+
# GRPC transcoding helper method for the create_channel_group REST call
|
6630
|
+
#
|
6631
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::CreateChannelGroupRequest]
|
6632
|
+
# A request object representing the call parameters. Required.
|
6633
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
6634
|
+
# Uri, Body, Query string parameters
|
6635
|
+
def self.transcode_create_channel_group_request request_pb
|
6636
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
6637
|
+
.with_bindings(
|
6638
|
+
uri_method: :post,
|
6639
|
+
uri_template: "/v1alpha/{parent}/channelGroups",
|
6640
|
+
body: "channel_group",
|
6641
|
+
matches: [
|
6642
|
+
["parent", %r{^properties/[^/]+/?$}, false]
|
6643
|
+
]
|
6644
|
+
)
|
6645
|
+
transcoder.transcode request_pb
|
6646
|
+
end
|
6647
|
+
|
6648
|
+
##
|
6649
|
+
# @private
|
6650
|
+
#
|
6651
|
+
# GRPC transcoding helper method for the update_channel_group REST call
|
6652
|
+
#
|
6653
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateChannelGroupRequest]
|
6654
|
+
# A request object representing the call parameters. Required.
|
6655
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
6656
|
+
# Uri, Body, Query string parameters
|
6657
|
+
def self.transcode_update_channel_group_request request_pb
|
6658
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
6659
|
+
.with_bindings(
|
6660
|
+
uri_method: :patch,
|
6661
|
+
uri_template: "/v1alpha/{channel_group.name}",
|
6662
|
+
body: "channel_group",
|
6663
|
+
matches: [
|
6664
|
+
["channel_group.name", %r{^properties/[^/]+/channelGroups/[^/]+/?$}, false]
|
6665
|
+
]
|
6666
|
+
)
|
6667
|
+
transcoder.transcode request_pb
|
6668
|
+
end
|
6669
|
+
|
6670
|
+
##
|
6671
|
+
# @private
|
6672
|
+
#
|
6673
|
+
# GRPC transcoding helper method for the delete_channel_group REST call
|
6674
|
+
#
|
6675
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteChannelGroupRequest]
|
6676
|
+
# A request object representing the call parameters. Required.
|
6677
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
6678
|
+
# Uri, Body, Query string parameters
|
6679
|
+
def self.transcode_delete_channel_group_request request_pb
|
6680
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
6681
|
+
.with_bindings(
|
6682
|
+
uri_method: :delete,
|
6683
|
+
uri_template: "/v1alpha/{name}",
|
6684
|
+
matches: [
|
6685
|
+
["name", %r{^properties/[^/]+/channelGroups/[^/]+/?$}, false]
|
6686
|
+
]
|
6687
|
+
)
|
6688
|
+
transcoder.transcode request_pb
|
6689
|
+
end
|
6690
|
+
|
6158
6691
|
##
|
6159
6692
|
# @private
|
6160
6693
|
#
|
@@ -6236,6 +6769,128 @@ module Google
|
|
6236
6769
|
)
|
6237
6770
|
transcoder.transcode request_pb
|
6238
6771
|
end
|
6772
|
+
|
6773
|
+
##
|
6774
|
+
# @private
|
6775
|
+
#
|
6776
|
+
# GRPC transcoding helper method for the get_enhanced_measurement_settings REST call
|
6777
|
+
#
|
6778
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest]
|
6779
|
+
# A request object representing the call parameters. Required.
|
6780
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
6781
|
+
# Uri, Body, Query string parameters
|
6782
|
+
def self.transcode_get_enhanced_measurement_settings_request request_pb
|
6783
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
6784
|
+
.with_bindings(
|
6785
|
+
uri_method: :get,
|
6786
|
+
uri_template: "/v1alpha/{name}",
|
6787
|
+
matches: [
|
6788
|
+
["name", %r{^properties/[^/]+/dataStreams/[^/]+/enhancedMeasurementSettings/?$}, false]
|
6789
|
+
]
|
6790
|
+
)
|
6791
|
+
transcoder.transcode request_pb
|
6792
|
+
end
|
6793
|
+
|
6794
|
+
##
|
6795
|
+
# @private
|
6796
|
+
#
|
6797
|
+
# GRPC transcoding helper method for the update_enhanced_measurement_settings REST call
|
6798
|
+
#
|
6799
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest]
|
6800
|
+
# A request object representing the call parameters. Required.
|
6801
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
6802
|
+
# Uri, Body, Query string parameters
|
6803
|
+
def self.transcode_update_enhanced_measurement_settings_request request_pb
|
6804
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
6805
|
+
.with_bindings(
|
6806
|
+
uri_method: :patch,
|
6807
|
+
uri_template: "/v1alpha/{enhanced_measurement_settings.name}",
|
6808
|
+
body: "enhanced_measurement_settings",
|
6809
|
+
matches: [
|
6810
|
+
["enhanced_measurement_settings.name", %r{^properties/[^/]+/dataStreams/[^/]+/enhancedMeasurementSettings/?$}, false]
|
6811
|
+
]
|
6812
|
+
)
|
6813
|
+
transcoder.transcode request_pb
|
6814
|
+
end
|
6815
|
+
|
6816
|
+
##
|
6817
|
+
# @private
|
6818
|
+
#
|
6819
|
+
# GRPC transcoding helper method for the create_connected_site_tag REST call
|
6820
|
+
#
|
6821
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::CreateConnectedSiteTagRequest]
|
6822
|
+
# A request object representing the call parameters. Required.
|
6823
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
6824
|
+
# Uri, Body, Query string parameters
|
6825
|
+
def self.transcode_create_connected_site_tag_request request_pb
|
6826
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
6827
|
+
.with_bindings(
|
6828
|
+
uri_method: :post,
|
6829
|
+
uri_template: "/v1alpha/properties:createConnectedSiteTag",
|
6830
|
+
body: "*",
|
6831
|
+
matches: []
|
6832
|
+
)
|
6833
|
+
transcoder.transcode request_pb
|
6834
|
+
end
|
6835
|
+
|
6836
|
+
##
|
6837
|
+
# @private
|
6838
|
+
#
|
6839
|
+
# GRPC transcoding helper method for the delete_connected_site_tag REST call
|
6840
|
+
#
|
6841
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteConnectedSiteTagRequest]
|
6842
|
+
# A request object representing the call parameters. Required.
|
6843
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
6844
|
+
# Uri, Body, Query string parameters
|
6845
|
+
def self.transcode_delete_connected_site_tag_request request_pb
|
6846
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
6847
|
+
.with_bindings(
|
6848
|
+
uri_method: :post,
|
6849
|
+
uri_template: "/v1alpha/properties:deleteConnectedSiteTag",
|
6850
|
+
body: "*",
|
6851
|
+
matches: []
|
6852
|
+
)
|
6853
|
+
transcoder.transcode request_pb
|
6854
|
+
end
|
6855
|
+
|
6856
|
+
##
|
6857
|
+
# @private
|
6858
|
+
#
|
6859
|
+
# GRPC transcoding helper method for the list_connected_site_tags REST call
|
6860
|
+
#
|
6861
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::ListConnectedSiteTagsRequest]
|
6862
|
+
# A request object representing the call parameters. Required.
|
6863
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
6864
|
+
# Uri, Body, Query string parameters
|
6865
|
+
def self.transcode_list_connected_site_tags_request request_pb
|
6866
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
6867
|
+
.with_bindings(
|
6868
|
+
uri_method: :post,
|
6869
|
+
uri_template: "/v1alpha/properties:listConnectedSiteTags",
|
6870
|
+
body: "*",
|
6871
|
+
matches: []
|
6872
|
+
)
|
6873
|
+
transcoder.transcode request_pb
|
6874
|
+
end
|
6875
|
+
|
6876
|
+
##
|
6877
|
+
# @private
|
6878
|
+
#
|
6879
|
+
# GRPC transcoding helper method for the fetch_connected_ga4_property REST call
|
6880
|
+
#
|
6881
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::FetchConnectedGa4PropertyRequest]
|
6882
|
+
# A request object representing the call parameters. Required.
|
6883
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
6884
|
+
# Uri, Body, Query string parameters
|
6885
|
+
def self.transcode_fetch_connected_ga4_property_request request_pb
|
6886
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
6887
|
+
.with_bindings(
|
6888
|
+
uri_method: :get,
|
6889
|
+
uri_template: "/v1alpha/properties:fetchConnectedGa4Property",
|
6890
|
+
matches: []
|
6891
|
+
)
|
6892
|
+
transcoder.transcode request_pb
|
6893
|
+
end
|
6239
6894
|
end
|
6240
6895
|
end
|
6241
6896
|
end
|