google-cloud-chronicle 1.2.0 → 1.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: de78013dbb9ae92834994255210000de3a8f27dac9852093e6558b42abc3326e
4
- data.tar.gz: 5b5b0f4d912471439d08f1bd731a673816c45b338b4377182b10aeeaad2f3d29
3
+ metadata.gz: 3a74938ece77918b0cf7656373498970b6274467bc7577964540f925697c4ae2
4
+ data.tar.gz: f17bcb42b33a9775a4137fe579494dd806766e925312928a8710efb6f816df3d
5
5
  SHA512:
6
- metadata.gz: '08f34698049c76c02f2986b6807b513ac1e31855ade46f20e1d5da919c8bce5a6be867d21bc9f077ea8ccc6f3ce536621b833178febe6e47b44605ba722cdaa5'
7
- data.tar.gz: 99b8ee31de8ce2e0bd653498bba370e147e5fb515fb1355239b2940d63d3172e0e7741923c46a1e095d4d1473139321a02300762f110c5810376dde5634011d7
6
+ metadata.gz: 0b1385cbdb1d81909ab874f1158cd2b5454a06487c6f9bbcf7734498e17d1ae2f9912b4f05b391b7ea2b833ad8c3644c565969b08a1671f707a06baef9a7a2a7
7
+ data.tar.gz: 4940f1f0b1a64ae70cd36590a515fa2afeb76ecfb59eba82c5c49f26142414bf3269d8feefab857ff437ab1828e0a85013f7d1b8a237d9030c7efdb481ed5de9
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module Chronicle
23
- VERSION = "1.2.0"
23
+ VERSION = "1.4.0"
24
24
  end
25
25
  end
26
26
  end
@@ -115,6 +115,76 @@ module Google
115
115
  false
116
116
  end
117
117
 
118
+ ##
119
+ # Create a new client object for RuleService.
120
+ #
121
+ # By default, this returns an instance of
122
+ # [Google::Cloud::Chronicle::V1::RuleService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-RuleService-Client)
123
+ # for a gRPC client for version V1 of the API.
124
+ # However, you can specify a different API version by passing it in the
125
+ # `version` parameter. If the RuleService service is
126
+ # supported by that API version, and the corresponding gem is available, the
127
+ # appropriate versioned client will be returned.
128
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
129
+ # the `transport` parameter.
130
+ #
131
+ # Raises an exception if the currently installed versioned client gem for the
132
+ # given API version does not support the given transport of the RuleService service.
133
+ # You can determine whether the method will succeed by calling
134
+ # {Google::Cloud::Chronicle.rule_service_available?}.
135
+ #
136
+ # ## About RuleService
137
+ #
138
+ # RuleService provides interface for user-created rules.
139
+ #
140
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
141
+ # Defaults to `:v1`.
142
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
143
+ # @return [::Object] A client object for the specified version.
144
+ #
145
+ def self.rule_service version: :v1, transport: :grpc, &block
146
+ require "google/cloud/chronicle/#{version.to_s.downcase}"
147
+
148
+ package_name = Google::Cloud::Chronicle
149
+ .constants
150
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
151
+ .first
152
+ service_module = Google::Cloud::Chronicle.const_get(package_name).const_get(:RuleService)
153
+ service_module = service_module.const_get(:Rest) if transport == :rest
154
+ service_module.const_get(:Client).new(&block)
155
+ end
156
+
157
+ ##
158
+ # Determines whether the RuleService service is supported by the current client.
159
+ # If true, you can retrieve a client object by calling {Google::Cloud::Chronicle.rule_service}.
160
+ # If false, that method will raise an exception. This could happen if the given
161
+ # API version does not exist or does not support the RuleService service,
162
+ # or if the versioned client gem needs an update to support the RuleService service.
163
+ #
164
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
165
+ # Defaults to `:v1`.
166
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
167
+ # @return [boolean] Whether the service is available.
168
+ #
169
+ def self.rule_service_available? version: :v1, transport: :grpc
170
+ require "google/cloud/chronicle/#{version.to_s.downcase}"
171
+ package_name = Google::Cloud::Chronicle
172
+ .constants
173
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
174
+ .first
175
+ return false unless package_name
176
+ service_module = Google::Cloud::Chronicle.const_get package_name
177
+ return false unless service_module.const_defined? :RuleService
178
+ service_module = service_module.const_get :RuleService
179
+ if transport == :rest
180
+ return false unless service_module.const_defined? :Rest
181
+ service_module = service_module.const_get :Rest
182
+ end
183
+ service_module.const_defined? :Client
184
+ rescue ::LoadError
185
+ false
186
+ end
187
+
118
188
  ##
119
189
  # Create a new client object for DashboardQueryService.
120
190
  #
@@ -607,6 +677,77 @@ module Google
607
677
  false
608
678
  end
609
679
 
680
+ ##
681
+ # Create a new client object for FeaturedContentRuleService.
682
+ #
683
+ # By default, this returns an instance of
684
+ # [Google::Cloud::Chronicle::V1::FeaturedContentRuleService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-FeaturedContentRuleService-Client)
685
+ # for a gRPC client for version V1 of the API.
686
+ # However, you can specify a different API version by passing it in the
687
+ # `version` parameter. If the FeaturedContentRuleService service is
688
+ # supported by that API version, and the corresponding gem is available, the
689
+ # appropriate versioned client will be returned.
690
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
691
+ # the `transport` parameter.
692
+ #
693
+ # Raises an exception if the currently installed versioned client gem for the
694
+ # given API version does not support the given transport of the FeaturedContentRuleService service.
695
+ # You can determine whether the method will succeed by calling
696
+ # {Google::Cloud::Chronicle.featured_content_rule_service_available?}.
697
+ #
698
+ # ## About FeaturedContentRuleService
699
+ #
700
+ # This service provides functionality for managing
701
+ # FeaturedContentRule.
702
+ #
703
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
704
+ # Defaults to `:v1`.
705
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
706
+ # @return [::Object] A client object for the specified version.
707
+ #
708
+ def self.featured_content_rule_service version: :v1, transport: :grpc, &block
709
+ require "google/cloud/chronicle/#{version.to_s.downcase}"
710
+
711
+ package_name = Google::Cloud::Chronicle
712
+ .constants
713
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
714
+ .first
715
+ service_module = Google::Cloud::Chronicle.const_get(package_name).const_get(:FeaturedContentRuleService)
716
+ service_module = service_module.const_get(:Rest) if transport == :rest
717
+ service_module.const_get(:Client).new(&block)
718
+ end
719
+
720
+ ##
721
+ # Determines whether the FeaturedContentRuleService service is supported by the current client.
722
+ # If true, you can retrieve a client object by calling {Google::Cloud::Chronicle.featured_content_rule_service}.
723
+ # If false, that method will raise an exception. This could happen if the given
724
+ # API version does not exist or does not support the FeaturedContentRuleService service,
725
+ # or if the versioned client gem needs an update to support the FeaturedContentRuleService service.
726
+ #
727
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
728
+ # Defaults to `:v1`.
729
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
730
+ # @return [boolean] Whether the service is available.
731
+ #
732
+ def self.featured_content_rule_service_available? version: :v1, transport: :grpc
733
+ require "google/cloud/chronicle/#{version.to_s.downcase}"
734
+ package_name = Google::Cloud::Chronicle
735
+ .constants
736
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
737
+ .first
738
+ return false unless package_name
739
+ service_module = Google::Cloud::Chronicle.const_get package_name
740
+ return false unless service_module.const_defined? :FeaturedContentRuleService
741
+ service_module = service_module.const_get :FeaturedContentRuleService
742
+ if transport == :rest
743
+ return false unless service_module.const_defined? :Rest
744
+ service_module = service_module.const_get :Rest
745
+ end
746
+ service_module.const_defined? :Client
747
+ rescue ::LoadError
748
+ false
749
+ end
750
+
610
751
  ##
611
752
  # Create a new client object for FeedsService.
612
753
  #
@@ -890,57 +1031,58 @@ module Google
890
1031
  end
891
1032
 
892
1033
  ##
893
- # Create a new client object for RuleService.
1034
+ # Create a new client object for RuleExecutionErrorService.
894
1035
  #
895
1036
  # By default, this returns an instance of
896
- # [Google::Cloud::Chronicle::V1::RuleService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-RuleService-Client)
1037
+ # [Google::Cloud::Chronicle::V1::RuleExecutionErrorService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-RuleExecutionErrorService-Client)
897
1038
  # for a gRPC client for version V1 of the API.
898
1039
  # However, you can specify a different API version by passing it in the
899
- # `version` parameter. If the RuleService service is
1040
+ # `version` parameter. If the RuleExecutionErrorService service is
900
1041
  # supported by that API version, and the corresponding gem is available, the
901
1042
  # appropriate versioned client will be returned.
902
1043
  # You can also specify a different transport by passing `:rest` or `:grpc` in
903
1044
  # the `transport` parameter.
904
1045
  #
905
1046
  # Raises an exception if the currently installed versioned client gem for the
906
- # given API version does not support the given transport of the RuleService service.
1047
+ # given API version does not support the given transport of the RuleExecutionErrorService service.
907
1048
  # You can determine whether the method will succeed by calling
908
- # {Google::Cloud::Chronicle.rule_service_available?}.
1049
+ # {Google::Cloud::Chronicle.rule_execution_error_service_available?}.
909
1050
  #
910
- # ## About RuleService
1051
+ # ## About RuleExecutionErrorService
911
1052
  #
912
- # RuleService provides interface for user-created rules.
1053
+ # RuleExecutionErrorService contains endpoints related to rule execution
1054
+ # errors.
913
1055
  #
914
1056
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
915
1057
  # Defaults to `:v1`.
916
1058
  # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
917
1059
  # @return [::Object] A client object for the specified version.
918
1060
  #
919
- def self.rule_service version: :v1, transport: :grpc, &block
1061
+ def self.rule_execution_error_service version: :v1, transport: :grpc, &block
920
1062
  require "google/cloud/chronicle/#{version.to_s.downcase}"
921
1063
 
922
1064
  package_name = Google::Cloud::Chronicle
923
1065
  .constants
924
1066
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
925
1067
  .first
926
- service_module = Google::Cloud::Chronicle.const_get(package_name).const_get(:RuleService)
1068
+ service_module = Google::Cloud::Chronicle.const_get(package_name).const_get(:RuleExecutionErrorService)
927
1069
  service_module = service_module.const_get(:Rest) if transport == :rest
928
1070
  service_module.const_get(:Client).new(&block)
929
1071
  end
930
1072
 
931
1073
  ##
932
- # Determines whether the RuleService service is supported by the current client.
933
- # If true, you can retrieve a client object by calling {Google::Cloud::Chronicle.rule_service}.
1074
+ # Determines whether the RuleExecutionErrorService service is supported by the current client.
1075
+ # If true, you can retrieve a client object by calling {Google::Cloud::Chronicle.rule_execution_error_service}.
934
1076
  # If false, that method will raise an exception. This could happen if the given
935
- # API version does not exist or does not support the RuleService service,
936
- # or if the versioned client gem needs an update to support the RuleService service.
1077
+ # API version does not exist or does not support the RuleExecutionErrorService service,
1078
+ # or if the versioned client gem needs an update to support the RuleExecutionErrorService service.
937
1079
  #
938
1080
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
939
1081
  # Defaults to `:v1`.
940
1082
  # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
941
1083
  # @return [boolean] Whether the service is available.
942
1084
  #
943
- def self.rule_service_available? version: :v1, transport: :grpc
1085
+ def self.rule_execution_error_service_available? version: :v1, transport: :grpc
944
1086
  require "google/cloud/chronicle/#{version.to_s.downcase}"
945
1087
  package_name = Google::Cloud::Chronicle
946
1088
  .constants
@@ -948,8 +1090,8 @@ module Google
948
1090
  .first
949
1091
  return false unless package_name
950
1092
  service_module = Google::Cloud::Chronicle.const_get package_name
951
- return false unless service_module.const_defined? :RuleService
952
- service_module = service_module.const_get :RuleService
1093
+ return false unless service_module.const_defined? :RuleExecutionErrorService
1094
+ service_module = service_module.const_get :RuleExecutionErrorService
953
1095
  if transport == :rest
954
1096
  return false unless service_module.const_defined? :Rest
955
1097
  service_module = service_module.const_get :Rest
@@ -960,58 +1102,57 @@ module Google
960
1102
  end
961
1103
 
962
1104
  ##
963
- # Create a new client object for RuleExecutionErrorService.
1105
+ # Create a new client object for SearchService.
964
1106
  #
965
1107
  # By default, this returns an instance of
966
- # [Google::Cloud::Chronicle::V1::RuleExecutionErrorService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-RuleExecutionErrorService-Client)
1108
+ # [Google::Cloud::Chronicle::V1::SearchService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-SearchService-Client)
967
1109
  # for a gRPC client for version V1 of the API.
968
1110
  # However, you can specify a different API version by passing it in the
969
- # `version` parameter. If the RuleExecutionErrorService service is
1111
+ # `version` parameter. If the SearchService service is
970
1112
  # supported by that API version, and the corresponding gem is available, the
971
1113
  # appropriate versioned client will be returned.
972
1114
  # You can also specify a different transport by passing `:rest` or `:grpc` in
973
1115
  # the `transport` parameter.
974
1116
  #
975
1117
  # Raises an exception if the currently installed versioned client gem for the
976
- # given API version does not support the given transport of the RuleExecutionErrorService service.
1118
+ # given API version does not support the given transport of the SearchService service.
977
1119
  # You can determine whether the method will succeed by calling
978
- # {Google::Cloud::Chronicle.rule_execution_error_service_available?}.
1120
+ # {Google::Cloud::Chronicle.search_service_available?}.
979
1121
  #
980
- # ## About RuleExecutionErrorService
1122
+ # ## About SearchService
981
1123
  #
982
- # RuleExecutionErrorService contains endpoints related to rule execution
983
- # errors.
1124
+ # SearchService provides methods for searching data in Chronicle.
984
1125
  #
985
1126
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
986
1127
  # Defaults to `:v1`.
987
1128
  # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
988
1129
  # @return [::Object] A client object for the specified version.
989
1130
  #
990
- def self.rule_execution_error_service version: :v1, transport: :grpc, &block
1131
+ def self.search_service version: :v1, transport: :grpc, &block
991
1132
  require "google/cloud/chronicle/#{version.to_s.downcase}"
992
1133
 
993
1134
  package_name = Google::Cloud::Chronicle
994
1135
  .constants
995
1136
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
996
1137
  .first
997
- service_module = Google::Cloud::Chronicle.const_get(package_name).const_get(:RuleExecutionErrorService)
1138
+ service_module = Google::Cloud::Chronicle.const_get(package_name).const_get(:SearchService)
998
1139
  service_module = service_module.const_get(:Rest) if transport == :rest
999
1140
  service_module.const_get(:Client).new(&block)
1000
1141
  end
1001
1142
 
1002
1143
  ##
1003
- # Determines whether the RuleExecutionErrorService service is supported by the current client.
1004
- # If true, you can retrieve a client object by calling {Google::Cloud::Chronicle.rule_execution_error_service}.
1144
+ # Determines whether the SearchService service is supported by the current client.
1145
+ # If true, you can retrieve a client object by calling {Google::Cloud::Chronicle.search_service}.
1005
1146
  # If false, that method will raise an exception. This could happen if the given
1006
- # API version does not exist or does not support the RuleExecutionErrorService service,
1007
- # or if the versioned client gem needs an update to support the RuleExecutionErrorService service.
1147
+ # API version does not exist or does not support the SearchService service,
1148
+ # or if the versioned client gem needs an update to support the SearchService service.
1008
1149
  #
1009
1150
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1010
1151
  # Defaults to `:v1`.
1011
1152
  # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
1012
1153
  # @return [boolean] Whether the service is available.
1013
1154
  #
1014
- def self.rule_execution_error_service_available? version: :v1, transport: :grpc
1155
+ def self.search_service_available? version: :v1, transport: :grpc
1015
1156
  require "google/cloud/chronicle/#{version.to_s.downcase}"
1016
1157
  package_name = Google::Cloud::Chronicle
1017
1158
  .constants
@@ -1019,8 +1160,8 @@ module Google
1019
1160
  .first
1020
1161
  return false unless package_name
1021
1162
  service_module = Google::Cloud::Chronicle.const_get package_name
1022
- return false unless service_module.const_defined? :RuleExecutionErrorService
1023
- service_module = service_module.const_get :RuleExecutionErrorService
1163
+ return false unless service_module.const_defined? :SearchService
1164
+ service_module = service_module.const_get :SearchService
1024
1165
  if transport == :rest
1025
1166
  return false unless service_module.const_defined? :Rest
1026
1167
  service_module = service_module.const_get :Rest
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-chronicle
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC