google-cloud-chronicle 1.3.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: 6df8c80c8874514301cfedcb48b307b6980517a982b87c752477d6416f2c7331
4
- data.tar.gz: f752a71dac0c1bbf82ddbb74e7d08b94217bdb6107f2a57f5bbc213f9c8c5fb0
3
+ metadata.gz: 3a74938ece77918b0cf7656373498970b6274467bc7577964540f925697c4ae2
4
+ data.tar.gz: f17bcb42b33a9775a4137fe579494dd806766e925312928a8710efb6f816df3d
5
5
  SHA512:
6
- metadata.gz: 466c9858d7f7636832d3f49ba0a5e2f6eb533c0091b136240b5bebeef0ab21a370ac0516f73ca90bd36bb43b41003550a6895f2c0e2b2d0ee4f1f6b0a707899b
7
- data.tar.gz: bdf37da85dc102aa05819b56451ed5545b4bae6af03861b55fee8a6ea715e1577961a40c69485785bf459b547b0c112ddecde8f028aa5acd30046630cc340cb7
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.3.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
  #
@@ -889,76 +1030,6 @@ module Google
889
1030
  false
890
1031
  end
891
1032
 
892
- ##
893
- # Create a new client object for RuleService.
894
- #
895
- # 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)
897
- # for a gRPC client for version V1 of the API.
898
- # However, you can specify a different API version by passing it in the
899
- # `version` parameter. If the RuleService service is
900
- # supported by that API version, and the corresponding gem is available, the
901
- # appropriate versioned client will be returned.
902
- # You can also specify a different transport by passing `:rest` or `:grpc` in
903
- # the `transport` parameter.
904
- #
905
- # 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.
907
- # You can determine whether the method will succeed by calling
908
- # {Google::Cloud::Chronicle.rule_service_available?}.
909
- #
910
- # ## About RuleService
911
- #
912
- # RuleService provides interface for user-created rules.
913
- #
914
- # @param version [::String, ::Symbol] The API version to connect to. Optional.
915
- # Defaults to `:v1`.
916
- # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
917
- # @return [::Object] A client object for the specified version.
918
- #
919
- def self.rule_service version: :v1, transport: :grpc, &block
920
- require "google/cloud/chronicle/#{version.to_s.downcase}"
921
-
922
- package_name = Google::Cloud::Chronicle
923
- .constants
924
- .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
925
- .first
926
- service_module = Google::Cloud::Chronicle.const_get(package_name).const_get(:RuleService)
927
- service_module = service_module.const_get(:Rest) if transport == :rest
928
- service_module.const_get(:Client).new(&block)
929
- end
930
-
931
- ##
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}.
934
- # 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.
937
- #
938
- # @param version [::String, ::Symbol] The API version to connect to. Optional.
939
- # Defaults to `:v1`.
940
- # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
941
- # @return [boolean] Whether the service is available.
942
- #
943
- def self.rule_service_available? version: :v1, transport: :grpc
944
- require "google/cloud/chronicle/#{version.to_s.downcase}"
945
- package_name = Google::Cloud::Chronicle
946
- .constants
947
- .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
948
- .first
949
- return false unless package_name
950
- 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
953
- if transport == :rest
954
- return false unless service_module.const_defined? :Rest
955
- service_module = service_module.const_get :Rest
956
- end
957
- service_module.const_defined? :Client
958
- rescue ::LoadError
959
- false
960
- end
961
-
962
1033
  ##
963
1034
  # Create a new client object for RuleExecutionErrorService.
964
1035
  #
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.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC