google-analytics-admin-v1alpha 0.29.0 → 0.30.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1543,6 +1543,196 @@ module Google
1543
1543
  result
1544
1544
  end
1545
1545
 
1546
+ ##
1547
+ # Baseline implementation for the create_key_event REST call
1548
+ #
1549
+ # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateKeyEventRequest]
1550
+ # A request object representing the call parameters. Required.
1551
+ # @param options [::Gapic::CallOptions]
1552
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1553
+ #
1554
+ # @yield [result, operation] Access the result along with the TransportOperation object
1555
+ # @yieldparam result [::Google::Analytics::Admin::V1alpha::KeyEvent]
1556
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1557
+ #
1558
+ # @return [::Google::Analytics::Admin::V1alpha::KeyEvent]
1559
+ # A result object deserialized from the server's reply
1560
+ def create_key_event request_pb, options = nil
1561
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1562
+
1563
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_key_event_request request_pb
1564
+ query_string_params = if query_string_params.any?
1565
+ query_string_params.to_h { |p| p.split "=", 2 }
1566
+ else
1567
+ {}
1568
+ end
1569
+
1570
+ response = @client_stub.make_http_request(
1571
+ verb,
1572
+ uri: uri,
1573
+ body: body || "",
1574
+ params: query_string_params,
1575
+ options: options
1576
+ )
1577
+ operation = ::Gapic::Rest::TransportOperation.new response
1578
+ result = ::Google::Analytics::Admin::V1alpha::KeyEvent.decode_json response.body, ignore_unknown_fields: true
1579
+
1580
+ yield result, operation if block_given?
1581
+ result
1582
+ end
1583
+
1584
+ ##
1585
+ # Baseline implementation for the update_key_event REST call
1586
+ #
1587
+ # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateKeyEventRequest]
1588
+ # A request object representing the call parameters. Required.
1589
+ # @param options [::Gapic::CallOptions]
1590
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1591
+ #
1592
+ # @yield [result, operation] Access the result along with the TransportOperation object
1593
+ # @yieldparam result [::Google::Analytics::Admin::V1alpha::KeyEvent]
1594
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1595
+ #
1596
+ # @return [::Google::Analytics::Admin::V1alpha::KeyEvent]
1597
+ # A result object deserialized from the server's reply
1598
+ def update_key_event request_pb, options = nil
1599
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1600
+
1601
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_key_event_request request_pb
1602
+ query_string_params = if query_string_params.any?
1603
+ query_string_params.to_h { |p| p.split "=", 2 }
1604
+ else
1605
+ {}
1606
+ end
1607
+
1608
+ response = @client_stub.make_http_request(
1609
+ verb,
1610
+ uri: uri,
1611
+ body: body || "",
1612
+ params: query_string_params,
1613
+ options: options
1614
+ )
1615
+ operation = ::Gapic::Rest::TransportOperation.new response
1616
+ result = ::Google::Analytics::Admin::V1alpha::KeyEvent.decode_json response.body, ignore_unknown_fields: true
1617
+
1618
+ yield result, operation if block_given?
1619
+ result
1620
+ end
1621
+
1622
+ ##
1623
+ # Baseline implementation for the get_key_event REST call
1624
+ #
1625
+ # @param request_pb [::Google::Analytics::Admin::V1alpha::GetKeyEventRequest]
1626
+ # A request object representing the call parameters. Required.
1627
+ # @param options [::Gapic::CallOptions]
1628
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1629
+ #
1630
+ # @yield [result, operation] Access the result along with the TransportOperation object
1631
+ # @yieldparam result [::Google::Analytics::Admin::V1alpha::KeyEvent]
1632
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1633
+ #
1634
+ # @return [::Google::Analytics::Admin::V1alpha::KeyEvent]
1635
+ # A result object deserialized from the server's reply
1636
+ def get_key_event request_pb, options = nil
1637
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1638
+
1639
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_key_event_request request_pb
1640
+ query_string_params = if query_string_params.any?
1641
+ query_string_params.to_h { |p| p.split "=", 2 }
1642
+ else
1643
+ {}
1644
+ end
1645
+
1646
+ response = @client_stub.make_http_request(
1647
+ verb,
1648
+ uri: uri,
1649
+ body: body || "",
1650
+ params: query_string_params,
1651
+ options: options
1652
+ )
1653
+ operation = ::Gapic::Rest::TransportOperation.new response
1654
+ result = ::Google::Analytics::Admin::V1alpha::KeyEvent.decode_json response.body, ignore_unknown_fields: true
1655
+
1656
+ yield result, operation if block_given?
1657
+ result
1658
+ end
1659
+
1660
+ ##
1661
+ # Baseline implementation for the delete_key_event REST call
1662
+ #
1663
+ # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteKeyEventRequest]
1664
+ # A request object representing the call parameters. Required.
1665
+ # @param options [::Gapic::CallOptions]
1666
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1667
+ #
1668
+ # @yield [result, operation] Access the result along with the TransportOperation object
1669
+ # @yieldparam result [::Google::Protobuf::Empty]
1670
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1671
+ #
1672
+ # @return [::Google::Protobuf::Empty]
1673
+ # A result object deserialized from the server's reply
1674
+ def delete_key_event request_pb, options = nil
1675
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1676
+
1677
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_key_event_request request_pb
1678
+ query_string_params = if query_string_params.any?
1679
+ query_string_params.to_h { |p| p.split "=", 2 }
1680
+ else
1681
+ {}
1682
+ end
1683
+
1684
+ response = @client_stub.make_http_request(
1685
+ verb,
1686
+ uri: uri,
1687
+ body: body || "",
1688
+ params: query_string_params,
1689
+ options: options
1690
+ )
1691
+ operation = ::Gapic::Rest::TransportOperation.new response
1692
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
1693
+
1694
+ yield result, operation if block_given?
1695
+ result
1696
+ end
1697
+
1698
+ ##
1699
+ # Baseline implementation for the list_key_events REST call
1700
+ #
1701
+ # @param request_pb [::Google::Analytics::Admin::V1alpha::ListKeyEventsRequest]
1702
+ # A request object representing the call parameters. Required.
1703
+ # @param options [::Gapic::CallOptions]
1704
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1705
+ #
1706
+ # @yield [result, operation] Access the result along with the TransportOperation object
1707
+ # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListKeyEventsResponse]
1708
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1709
+ #
1710
+ # @return [::Google::Analytics::Admin::V1alpha::ListKeyEventsResponse]
1711
+ # A result object deserialized from the server's reply
1712
+ def list_key_events request_pb, options = nil
1713
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1714
+
1715
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_key_events_request request_pb
1716
+ query_string_params = if query_string_params.any?
1717
+ query_string_params.to_h { |p| p.split "=", 2 }
1718
+ else
1719
+ {}
1720
+ end
1721
+
1722
+ response = @client_stub.make_http_request(
1723
+ verb,
1724
+ uri: uri,
1725
+ body: body || "",
1726
+ params: query_string_params,
1727
+ options: options
1728
+ )
1729
+ operation = ::Gapic::Rest::TransportOperation.new response
1730
+ result = ::Google::Analytics::Admin::V1alpha::ListKeyEventsResponse.decode_json response.body, ignore_unknown_fields: true
1731
+
1732
+ yield result, operation if block_given?
1733
+ result
1734
+ end
1735
+
1546
1736
  ##
1547
1737
  # Baseline implementation for the get_display_video360_advertiser_link REST call
1548
1738
  #
@@ -3899,6 +4089,44 @@ module Google
3899
4089
  result
3900
4090
  end
3901
4091
 
4092
+ ##
4093
+ # Baseline implementation for the create_big_query_link REST call
4094
+ #
4095
+ # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateBigQueryLinkRequest]
4096
+ # A request object representing the call parameters. Required.
4097
+ # @param options [::Gapic::CallOptions]
4098
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
4099
+ #
4100
+ # @yield [result, operation] Access the result along with the TransportOperation object
4101
+ # @yieldparam result [::Google::Analytics::Admin::V1alpha::BigQueryLink]
4102
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
4103
+ #
4104
+ # @return [::Google::Analytics::Admin::V1alpha::BigQueryLink]
4105
+ # A result object deserialized from the server's reply
4106
+ def create_big_query_link request_pb, options = nil
4107
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
4108
+
4109
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_big_query_link_request request_pb
4110
+ query_string_params = if query_string_params.any?
4111
+ query_string_params.to_h { |p| p.split "=", 2 }
4112
+ else
4113
+ {}
4114
+ end
4115
+
4116
+ response = @client_stub.make_http_request(
4117
+ verb,
4118
+ uri: uri,
4119
+ body: body || "",
4120
+ params: query_string_params,
4121
+ options: options
4122
+ )
4123
+ operation = ::Gapic::Rest::TransportOperation.new response
4124
+ result = ::Google::Analytics::Admin::V1alpha::BigQueryLink.decode_json response.body, ignore_unknown_fields: true
4125
+
4126
+ yield result, operation if block_given?
4127
+ result
4128
+ end
4129
+
3902
4130
  ##
3903
4131
  # Baseline implementation for the get_big_query_link REST call
3904
4132
  #
@@ -3975,6 +4203,82 @@ module Google
3975
4203
  result
3976
4204
  end
3977
4205
 
4206
+ ##
4207
+ # Baseline implementation for the delete_big_query_link REST call
4208
+ #
4209
+ # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteBigQueryLinkRequest]
4210
+ # A request object representing the call parameters. Required.
4211
+ # @param options [::Gapic::CallOptions]
4212
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
4213
+ #
4214
+ # @yield [result, operation] Access the result along with the TransportOperation object
4215
+ # @yieldparam result [::Google::Protobuf::Empty]
4216
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
4217
+ #
4218
+ # @return [::Google::Protobuf::Empty]
4219
+ # A result object deserialized from the server's reply
4220
+ def delete_big_query_link request_pb, options = nil
4221
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
4222
+
4223
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_big_query_link_request request_pb
4224
+ query_string_params = if query_string_params.any?
4225
+ query_string_params.to_h { |p| p.split "=", 2 }
4226
+ else
4227
+ {}
4228
+ end
4229
+
4230
+ response = @client_stub.make_http_request(
4231
+ verb,
4232
+ uri: uri,
4233
+ body: body || "",
4234
+ params: query_string_params,
4235
+ options: options
4236
+ )
4237
+ operation = ::Gapic::Rest::TransportOperation.new response
4238
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
4239
+
4240
+ yield result, operation if block_given?
4241
+ result
4242
+ end
4243
+
4244
+ ##
4245
+ # Baseline implementation for the update_big_query_link REST call
4246
+ #
4247
+ # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateBigQueryLinkRequest]
4248
+ # A request object representing the call parameters. Required.
4249
+ # @param options [::Gapic::CallOptions]
4250
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
4251
+ #
4252
+ # @yield [result, operation] Access the result along with the TransportOperation object
4253
+ # @yieldparam result [::Google::Analytics::Admin::V1alpha::BigQueryLink]
4254
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
4255
+ #
4256
+ # @return [::Google::Analytics::Admin::V1alpha::BigQueryLink]
4257
+ # A result object deserialized from the server's reply
4258
+ def update_big_query_link request_pb, options = nil
4259
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
4260
+
4261
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_big_query_link_request request_pb
4262
+ query_string_params = if query_string_params.any?
4263
+ query_string_params.to_h { |p| p.split "=", 2 }
4264
+ else
4265
+ {}
4266
+ end
4267
+
4268
+ response = @client_stub.make_http_request(
4269
+ verb,
4270
+ uri: uri,
4271
+ body: body || "",
4272
+ params: query_string_params,
4273
+ options: options
4274
+ )
4275
+ operation = ::Gapic::Rest::TransportOperation.new response
4276
+ result = ::Google::Analytics::Admin::V1alpha::BigQueryLink.decode_json response.body, ignore_unknown_fields: true
4277
+
4278
+ yield result, operation if block_given?
4279
+ result
4280
+ end
4281
+
3978
4282
  ##
3979
4283
  # Baseline implementation for the get_enhanced_measurement_settings REST call
3980
4284
  #
@@ -4443,12 +4747,240 @@ module Google
4443
4747
  # @yieldparam result [::Google::Analytics::Admin::V1alpha::EventCreateRule]
4444
4748
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
4445
4749
  #
4446
- # @return [::Google::Analytics::Admin::V1alpha::EventCreateRule]
4750
+ # @return [::Google::Analytics::Admin::V1alpha::EventCreateRule]
4751
+ # A result object deserialized from the server's reply
4752
+ def create_event_create_rule request_pb, options = nil
4753
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
4754
+
4755
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_event_create_rule_request request_pb
4756
+ query_string_params = if query_string_params.any?
4757
+ query_string_params.to_h { |p| p.split "=", 2 }
4758
+ else
4759
+ {}
4760
+ end
4761
+
4762
+ response = @client_stub.make_http_request(
4763
+ verb,
4764
+ uri: uri,
4765
+ body: body || "",
4766
+ params: query_string_params,
4767
+ options: options
4768
+ )
4769
+ operation = ::Gapic::Rest::TransportOperation.new response
4770
+ result = ::Google::Analytics::Admin::V1alpha::EventCreateRule.decode_json response.body, ignore_unknown_fields: true
4771
+
4772
+ yield result, operation if block_given?
4773
+ result
4774
+ end
4775
+
4776
+ ##
4777
+ # Baseline implementation for the update_event_create_rule REST call
4778
+ #
4779
+ # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest]
4780
+ # A request object representing the call parameters. Required.
4781
+ # @param options [::Gapic::CallOptions]
4782
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
4783
+ #
4784
+ # @yield [result, operation] Access the result along with the TransportOperation object
4785
+ # @yieldparam result [::Google::Analytics::Admin::V1alpha::EventCreateRule]
4786
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
4787
+ #
4788
+ # @return [::Google::Analytics::Admin::V1alpha::EventCreateRule]
4789
+ # A result object deserialized from the server's reply
4790
+ def update_event_create_rule request_pb, options = nil
4791
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
4792
+
4793
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_event_create_rule_request request_pb
4794
+ query_string_params = if query_string_params.any?
4795
+ query_string_params.to_h { |p| p.split "=", 2 }
4796
+ else
4797
+ {}
4798
+ end
4799
+
4800
+ response = @client_stub.make_http_request(
4801
+ verb,
4802
+ uri: uri,
4803
+ body: body || "",
4804
+ params: query_string_params,
4805
+ options: options
4806
+ )
4807
+ operation = ::Gapic::Rest::TransportOperation.new response
4808
+ result = ::Google::Analytics::Admin::V1alpha::EventCreateRule.decode_json response.body, ignore_unknown_fields: true
4809
+
4810
+ yield result, operation if block_given?
4811
+ result
4812
+ end
4813
+
4814
+ ##
4815
+ # Baseline implementation for the delete_event_create_rule REST call
4816
+ #
4817
+ # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest]
4818
+ # A request object representing the call parameters. Required.
4819
+ # @param options [::Gapic::CallOptions]
4820
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
4821
+ #
4822
+ # @yield [result, operation] Access the result along with the TransportOperation object
4823
+ # @yieldparam result [::Google::Protobuf::Empty]
4824
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
4825
+ #
4826
+ # @return [::Google::Protobuf::Empty]
4827
+ # A result object deserialized from the server's reply
4828
+ def delete_event_create_rule request_pb, options = nil
4829
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
4830
+
4831
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_event_create_rule_request request_pb
4832
+ query_string_params = if query_string_params.any?
4833
+ query_string_params.to_h { |p| p.split "=", 2 }
4834
+ else
4835
+ {}
4836
+ end
4837
+
4838
+ response = @client_stub.make_http_request(
4839
+ verb,
4840
+ uri: uri,
4841
+ body: body || "",
4842
+ params: query_string_params,
4843
+ options: options
4844
+ )
4845
+ operation = ::Gapic::Rest::TransportOperation.new response
4846
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
4847
+
4848
+ yield result, operation if block_given?
4849
+ result
4850
+ end
4851
+
4852
+ ##
4853
+ # Baseline implementation for the get_event_edit_rule REST call
4854
+ #
4855
+ # @param request_pb [::Google::Analytics::Admin::V1alpha::GetEventEditRuleRequest]
4856
+ # A request object representing the call parameters. Required.
4857
+ # @param options [::Gapic::CallOptions]
4858
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
4859
+ #
4860
+ # @yield [result, operation] Access the result along with the TransportOperation object
4861
+ # @yieldparam result [::Google::Analytics::Admin::V1alpha::EventEditRule]
4862
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
4863
+ #
4864
+ # @return [::Google::Analytics::Admin::V1alpha::EventEditRule]
4865
+ # A result object deserialized from the server's reply
4866
+ def get_event_edit_rule request_pb, options = nil
4867
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
4868
+
4869
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_event_edit_rule_request request_pb
4870
+ query_string_params = if query_string_params.any?
4871
+ query_string_params.to_h { |p| p.split "=", 2 }
4872
+ else
4873
+ {}
4874
+ end
4875
+
4876
+ response = @client_stub.make_http_request(
4877
+ verb,
4878
+ uri: uri,
4879
+ body: body || "",
4880
+ params: query_string_params,
4881
+ options: options
4882
+ )
4883
+ operation = ::Gapic::Rest::TransportOperation.new response
4884
+ result = ::Google::Analytics::Admin::V1alpha::EventEditRule.decode_json response.body, ignore_unknown_fields: true
4885
+
4886
+ yield result, operation if block_given?
4887
+ result
4888
+ end
4889
+
4890
+ ##
4891
+ # Baseline implementation for the list_event_edit_rules REST call
4892
+ #
4893
+ # @param request_pb [::Google::Analytics::Admin::V1alpha::ListEventEditRulesRequest]
4894
+ # A request object representing the call parameters. Required.
4895
+ # @param options [::Gapic::CallOptions]
4896
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
4897
+ #
4898
+ # @yield [result, operation] Access the result along with the TransportOperation object
4899
+ # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListEventEditRulesResponse]
4900
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
4901
+ #
4902
+ # @return [::Google::Analytics::Admin::V1alpha::ListEventEditRulesResponse]
4903
+ # A result object deserialized from the server's reply
4904
+ def list_event_edit_rules request_pb, options = nil
4905
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
4906
+
4907
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_event_edit_rules_request request_pb
4908
+ query_string_params = if query_string_params.any?
4909
+ query_string_params.to_h { |p| p.split "=", 2 }
4910
+ else
4911
+ {}
4912
+ end
4913
+
4914
+ response = @client_stub.make_http_request(
4915
+ verb,
4916
+ uri: uri,
4917
+ body: body || "",
4918
+ params: query_string_params,
4919
+ options: options
4920
+ )
4921
+ operation = ::Gapic::Rest::TransportOperation.new response
4922
+ result = ::Google::Analytics::Admin::V1alpha::ListEventEditRulesResponse.decode_json response.body, ignore_unknown_fields: true
4923
+
4924
+ yield result, operation if block_given?
4925
+ result
4926
+ end
4927
+
4928
+ ##
4929
+ # Baseline implementation for the create_event_edit_rule REST call
4930
+ #
4931
+ # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateEventEditRuleRequest]
4932
+ # A request object representing the call parameters. Required.
4933
+ # @param options [::Gapic::CallOptions]
4934
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
4935
+ #
4936
+ # @yield [result, operation] Access the result along with the TransportOperation object
4937
+ # @yieldparam result [::Google::Analytics::Admin::V1alpha::EventEditRule]
4938
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
4939
+ #
4940
+ # @return [::Google::Analytics::Admin::V1alpha::EventEditRule]
4941
+ # A result object deserialized from the server's reply
4942
+ def create_event_edit_rule request_pb, options = nil
4943
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
4944
+
4945
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_event_edit_rule_request request_pb
4946
+ query_string_params = if query_string_params.any?
4947
+ query_string_params.to_h { |p| p.split "=", 2 }
4948
+ else
4949
+ {}
4950
+ end
4951
+
4952
+ response = @client_stub.make_http_request(
4953
+ verb,
4954
+ uri: uri,
4955
+ body: body || "",
4956
+ params: query_string_params,
4957
+ options: options
4958
+ )
4959
+ operation = ::Gapic::Rest::TransportOperation.new response
4960
+ result = ::Google::Analytics::Admin::V1alpha::EventEditRule.decode_json response.body, ignore_unknown_fields: true
4961
+
4962
+ yield result, operation if block_given?
4963
+ result
4964
+ end
4965
+
4966
+ ##
4967
+ # Baseline implementation for the update_event_edit_rule REST call
4968
+ #
4969
+ # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateEventEditRuleRequest]
4970
+ # A request object representing the call parameters. Required.
4971
+ # @param options [::Gapic::CallOptions]
4972
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
4973
+ #
4974
+ # @yield [result, operation] Access the result along with the TransportOperation object
4975
+ # @yieldparam result [::Google::Analytics::Admin::V1alpha::EventEditRule]
4976
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
4977
+ #
4978
+ # @return [::Google::Analytics::Admin::V1alpha::EventEditRule]
4447
4979
  # A result object deserialized from the server's reply
4448
- def create_event_create_rule request_pb, options = nil
4980
+ def update_event_edit_rule request_pb, options = nil
4449
4981
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
4450
4982
 
4451
- verb, uri, query_string_params, body = ServiceStub.transcode_create_event_create_rule_request request_pb
4983
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_event_edit_rule_request request_pb
4452
4984
  query_string_params = if query_string_params.any?
4453
4985
  query_string_params.to_h { |p| p.split "=", 2 }
4454
4986
  else
@@ -4463,30 +4995,30 @@ module Google
4463
4995
  options: options
4464
4996
  )
4465
4997
  operation = ::Gapic::Rest::TransportOperation.new response
4466
- result = ::Google::Analytics::Admin::V1alpha::EventCreateRule.decode_json response.body, ignore_unknown_fields: true
4998
+ result = ::Google::Analytics::Admin::V1alpha::EventEditRule.decode_json response.body, ignore_unknown_fields: true
4467
4999
 
4468
5000
  yield result, operation if block_given?
4469
5001
  result
4470
5002
  end
4471
5003
 
4472
5004
  ##
4473
- # Baseline implementation for the update_event_create_rule REST call
5005
+ # Baseline implementation for the delete_event_edit_rule REST call
4474
5006
  #
4475
- # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest]
5007
+ # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteEventEditRuleRequest]
4476
5008
  # A request object representing the call parameters. Required.
4477
5009
  # @param options [::Gapic::CallOptions]
4478
5010
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
4479
5011
  #
4480
5012
  # @yield [result, operation] Access the result along with the TransportOperation object
4481
- # @yieldparam result [::Google::Analytics::Admin::V1alpha::EventCreateRule]
5013
+ # @yieldparam result [::Google::Protobuf::Empty]
4482
5014
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
4483
5015
  #
4484
- # @return [::Google::Analytics::Admin::V1alpha::EventCreateRule]
5016
+ # @return [::Google::Protobuf::Empty]
4485
5017
  # A result object deserialized from the server's reply
4486
- def update_event_create_rule request_pb, options = nil
5018
+ def delete_event_edit_rule request_pb, options = nil
4487
5019
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
4488
5020
 
4489
- verb, uri, query_string_params, body = ServiceStub.transcode_update_event_create_rule_request request_pb
5021
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_event_edit_rule_request request_pb
4490
5022
  query_string_params = if query_string_params.any?
4491
5023
  query_string_params.to_h { |p| p.split "=", 2 }
4492
5024
  else
@@ -4501,16 +5033,16 @@ module Google
4501
5033
  options: options
4502
5034
  )
4503
5035
  operation = ::Gapic::Rest::TransportOperation.new response
4504
- result = ::Google::Analytics::Admin::V1alpha::EventCreateRule.decode_json response.body, ignore_unknown_fields: true
5036
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
4505
5037
 
4506
5038
  yield result, operation if block_given?
4507
5039
  result
4508
5040
  end
4509
5041
 
4510
5042
  ##
4511
- # Baseline implementation for the delete_event_create_rule REST call
5043
+ # Baseline implementation for the reorder_event_edit_rules REST call
4512
5044
  #
4513
- # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest]
5045
+ # @param request_pb [::Google::Analytics::Admin::V1alpha::ReorderEventEditRulesRequest]
4514
5046
  # A request object representing the call parameters. Required.
4515
5047
  # @param options [::Gapic::CallOptions]
4516
5048
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
@@ -4521,10 +5053,10 @@ module Google
4521
5053
  #
4522
5054
  # @return [::Google::Protobuf::Empty]
4523
5055
  # A result object deserialized from the server's reply
4524
- def delete_event_create_rule request_pb, options = nil
5056
+ def reorder_event_edit_rules request_pb, options = nil
4525
5057
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
4526
5058
 
4527
- verb, uri, query_string_params, body = ServiceStub.transcode_delete_event_create_rule_request request_pb
5059
+ verb, uri, query_string_params, body = ServiceStub.transcode_reorder_event_edit_rules_request request_pb
4528
5060
  query_string_params = if query_string_params.any?
4529
5061
  query_string_params.to_h { |p| p.split "=", 2 }
4530
5062
  else
@@ -5002,23 +5534,23 @@ module Google
5002
5534
  end
5003
5535
 
5004
5536
  ##
5005
- # Baseline implementation for the create_subproperty REST call
5537
+ # Baseline implementation for the provision_subproperty REST call
5006
5538
  #
5007
- # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateSubpropertyRequest]
5539
+ # @param request_pb [::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyRequest]
5008
5540
  # A request object representing the call parameters. Required.
5009
5541
  # @param options [::Gapic::CallOptions]
5010
5542
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
5011
5543
  #
5012
5544
  # @yield [result, operation] Access the result along with the TransportOperation object
5013
- # @yieldparam result [::Google::Analytics::Admin::V1alpha::CreateSubpropertyResponse]
5545
+ # @yieldparam result [::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyResponse]
5014
5546
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
5015
5547
  #
5016
- # @return [::Google::Analytics::Admin::V1alpha::CreateSubpropertyResponse]
5548
+ # @return [::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyResponse]
5017
5549
  # A result object deserialized from the server's reply
5018
- def create_subproperty request_pb, options = nil
5550
+ def provision_subproperty request_pb, options = nil
5019
5551
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
5020
5552
 
5021
- verb, uri, query_string_params, body = ServiceStub.transcode_create_subproperty_request request_pb
5553
+ verb, uri, query_string_params, body = ServiceStub.transcode_provision_subproperty_request request_pb
5022
5554
  query_string_params = if query_string_params.any?
5023
5555
  query_string_params.to_h { |p| p.split "=", 2 }
5024
5556
  else
@@ -5033,7 +5565,7 @@ module Google
5033
5565
  options: options
5034
5566
  )
5035
5567
  operation = ::Gapic::Rest::TransportOperation.new response
5036
- result = ::Google::Analytics::Admin::V1alpha::CreateSubpropertyResponse.decode_json response.body, ignore_unknown_fields: true
5568
+ result = ::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyResponse.decode_json response.body, ignore_unknown_fields: true
5037
5569
 
5038
5570
  yield result, operation if block_given?
5039
5571
  result
@@ -6054,6 +6586,113 @@ module Google
6054
6586
  transcoder.transcode request_pb
6055
6587
  end
6056
6588
 
6589
+ ##
6590
+ # @private
6591
+ #
6592
+ # GRPC transcoding helper method for the create_key_event REST call
6593
+ #
6594
+ # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateKeyEventRequest]
6595
+ # A request object representing the call parameters. Required.
6596
+ # @return [Array(String, [String, nil], Hash{String => String})]
6597
+ # Uri, Body, Query string parameters
6598
+ def self.transcode_create_key_event_request request_pb
6599
+ transcoder = Gapic::Rest::GrpcTranscoder.new
6600
+ .with_bindings(
6601
+ uri_method: :post,
6602
+ uri_template: "/v1alpha/{parent}/keyEvents",
6603
+ body: "key_event",
6604
+ matches: [
6605
+ ["parent", %r{^properties/[^/]+/?$}, false]
6606
+ ]
6607
+ )
6608
+ transcoder.transcode request_pb
6609
+ end
6610
+
6611
+ ##
6612
+ # @private
6613
+ #
6614
+ # GRPC transcoding helper method for the update_key_event REST call
6615
+ #
6616
+ # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateKeyEventRequest]
6617
+ # A request object representing the call parameters. Required.
6618
+ # @return [Array(String, [String, nil], Hash{String => String})]
6619
+ # Uri, Body, Query string parameters
6620
+ def self.transcode_update_key_event_request request_pb
6621
+ transcoder = Gapic::Rest::GrpcTranscoder.new
6622
+ .with_bindings(
6623
+ uri_method: :patch,
6624
+ uri_template: "/v1alpha/{key_event.name}",
6625
+ body: "key_event",
6626
+ matches: [
6627
+ ["key_event.name", %r{^properties/[^/]+/keyEvents/[^/]+/?$}, false]
6628
+ ]
6629
+ )
6630
+ transcoder.transcode request_pb
6631
+ end
6632
+
6633
+ ##
6634
+ # @private
6635
+ #
6636
+ # GRPC transcoding helper method for the get_key_event REST call
6637
+ #
6638
+ # @param request_pb [::Google::Analytics::Admin::V1alpha::GetKeyEventRequest]
6639
+ # A request object representing the call parameters. Required.
6640
+ # @return [Array(String, [String, nil], Hash{String => String})]
6641
+ # Uri, Body, Query string parameters
6642
+ def self.transcode_get_key_event_request request_pb
6643
+ transcoder = Gapic::Rest::GrpcTranscoder.new
6644
+ .with_bindings(
6645
+ uri_method: :get,
6646
+ uri_template: "/v1alpha/{name}",
6647
+ matches: [
6648
+ ["name", %r{^properties/[^/]+/keyEvents/[^/]+/?$}, false]
6649
+ ]
6650
+ )
6651
+ transcoder.transcode request_pb
6652
+ end
6653
+
6654
+ ##
6655
+ # @private
6656
+ #
6657
+ # GRPC transcoding helper method for the delete_key_event REST call
6658
+ #
6659
+ # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteKeyEventRequest]
6660
+ # A request object representing the call parameters. Required.
6661
+ # @return [Array(String, [String, nil], Hash{String => String})]
6662
+ # Uri, Body, Query string parameters
6663
+ def self.transcode_delete_key_event_request request_pb
6664
+ transcoder = Gapic::Rest::GrpcTranscoder.new
6665
+ .with_bindings(
6666
+ uri_method: :delete,
6667
+ uri_template: "/v1alpha/{name}",
6668
+ matches: [
6669
+ ["name", %r{^properties/[^/]+/keyEvents/[^/]+/?$}, false]
6670
+ ]
6671
+ )
6672
+ transcoder.transcode request_pb
6673
+ end
6674
+
6675
+ ##
6676
+ # @private
6677
+ #
6678
+ # GRPC transcoding helper method for the list_key_events REST call
6679
+ #
6680
+ # @param request_pb [::Google::Analytics::Admin::V1alpha::ListKeyEventsRequest]
6681
+ # A request object representing the call parameters. Required.
6682
+ # @return [Array(String, [String, nil], Hash{String => String})]
6683
+ # Uri, Body, Query string parameters
6684
+ def self.transcode_list_key_events_request request_pb
6685
+ transcoder = Gapic::Rest::GrpcTranscoder.new
6686
+ .with_bindings(
6687
+ uri_method: :get,
6688
+ uri_template: "/v1alpha/{parent}/keyEvents",
6689
+ matches: [
6690
+ ["parent", %r{^properties/[^/]+/?$}, false]
6691
+ ]
6692
+ )
6693
+ transcoder.transcode request_pb
6694
+ end
6695
+
6057
6696
  ##
6058
6697
  # @private
6059
6698
  #
@@ -7460,6 +8099,28 @@ module Google
7460
8099
  transcoder.transcode request_pb
7461
8100
  end
7462
8101
 
8102
+ ##
8103
+ # @private
8104
+ #
8105
+ # GRPC transcoding helper method for the create_big_query_link REST call
8106
+ #
8107
+ # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateBigQueryLinkRequest]
8108
+ # A request object representing the call parameters. Required.
8109
+ # @return [Array(String, [String, nil], Hash{String => String})]
8110
+ # Uri, Body, Query string parameters
8111
+ def self.transcode_create_big_query_link_request request_pb
8112
+ transcoder = Gapic::Rest::GrpcTranscoder.new
8113
+ .with_bindings(
8114
+ uri_method: :post,
8115
+ uri_template: "/v1alpha/{parent}/bigQueryLinks",
8116
+ body: "bigquery_link",
8117
+ matches: [
8118
+ ["parent", %r{^properties/[^/]+/?$}, false]
8119
+ ]
8120
+ )
8121
+ transcoder.transcode request_pb
8122
+ end
8123
+
7463
8124
  ##
7464
8125
  # @private
7465
8126
  #
@@ -7502,6 +8163,49 @@ module Google
7502
8163
  transcoder.transcode request_pb
7503
8164
  end
7504
8165
 
8166
+ ##
8167
+ # @private
8168
+ #
8169
+ # GRPC transcoding helper method for the delete_big_query_link REST call
8170
+ #
8171
+ # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteBigQueryLinkRequest]
8172
+ # A request object representing the call parameters. Required.
8173
+ # @return [Array(String, [String, nil], Hash{String => String})]
8174
+ # Uri, Body, Query string parameters
8175
+ def self.transcode_delete_big_query_link_request request_pb
8176
+ transcoder = Gapic::Rest::GrpcTranscoder.new
8177
+ .with_bindings(
8178
+ uri_method: :delete,
8179
+ uri_template: "/v1alpha/{name}",
8180
+ matches: [
8181
+ ["name", %r{^properties/[^/]+/bigQueryLinks/[^/]+/?$}, false]
8182
+ ]
8183
+ )
8184
+ transcoder.transcode request_pb
8185
+ end
8186
+
8187
+ ##
8188
+ # @private
8189
+ #
8190
+ # GRPC transcoding helper method for the update_big_query_link REST call
8191
+ #
8192
+ # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateBigQueryLinkRequest]
8193
+ # A request object representing the call parameters. Required.
8194
+ # @return [Array(String, [String, nil], Hash{String => String})]
8195
+ # Uri, Body, Query string parameters
8196
+ def self.transcode_update_big_query_link_request request_pb
8197
+ transcoder = Gapic::Rest::GrpcTranscoder.new
8198
+ .with_bindings(
8199
+ uri_method: :patch,
8200
+ uri_template: "/v1alpha/{bigquery_link.name}",
8201
+ body: "bigquery_link",
8202
+ matches: [
8203
+ ["bigquery_link.name", %r{^properties/[^/]+/bigQueryLinks/[^/]+/?$}, false]
8204
+ ]
8205
+ )
8206
+ transcoder.transcode request_pb
8207
+ end
8208
+
7505
8209
  ##
7506
8210
  # @private
7507
8211
  #
@@ -7816,6 +8520,135 @@ module Google
7816
8520
  transcoder.transcode request_pb
7817
8521
  end
7818
8522
 
8523
+ ##
8524
+ # @private
8525
+ #
8526
+ # GRPC transcoding helper method for the get_event_edit_rule REST call
8527
+ #
8528
+ # @param request_pb [::Google::Analytics::Admin::V1alpha::GetEventEditRuleRequest]
8529
+ # A request object representing the call parameters. Required.
8530
+ # @return [Array(String, [String, nil], Hash{String => String})]
8531
+ # Uri, Body, Query string parameters
8532
+ def self.transcode_get_event_edit_rule_request request_pb
8533
+ transcoder = Gapic::Rest::GrpcTranscoder.new
8534
+ .with_bindings(
8535
+ uri_method: :get,
8536
+ uri_template: "/v1alpha/{name}",
8537
+ matches: [
8538
+ ["name", %r{^properties/[^/]+/dataStreams/[^/]+/eventEditRules/[^/]+/?$}, false]
8539
+ ]
8540
+ )
8541
+ transcoder.transcode request_pb
8542
+ end
8543
+
8544
+ ##
8545
+ # @private
8546
+ #
8547
+ # GRPC transcoding helper method for the list_event_edit_rules REST call
8548
+ #
8549
+ # @param request_pb [::Google::Analytics::Admin::V1alpha::ListEventEditRulesRequest]
8550
+ # A request object representing the call parameters. Required.
8551
+ # @return [Array(String, [String, nil], Hash{String => String})]
8552
+ # Uri, Body, Query string parameters
8553
+ def self.transcode_list_event_edit_rules_request request_pb
8554
+ transcoder = Gapic::Rest::GrpcTranscoder.new
8555
+ .with_bindings(
8556
+ uri_method: :get,
8557
+ uri_template: "/v1alpha/{parent}/eventEditRules",
8558
+ matches: [
8559
+ ["parent", %r{^properties/[^/]+/dataStreams/[^/]+/?$}, false]
8560
+ ]
8561
+ )
8562
+ transcoder.transcode request_pb
8563
+ end
8564
+
8565
+ ##
8566
+ # @private
8567
+ #
8568
+ # GRPC transcoding helper method for the create_event_edit_rule REST call
8569
+ #
8570
+ # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateEventEditRuleRequest]
8571
+ # A request object representing the call parameters. Required.
8572
+ # @return [Array(String, [String, nil], Hash{String => String})]
8573
+ # Uri, Body, Query string parameters
8574
+ def self.transcode_create_event_edit_rule_request request_pb
8575
+ transcoder = Gapic::Rest::GrpcTranscoder.new
8576
+ .with_bindings(
8577
+ uri_method: :post,
8578
+ uri_template: "/v1alpha/{parent}/eventEditRules",
8579
+ body: "event_edit_rule",
8580
+ matches: [
8581
+ ["parent", %r{^properties/[^/]+/dataStreams/[^/]+/?$}, false]
8582
+ ]
8583
+ )
8584
+ transcoder.transcode request_pb
8585
+ end
8586
+
8587
+ ##
8588
+ # @private
8589
+ #
8590
+ # GRPC transcoding helper method for the update_event_edit_rule REST call
8591
+ #
8592
+ # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateEventEditRuleRequest]
8593
+ # A request object representing the call parameters. Required.
8594
+ # @return [Array(String, [String, nil], Hash{String => String})]
8595
+ # Uri, Body, Query string parameters
8596
+ def self.transcode_update_event_edit_rule_request request_pb
8597
+ transcoder = Gapic::Rest::GrpcTranscoder.new
8598
+ .with_bindings(
8599
+ uri_method: :patch,
8600
+ uri_template: "/v1alpha/{event_edit_rule.name}",
8601
+ body: "event_edit_rule",
8602
+ matches: [
8603
+ ["event_edit_rule.name", %r{^properties/[^/]+/dataStreams/[^/]+/eventEditRules/[^/]+/?$}, false]
8604
+ ]
8605
+ )
8606
+ transcoder.transcode request_pb
8607
+ end
8608
+
8609
+ ##
8610
+ # @private
8611
+ #
8612
+ # GRPC transcoding helper method for the delete_event_edit_rule REST call
8613
+ #
8614
+ # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteEventEditRuleRequest]
8615
+ # A request object representing the call parameters. Required.
8616
+ # @return [Array(String, [String, nil], Hash{String => String})]
8617
+ # Uri, Body, Query string parameters
8618
+ def self.transcode_delete_event_edit_rule_request request_pb
8619
+ transcoder = Gapic::Rest::GrpcTranscoder.new
8620
+ .with_bindings(
8621
+ uri_method: :delete,
8622
+ uri_template: "/v1alpha/{name}",
8623
+ matches: [
8624
+ ["name", %r{^properties/[^/]+/dataStreams/[^/]+/eventEditRules/[^/]+/?$}, false]
8625
+ ]
8626
+ )
8627
+ transcoder.transcode request_pb
8628
+ end
8629
+
8630
+ ##
8631
+ # @private
8632
+ #
8633
+ # GRPC transcoding helper method for the reorder_event_edit_rules REST call
8634
+ #
8635
+ # @param request_pb [::Google::Analytics::Admin::V1alpha::ReorderEventEditRulesRequest]
8636
+ # A request object representing the call parameters. Required.
8637
+ # @return [Array(String, [String, nil], Hash{String => String})]
8638
+ # Uri, Body, Query string parameters
8639
+ def self.transcode_reorder_event_edit_rules_request request_pb
8640
+ transcoder = Gapic::Rest::GrpcTranscoder.new
8641
+ .with_bindings(
8642
+ uri_method: :post,
8643
+ uri_template: "/v1alpha/{parent}/eventEditRules:reorder",
8644
+ body: "*",
8645
+ matches: [
8646
+ ["parent", %r{^properties/[^/]+/dataStreams/[^/]+/?$}, false]
8647
+ ]
8648
+ )
8649
+ transcoder.transcode request_pb
8650
+ end
8651
+
7819
8652
  ##
7820
8653
  # @private
7821
8654
  #
@@ -8074,17 +8907,17 @@ module Google
8074
8907
  ##
8075
8908
  # @private
8076
8909
  #
8077
- # GRPC transcoding helper method for the create_subproperty REST call
8910
+ # GRPC transcoding helper method for the provision_subproperty REST call
8078
8911
  #
8079
- # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateSubpropertyRequest]
8912
+ # @param request_pb [::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyRequest]
8080
8913
  # A request object representing the call parameters. Required.
8081
8914
  # @return [Array(String, [String, nil], Hash{String => String})]
8082
8915
  # Uri, Body, Query string parameters
8083
- def self.transcode_create_subproperty_request request_pb
8916
+ def self.transcode_provision_subproperty_request request_pb
8084
8917
  transcoder = Gapic::Rest::GrpcTranscoder.new
8085
8918
  .with_bindings(
8086
8919
  uri_method: :post,
8087
- uri_template: "/v1alpha/properties:createSubproperty",
8920
+ uri_template: "/v1alpha/properties:provisionSubproperty",
8088
8921
  body: "*",
8089
8922
  matches: []
8090
8923
  )