google-analytics-admin-v1alpha 0.17.0 → 0.19.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 +92 -0
- data/lib/google/analytics/admin/v1alpha/analytics_admin_service/client.rb +1698 -242
- data/lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb +53 -0
- data/lib/google/analytics/admin/v1alpha/analytics_admin_service/rest/client.rb +1294 -187
- data/lib/google/analytics/admin/v1alpha/analytics_admin_service/rest/service_stub.rb +891 -3
- data/lib/google/analytics/admin/v1alpha/analytics_admin_services_pb.rb +31 -0
- data/lib/google/analytics/admin/v1alpha/channel_group_pb.rb +74 -0
- data/lib/google/analytics/admin/v1alpha/event_create_and_edit_pb.rb +59 -0
- data/lib/google/analytics/admin/v1alpha/resources_pb.rb +16 -0
- data/lib/google/analytics/admin/v1alpha/version.rb +1 -1
- data/proto_docs/google/analytics/admin/v1alpha/analytics_admin.rb +268 -1
- data/proto_docs/google/analytics/admin/v1alpha/audience.rb +15 -10
- data/proto_docs/google/analytics/admin/v1alpha/channel_group.rb +158 -0
- data/proto_docs/google/analytics/admin/v1alpha/event_create_and_edit.rb +167 -0
- data/proto_docs/google/analytics/admin/v1alpha/expanded_data_set.rb +2 -2
- data/proto_docs/google/analytics/admin/v1alpha/resources.rb +42 -0
- data/proto_docs/google/api/client.rb +58 -1
- metadata +6 -2
@@ -3764,6 +3764,196 @@ 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
|
#
|
@@ -4082,10 +4272,390 @@ module Google
|
|
4082
4272
|
#
|
4083
4273
|
# @return [::Google::Analytics::Admin::V1alpha::ListConnectedSiteTagsResponse]
|
4084
4274
|
# A result object deserialized from the server's reply
|
4085
|
-
def list_connected_site_tags request_pb, options = nil
|
4275
|
+
def list_connected_site_tags request_pb, options = nil
|
4276
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
4277
|
+
|
4278
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_connected_site_tags_request request_pb
|
4279
|
+
query_string_params = if query_string_params.any?
|
4280
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
4281
|
+
else
|
4282
|
+
{}
|
4283
|
+
end
|
4284
|
+
|
4285
|
+
response = @client_stub.make_http_request(
|
4286
|
+
verb,
|
4287
|
+
uri: uri,
|
4288
|
+
body: body || "",
|
4289
|
+
params: query_string_params,
|
4290
|
+
options: options
|
4291
|
+
)
|
4292
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
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
|
4332
|
+
|
4333
|
+
yield result, operation if block_given?
|
4334
|
+
result
|
4335
|
+
end
|
4336
|
+
|
4337
|
+
##
|
4338
|
+
# Baseline implementation for the get_ad_sense_link REST call
|
4339
|
+
#
|
4340
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::GetAdSenseLinkRequest]
|
4341
|
+
# A request object representing the call parameters. Required.
|
4342
|
+
# @param options [::Gapic::CallOptions]
|
4343
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
4344
|
+
#
|
4345
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
4346
|
+
# @yieldparam result [::Google::Analytics::Admin::V1alpha::AdSenseLink]
|
4347
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
4348
|
+
#
|
4349
|
+
# @return [::Google::Analytics::Admin::V1alpha::AdSenseLink]
|
4350
|
+
# A result object deserialized from the server's reply
|
4351
|
+
def get_ad_sense_link request_pb, options = nil
|
4352
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
4353
|
+
|
4354
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_ad_sense_link_request request_pb
|
4355
|
+
query_string_params = if query_string_params.any?
|
4356
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
4357
|
+
else
|
4358
|
+
{}
|
4359
|
+
end
|
4360
|
+
|
4361
|
+
response = @client_stub.make_http_request(
|
4362
|
+
verb,
|
4363
|
+
uri: uri,
|
4364
|
+
body: body || "",
|
4365
|
+
params: query_string_params,
|
4366
|
+
options: options
|
4367
|
+
)
|
4368
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
4369
|
+
result = ::Google::Analytics::Admin::V1alpha::AdSenseLink.decode_json response.body, ignore_unknown_fields: true
|
4370
|
+
|
4371
|
+
yield result, operation if block_given?
|
4372
|
+
result
|
4373
|
+
end
|
4374
|
+
|
4375
|
+
##
|
4376
|
+
# Baseline implementation for the create_ad_sense_link REST call
|
4377
|
+
#
|
4378
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::CreateAdSenseLinkRequest]
|
4379
|
+
# A request object representing the call parameters. Required.
|
4380
|
+
# @param options [::Gapic::CallOptions]
|
4381
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
4382
|
+
#
|
4383
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
4384
|
+
# @yieldparam result [::Google::Analytics::Admin::V1alpha::AdSenseLink]
|
4385
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
4386
|
+
#
|
4387
|
+
# @return [::Google::Analytics::Admin::V1alpha::AdSenseLink]
|
4388
|
+
# A result object deserialized from the server's reply
|
4389
|
+
def create_ad_sense_link request_pb, options = nil
|
4390
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
4391
|
+
|
4392
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_ad_sense_link_request request_pb
|
4393
|
+
query_string_params = if query_string_params.any?
|
4394
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
4395
|
+
else
|
4396
|
+
{}
|
4397
|
+
end
|
4398
|
+
|
4399
|
+
response = @client_stub.make_http_request(
|
4400
|
+
verb,
|
4401
|
+
uri: uri,
|
4402
|
+
body: body || "",
|
4403
|
+
params: query_string_params,
|
4404
|
+
options: options
|
4405
|
+
)
|
4406
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
4407
|
+
result = ::Google::Analytics::Admin::V1alpha::AdSenseLink.decode_json response.body, ignore_unknown_fields: true
|
4408
|
+
|
4409
|
+
yield result, operation if block_given?
|
4410
|
+
result
|
4411
|
+
end
|
4412
|
+
|
4413
|
+
##
|
4414
|
+
# Baseline implementation for the delete_ad_sense_link REST call
|
4415
|
+
#
|
4416
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteAdSenseLinkRequest]
|
4417
|
+
# A request object representing the call parameters. Required.
|
4418
|
+
# @param options [::Gapic::CallOptions]
|
4419
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
4420
|
+
#
|
4421
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
4422
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
4423
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
4424
|
+
#
|
4425
|
+
# @return [::Google::Protobuf::Empty]
|
4426
|
+
# A result object deserialized from the server's reply
|
4427
|
+
def delete_ad_sense_link request_pb, options = nil
|
4428
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
4429
|
+
|
4430
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_ad_sense_link_request request_pb
|
4431
|
+
query_string_params = if query_string_params.any?
|
4432
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
4433
|
+
else
|
4434
|
+
{}
|
4435
|
+
end
|
4436
|
+
|
4437
|
+
response = @client_stub.make_http_request(
|
4438
|
+
verb,
|
4439
|
+
uri: uri,
|
4440
|
+
body: body || "",
|
4441
|
+
params: query_string_params,
|
4442
|
+
options: options
|
4443
|
+
)
|
4444
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
4445
|
+
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
4446
|
+
|
4447
|
+
yield result, operation if block_given?
|
4448
|
+
result
|
4449
|
+
end
|
4450
|
+
|
4451
|
+
##
|
4452
|
+
# Baseline implementation for the list_ad_sense_links REST call
|
4453
|
+
#
|
4454
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::ListAdSenseLinksRequest]
|
4455
|
+
# A request object representing the call parameters. Required.
|
4456
|
+
# @param options [::Gapic::CallOptions]
|
4457
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
4458
|
+
#
|
4459
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
4460
|
+
# @yieldparam result [::Google::Analytics::Admin::V1alpha::ListAdSenseLinksResponse]
|
4461
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
4462
|
+
#
|
4463
|
+
# @return [::Google::Analytics::Admin::V1alpha::ListAdSenseLinksResponse]
|
4464
|
+
# A result object deserialized from the server's reply
|
4465
|
+
def list_ad_sense_links request_pb, options = nil
|
4466
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
4467
|
+
|
4468
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_ad_sense_links_request request_pb
|
4469
|
+
query_string_params = if query_string_params.any?
|
4470
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
4471
|
+
else
|
4472
|
+
{}
|
4473
|
+
end
|
4474
|
+
|
4475
|
+
response = @client_stub.make_http_request(
|
4476
|
+
verb,
|
4477
|
+
uri: uri,
|
4478
|
+
body: body || "",
|
4479
|
+
params: query_string_params,
|
4480
|
+
options: options
|
4481
|
+
)
|
4482
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
4483
|
+
result = ::Google::Analytics::Admin::V1alpha::ListAdSenseLinksResponse.decode_json response.body, ignore_unknown_fields: true
|
4484
|
+
|
4485
|
+
yield result, operation if block_given?
|
4486
|
+
result
|
4487
|
+
end
|
4488
|
+
|
4489
|
+
##
|
4490
|
+
# Baseline implementation for the get_event_create_rule REST call
|
4491
|
+
#
|
4492
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::GetEventCreateRuleRequest]
|
4493
|
+
# A request object representing the call parameters. Required.
|
4494
|
+
# @param options [::Gapic::CallOptions]
|
4495
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
4496
|
+
#
|
4497
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
4498
|
+
# @yieldparam result [::Google::Analytics::Admin::V1alpha::EventCreateRule]
|
4499
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
4500
|
+
#
|
4501
|
+
# @return [::Google::Analytics::Admin::V1alpha::EventCreateRule]
|
4502
|
+
# A result object deserialized from the server's reply
|
4503
|
+
def get_event_create_rule request_pb, options = nil
|
4504
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
4505
|
+
|
4506
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_event_create_rule_request request_pb
|
4507
|
+
query_string_params = if query_string_params.any?
|
4508
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
4509
|
+
else
|
4510
|
+
{}
|
4511
|
+
end
|
4512
|
+
|
4513
|
+
response = @client_stub.make_http_request(
|
4514
|
+
verb,
|
4515
|
+
uri: uri,
|
4516
|
+
body: body || "",
|
4517
|
+
params: query_string_params,
|
4518
|
+
options: options
|
4519
|
+
)
|
4520
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
4521
|
+
result = ::Google::Analytics::Admin::V1alpha::EventCreateRule.decode_json response.body, ignore_unknown_fields: true
|
4522
|
+
|
4523
|
+
yield result, operation if block_given?
|
4524
|
+
result
|
4525
|
+
end
|
4526
|
+
|
4527
|
+
##
|
4528
|
+
# Baseline implementation for the list_event_create_rules REST call
|
4529
|
+
#
|
4530
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::ListEventCreateRulesRequest]
|
4531
|
+
# A request object representing the call parameters. Required.
|
4532
|
+
# @param options [::Gapic::CallOptions]
|
4533
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
4534
|
+
#
|
4535
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
4536
|
+
# @yieldparam result [::Google::Analytics::Admin::V1alpha::ListEventCreateRulesResponse]
|
4537
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
4538
|
+
#
|
4539
|
+
# @return [::Google::Analytics::Admin::V1alpha::ListEventCreateRulesResponse]
|
4540
|
+
# A result object deserialized from the server's reply
|
4541
|
+
def list_event_create_rules request_pb, options = nil
|
4542
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
4543
|
+
|
4544
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_event_create_rules_request request_pb
|
4545
|
+
query_string_params = if query_string_params.any?
|
4546
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
4547
|
+
else
|
4548
|
+
{}
|
4549
|
+
end
|
4550
|
+
|
4551
|
+
response = @client_stub.make_http_request(
|
4552
|
+
verb,
|
4553
|
+
uri: uri,
|
4554
|
+
body: body || "",
|
4555
|
+
params: query_string_params,
|
4556
|
+
options: options
|
4557
|
+
)
|
4558
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
4559
|
+
result = ::Google::Analytics::Admin::V1alpha::ListEventCreateRulesResponse.decode_json response.body, ignore_unknown_fields: true
|
4560
|
+
|
4561
|
+
yield result, operation if block_given?
|
4562
|
+
result
|
4563
|
+
end
|
4564
|
+
|
4565
|
+
##
|
4566
|
+
# Baseline implementation for the create_event_create_rule REST call
|
4567
|
+
#
|
4568
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::CreateEventCreateRuleRequest]
|
4569
|
+
# A request object representing the call parameters. Required.
|
4570
|
+
# @param options [::Gapic::CallOptions]
|
4571
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
4572
|
+
#
|
4573
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
4574
|
+
# @yieldparam result [::Google::Analytics::Admin::V1alpha::EventCreateRule]
|
4575
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
4576
|
+
#
|
4577
|
+
# @return [::Google::Analytics::Admin::V1alpha::EventCreateRule]
|
4578
|
+
# A result object deserialized from the server's reply
|
4579
|
+
def create_event_create_rule request_pb, options = nil
|
4580
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
4581
|
+
|
4582
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_event_create_rule_request request_pb
|
4583
|
+
query_string_params = if query_string_params.any?
|
4584
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
4585
|
+
else
|
4586
|
+
{}
|
4587
|
+
end
|
4588
|
+
|
4589
|
+
response = @client_stub.make_http_request(
|
4590
|
+
verb,
|
4591
|
+
uri: uri,
|
4592
|
+
body: body || "",
|
4593
|
+
params: query_string_params,
|
4594
|
+
options: options
|
4595
|
+
)
|
4596
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
4597
|
+
result = ::Google::Analytics::Admin::V1alpha::EventCreateRule.decode_json response.body, ignore_unknown_fields: true
|
4598
|
+
|
4599
|
+
yield result, operation if block_given?
|
4600
|
+
result
|
4601
|
+
end
|
4602
|
+
|
4603
|
+
##
|
4604
|
+
# Baseline implementation for the update_event_create_rule REST call
|
4605
|
+
#
|
4606
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest]
|
4607
|
+
# A request object representing the call parameters. Required.
|
4608
|
+
# @param options [::Gapic::CallOptions]
|
4609
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
4610
|
+
#
|
4611
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
4612
|
+
# @yieldparam result [::Google::Analytics::Admin::V1alpha::EventCreateRule]
|
4613
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
4614
|
+
#
|
4615
|
+
# @return [::Google::Analytics::Admin::V1alpha::EventCreateRule]
|
4616
|
+
# A result object deserialized from the server's reply
|
4617
|
+
def update_event_create_rule request_pb, options = nil
|
4618
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
4619
|
+
|
4620
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_event_create_rule_request request_pb
|
4621
|
+
query_string_params = if query_string_params.any?
|
4622
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
4623
|
+
else
|
4624
|
+
{}
|
4625
|
+
end
|
4626
|
+
|
4627
|
+
response = @client_stub.make_http_request(
|
4628
|
+
verb,
|
4629
|
+
uri: uri,
|
4630
|
+
body: body || "",
|
4631
|
+
params: query_string_params,
|
4632
|
+
options: options
|
4633
|
+
)
|
4634
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
4635
|
+
result = ::Google::Analytics::Admin::V1alpha::EventCreateRule.decode_json response.body, ignore_unknown_fields: true
|
4636
|
+
|
4637
|
+
yield result, operation if block_given?
|
4638
|
+
result
|
4639
|
+
end
|
4640
|
+
|
4641
|
+
##
|
4642
|
+
# Baseline implementation for the delete_event_create_rule REST call
|
4643
|
+
#
|
4644
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest]
|
4645
|
+
# A request object representing the call parameters. Required.
|
4646
|
+
# @param options [::Gapic::CallOptions]
|
4647
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
4648
|
+
#
|
4649
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
4650
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
4651
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
4652
|
+
#
|
4653
|
+
# @return [::Google::Protobuf::Empty]
|
4654
|
+
# A result object deserialized from the server's reply
|
4655
|
+
def delete_event_create_rule request_pb, options = nil
|
4086
4656
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
4087
4657
|
|
4088
|
-
verb, uri, query_string_params, body = ServiceStub.
|
4658
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_event_create_rule_request request_pb
|
4089
4659
|
query_string_params = if query_string_params.any?
|
4090
4660
|
query_string_params.to_h { |p| p.split("=", 2) }
|
4091
4661
|
else
|
@@ -4100,7 +4670,7 @@ module Google
|
|
4100
4670
|
options: options
|
4101
4671
|
)
|
4102
4672
|
operation = ::Gapic::Rest::TransportOperation.new response
|
4103
|
-
result = ::Google::
|
4673
|
+
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
4104
4674
|
|
4105
4675
|
yield result, operation if block_given?
|
4106
4676
|
result
|
@@ -6353,6 +6923,113 @@ module Google
|
|
6353
6923
|
transcoder.transcode request_pb
|
6354
6924
|
end
|
6355
6925
|
|
6926
|
+
##
|
6927
|
+
# @private
|
6928
|
+
#
|
6929
|
+
# GRPC transcoding helper method for the get_channel_group REST call
|
6930
|
+
#
|
6931
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::GetChannelGroupRequest]
|
6932
|
+
# A request object representing the call parameters. Required.
|
6933
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
6934
|
+
# Uri, Body, Query string parameters
|
6935
|
+
def self.transcode_get_channel_group_request request_pb
|
6936
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
6937
|
+
.with_bindings(
|
6938
|
+
uri_method: :get,
|
6939
|
+
uri_template: "/v1alpha/{name}",
|
6940
|
+
matches: [
|
6941
|
+
["name", %r{^properties/[^/]+/channelGroups/[^/]+/?$}, false]
|
6942
|
+
]
|
6943
|
+
)
|
6944
|
+
transcoder.transcode request_pb
|
6945
|
+
end
|
6946
|
+
|
6947
|
+
##
|
6948
|
+
# @private
|
6949
|
+
#
|
6950
|
+
# GRPC transcoding helper method for the list_channel_groups REST call
|
6951
|
+
#
|
6952
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::ListChannelGroupsRequest]
|
6953
|
+
# A request object representing the call parameters. Required.
|
6954
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
6955
|
+
# Uri, Body, Query string parameters
|
6956
|
+
def self.transcode_list_channel_groups_request request_pb
|
6957
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
6958
|
+
.with_bindings(
|
6959
|
+
uri_method: :get,
|
6960
|
+
uri_template: "/v1alpha/{parent}/channelGroups",
|
6961
|
+
matches: [
|
6962
|
+
["parent", %r{^properties/[^/]+/?$}, false]
|
6963
|
+
]
|
6964
|
+
)
|
6965
|
+
transcoder.transcode request_pb
|
6966
|
+
end
|
6967
|
+
|
6968
|
+
##
|
6969
|
+
# @private
|
6970
|
+
#
|
6971
|
+
# GRPC transcoding helper method for the create_channel_group REST call
|
6972
|
+
#
|
6973
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::CreateChannelGroupRequest]
|
6974
|
+
# A request object representing the call parameters. Required.
|
6975
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
6976
|
+
# Uri, Body, Query string parameters
|
6977
|
+
def self.transcode_create_channel_group_request request_pb
|
6978
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
6979
|
+
.with_bindings(
|
6980
|
+
uri_method: :post,
|
6981
|
+
uri_template: "/v1alpha/{parent}/channelGroups",
|
6982
|
+
body: "channel_group",
|
6983
|
+
matches: [
|
6984
|
+
["parent", %r{^properties/[^/]+/?$}, false]
|
6985
|
+
]
|
6986
|
+
)
|
6987
|
+
transcoder.transcode request_pb
|
6988
|
+
end
|
6989
|
+
|
6990
|
+
##
|
6991
|
+
# @private
|
6992
|
+
#
|
6993
|
+
# GRPC transcoding helper method for the update_channel_group REST call
|
6994
|
+
#
|
6995
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateChannelGroupRequest]
|
6996
|
+
# A request object representing the call parameters. Required.
|
6997
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
6998
|
+
# Uri, Body, Query string parameters
|
6999
|
+
def self.transcode_update_channel_group_request request_pb
|
7000
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
7001
|
+
.with_bindings(
|
7002
|
+
uri_method: :patch,
|
7003
|
+
uri_template: "/v1alpha/{channel_group.name}",
|
7004
|
+
body: "channel_group",
|
7005
|
+
matches: [
|
7006
|
+
["channel_group.name", %r{^properties/[^/]+/channelGroups/[^/]+/?$}, false]
|
7007
|
+
]
|
7008
|
+
)
|
7009
|
+
transcoder.transcode request_pb
|
7010
|
+
end
|
7011
|
+
|
7012
|
+
##
|
7013
|
+
# @private
|
7014
|
+
#
|
7015
|
+
# GRPC transcoding helper method for the delete_channel_group REST call
|
7016
|
+
#
|
7017
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteChannelGroupRequest]
|
7018
|
+
# A request object representing the call parameters. Required.
|
7019
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
7020
|
+
# Uri, Body, Query string parameters
|
7021
|
+
def self.transcode_delete_channel_group_request request_pb
|
7022
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
7023
|
+
.with_bindings(
|
7024
|
+
uri_method: :delete,
|
7025
|
+
uri_template: "/v1alpha/{name}",
|
7026
|
+
matches: [
|
7027
|
+
["name", %r{^properties/[^/]+/channelGroups/[^/]+/?$}, false]
|
7028
|
+
]
|
7029
|
+
)
|
7030
|
+
transcoder.transcode request_pb
|
7031
|
+
end
|
7032
|
+
|
6356
7033
|
##
|
6357
7034
|
# @private
|
6358
7035
|
#
|
@@ -6537,6 +7214,217 @@ module Google
|
|
6537
7214
|
)
|
6538
7215
|
transcoder.transcode request_pb
|
6539
7216
|
end
|
7217
|
+
|
7218
|
+
##
|
7219
|
+
# @private
|
7220
|
+
#
|
7221
|
+
# GRPC transcoding helper method for the fetch_connected_ga4_property REST call
|
7222
|
+
#
|
7223
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::FetchConnectedGa4PropertyRequest]
|
7224
|
+
# A request object representing the call parameters. Required.
|
7225
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
7226
|
+
# Uri, Body, Query string parameters
|
7227
|
+
def self.transcode_fetch_connected_ga4_property_request request_pb
|
7228
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
7229
|
+
.with_bindings(
|
7230
|
+
uri_method: :get,
|
7231
|
+
uri_template: "/v1alpha/properties:fetchConnectedGa4Property",
|
7232
|
+
matches: []
|
7233
|
+
)
|
7234
|
+
transcoder.transcode request_pb
|
7235
|
+
end
|
7236
|
+
|
7237
|
+
##
|
7238
|
+
# @private
|
7239
|
+
#
|
7240
|
+
# GRPC transcoding helper method for the get_ad_sense_link REST call
|
7241
|
+
#
|
7242
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::GetAdSenseLinkRequest]
|
7243
|
+
# A request object representing the call parameters. Required.
|
7244
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
7245
|
+
# Uri, Body, Query string parameters
|
7246
|
+
def self.transcode_get_ad_sense_link_request request_pb
|
7247
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
7248
|
+
.with_bindings(
|
7249
|
+
uri_method: :get,
|
7250
|
+
uri_template: "/v1alpha/{name}",
|
7251
|
+
matches: [
|
7252
|
+
["name", %r{^properties/[^/]+/adSenseLinks/[^/]+/?$}, false]
|
7253
|
+
]
|
7254
|
+
)
|
7255
|
+
transcoder.transcode request_pb
|
7256
|
+
end
|
7257
|
+
|
7258
|
+
##
|
7259
|
+
# @private
|
7260
|
+
#
|
7261
|
+
# GRPC transcoding helper method for the create_ad_sense_link REST call
|
7262
|
+
#
|
7263
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::CreateAdSenseLinkRequest]
|
7264
|
+
# A request object representing the call parameters. Required.
|
7265
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
7266
|
+
# Uri, Body, Query string parameters
|
7267
|
+
def self.transcode_create_ad_sense_link_request request_pb
|
7268
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
7269
|
+
.with_bindings(
|
7270
|
+
uri_method: :post,
|
7271
|
+
uri_template: "/v1alpha/{parent}/adSenseLinks",
|
7272
|
+
body: "adsense_link",
|
7273
|
+
matches: [
|
7274
|
+
["parent", %r{^properties/[^/]+/?$}, false]
|
7275
|
+
]
|
7276
|
+
)
|
7277
|
+
transcoder.transcode request_pb
|
7278
|
+
end
|
7279
|
+
|
7280
|
+
##
|
7281
|
+
# @private
|
7282
|
+
#
|
7283
|
+
# GRPC transcoding helper method for the delete_ad_sense_link REST call
|
7284
|
+
#
|
7285
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteAdSenseLinkRequest]
|
7286
|
+
# A request object representing the call parameters. Required.
|
7287
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
7288
|
+
# Uri, Body, Query string parameters
|
7289
|
+
def self.transcode_delete_ad_sense_link_request request_pb
|
7290
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
7291
|
+
.with_bindings(
|
7292
|
+
uri_method: :delete,
|
7293
|
+
uri_template: "/v1alpha/{name}",
|
7294
|
+
matches: [
|
7295
|
+
["name", %r{^properties/[^/]+/adSenseLinks/[^/]+/?$}, false]
|
7296
|
+
]
|
7297
|
+
)
|
7298
|
+
transcoder.transcode request_pb
|
7299
|
+
end
|
7300
|
+
|
7301
|
+
##
|
7302
|
+
# @private
|
7303
|
+
#
|
7304
|
+
# GRPC transcoding helper method for the list_ad_sense_links REST call
|
7305
|
+
#
|
7306
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::ListAdSenseLinksRequest]
|
7307
|
+
# A request object representing the call parameters. Required.
|
7308
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
7309
|
+
# Uri, Body, Query string parameters
|
7310
|
+
def self.transcode_list_ad_sense_links_request request_pb
|
7311
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
7312
|
+
.with_bindings(
|
7313
|
+
uri_method: :get,
|
7314
|
+
uri_template: "/v1alpha/{parent}/adSenseLinks",
|
7315
|
+
matches: [
|
7316
|
+
["parent", %r{^properties/[^/]+/?$}, false]
|
7317
|
+
]
|
7318
|
+
)
|
7319
|
+
transcoder.transcode request_pb
|
7320
|
+
end
|
7321
|
+
|
7322
|
+
##
|
7323
|
+
# @private
|
7324
|
+
#
|
7325
|
+
# GRPC transcoding helper method for the get_event_create_rule REST call
|
7326
|
+
#
|
7327
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::GetEventCreateRuleRequest]
|
7328
|
+
# A request object representing the call parameters. Required.
|
7329
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
7330
|
+
# Uri, Body, Query string parameters
|
7331
|
+
def self.transcode_get_event_create_rule_request request_pb
|
7332
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
7333
|
+
.with_bindings(
|
7334
|
+
uri_method: :get,
|
7335
|
+
uri_template: "/v1alpha/{name}",
|
7336
|
+
matches: [
|
7337
|
+
["name", %r{^properties/[^/]+/dataStreams/[^/]+/eventCreateRules/[^/]+/?$}, false]
|
7338
|
+
]
|
7339
|
+
)
|
7340
|
+
transcoder.transcode request_pb
|
7341
|
+
end
|
7342
|
+
|
7343
|
+
##
|
7344
|
+
# @private
|
7345
|
+
#
|
7346
|
+
# GRPC transcoding helper method for the list_event_create_rules REST call
|
7347
|
+
#
|
7348
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::ListEventCreateRulesRequest]
|
7349
|
+
# A request object representing the call parameters. Required.
|
7350
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
7351
|
+
# Uri, Body, Query string parameters
|
7352
|
+
def self.transcode_list_event_create_rules_request request_pb
|
7353
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
7354
|
+
.with_bindings(
|
7355
|
+
uri_method: :get,
|
7356
|
+
uri_template: "/v1alpha/{parent}/eventCreateRules",
|
7357
|
+
matches: [
|
7358
|
+
["parent", %r{^properties/[^/]+/dataStreams/[^/]+/?$}, false]
|
7359
|
+
]
|
7360
|
+
)
|
7361
|
+
transcoder.transcode request_pb
|
7362
|
+
end
|
7363
|
+
|
7364
|
+
##
|
7365
|
+
# @private
|
7366
|
+
#
|
7367
|
+
# GRPC transcoding helper method for the create_event_create_rule REST call
|
7368
|
+
#
|
7369
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::CreateEventCreateRuleRequest]
|
7370
|
+
# A request object representing the call parameters. Required.
|
7371
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
7372
|
+
# Uri, Body, Query string parameters
|
7373
|
+
def self.transcode_create_event_create_rule_request request_pb
|
7374
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
7375
|
+
.with_bindings(
|
7376
|
+
uri_method: :post,
|
7377
|
+
uri_template: "/v1alpha/{parent}/eventCreateRules",
|
7378
|
+
body: "event_create_rule",
|
7379
|
+
matches: [
|
7380
|
+
["parent", %r{^properties/[^/]+/dataStreams/[^/]+/?$}, false]
|
7381
|
+
]
|
7382
|
+
)
|
7383
|
+
transcoder.transcode request_pb
|
7384
|
+
end
|
7385
|
+
|
7386
|
+
##
|
7387
|
+
# @private
|
7388
|
+
#
|
7389
|
+
# GRPC transcoding helper method for the update_event_create_rule REST call
|
7390
|
+
#
|
7391
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest]
|
7392
|
+
# A request object representing the call parameters. Required.
|
7393
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
7394
|
+
# Uri, Body, Query string parameters
|
7395
|
+
def self.transcode_update_event_create_rule_request request_pb
|
7396
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
7397
|
+
.with_bindings(
|
7398
|
+
uri_method: :patch,
|
7399
|
+
uri_template: "/v1alpha/{event_create_rule.name}",
|
7400
|
+
body: "event_create_rule",
|
7401
|
+
matches: [
|
7402
|
+
["event_create_rule.name", %r{^properties/[^/]+/dataStreams/[^/]+/eventCreateRules/[^/]+/?$}, false]
|
7403
|
+
]
|
7404
|
+
)
|
7405
|
+
transcoder.transcode request_pb
|
7406
|
+
end
|
7407
|
+
|
7408
|
+
##
|
7409
|
+
# @private
|
7410
|
+
#
|
7411
|
+
# GRPC transcoding helper method for the delete_event_create_rule REST call
|
7412
|
+
#
|
7413
|
+
# @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest]
|
7414
|
+
# A request object representing the call parameters. Required.
|
7415
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
7416
|
+
# Uri, Body, Query string parameters
|
7417
|
+
def self.transcode_delete_event_create_rule_request request_pb
|
7418
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
7419
|
+
.with_bindings(
|
7420
|
+
uri_method: :delete,
|
7421
|
+
uri_template: "/v1alpha/{name}",
|
7422
|
+
matches: [
|
7423
|
+
["name", %r{^properties/[^/]+/dataStreams/[^/]+/eventCreateRules/[^/]+/?$}, false]
|
7424
|
+
]
|
7425
|
+
)
|
7426
|
+
transcoder.transcode request_pb
|
7427
|
+
end
|
6540
7428
|
end
|
6541
7429
|
end
|
6542
7430
|
end
|