google-apis-pubsub_v1 0.58.0 → 0.60.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb10006b54a68e638a2cc3a31dfa67929102a7c1604dc0aedc83500ab78c9d78
|
4
|
+
data.tar.gz: 62f16f97b2b50b5abad81a4ec42c2bd198f7ca2b8d70962d389ebfa142c4ef1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe360fddbd72966e7b46e2636559edbc323574440a830f02f549483390525569a73da0602312ecf87116cbbba243c405c5b2ba9c7cbe724a022cec521b32c91c
|
7
|
+
data.tar.gz: '059efce80cb542c68606b363f1ad1b6fa9ce92c9d995c275c956c063df3f92036a97dc1fcd809ca330bc6e0c22f0283e08df87e4cae3bbe59599c4f49d68b764'
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release history for google-apis-pubsub_v1
|
2
2
|
|
3
|
+
### v0.60.0 (2025-03-23)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20250311
|
6
|
+
|
7
|
+
### v0.59.0 (2025-03-02)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20250218
|
10
|
+
* Regenerated using generator version 0.16.0
|
11
|
+
|
3
12
|
### v0.58.0 (2025-01-07)
|
4
13
|
|
5
14
|
* Regenerated from discovery document revision 20241231
|
@@ -576,7 +576,7 @@ module Google
|
|
576
576
|
|
577
577
|
# Optional. The maximum duration that can elapse before a new Cloud Storage file
|
578
578
|
# is created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed
|
579
|
-
# the subscription's
|
579
|
+
# the subscription's acknowledgment deadline.
|
580
580
|
# Corresponds to the JSON property `maxDuration`
|
581
581
|
# @return [String]
|
582
582
|
attr_accessor :max_duration
|
@@ -754,11 +754,11 @@ module Google
|
|
754
754
|
|
755
755
|
# Optional. The maximum number of delivery attempts for any message. The value
|
756
756
|
# must be between 5 and 100. The number of delivery attempts is defined as 1 + (
|
757
|
-
# the sum of number of NACKs and number of times the
|
758
|
-
#
|
759
|
-
#
|
760
|
-
#
|
761
|
-
#
|
757
|
+
# the sum of number of NACKs and number of times the acknowledgment deadline has
|
758
|
+
# been exceeded for the message). A NACK is any call to ModifyAckDeadline with a
|
759
|
+
# 0 deadline. Note that client libraries may automatically extend ack_deadlines.
|
760
|
+
# This field will be honored on a best effort basis. If this parameter is 0, a
|
761
|
+
# default value of 5 is used.
|
762
762
|
# Corresponds to the JSON property `maxDeliveryAttempts`
|
763
763
|
# @return [Fixnum]
|
764
764
|
attr_accessor :max_delivery_attempts
|
@@ -930,6 +930,43 @@ module Google
|
|
930
930
|
end
|
931
931
|
end
|
932
932
|
|
933
|
+
# User-defined JavaScript function that can transform or filter a Pub/Sub
|
934
|
+
# message.
|
935
|
+
class JavaScriptUdf
|
936
|
+
include Google::Apis::Core::Hashable
|
937
|
+
|
938
|
+
# Required. JavaScript code that contains a function `function_name` with the
|
939
|
+
# below signature: ``` /** * Transforms a Pub/Sub message. * @return `(Object)>|
|
940
|
+
# null)` - To * filter a message, return `null`. To transform a message return a
|
941
|
+
# map * with the following keys: * - (required) 'data' : `string` * - (optional)
|
942
|
+
# 'attributes' : `Object` * Returning empty `attributes` will remove all
|
943
|
+
# attributes from the * message. * * @param `(Object)>` Pub/Sub * message. Keys:
|
944
|
+
# * - (required) 'data' : `string` * - (required) 'attributes' : `Object` * * @
|
945
|
+
# param `Object` metadata - Pub/Sub message metadata. * Keys: * - (required) '
|
946
|
+
# message_id' : `string` * - (optional) 'publish_time': `string` YYYY-MM-DDTHH:
|
947
|
+
# MM:SSZ format * - (optional) 'ordering_key': `string` */ function (message,
|
948
|
+
# metadata) ` ` ```
|
949
|
+
# Corresponds to the JSON property `code`
|
950
|
+
# @return [String]
|
951
|
+
attr_accessor :code
|
952
|
+
|
953
|
+
# Required. Name of the JavasScript function that should applied to Pub/Sub
|
954
|
+
# messages.
|
955
|
+
# Corresponds to the JSON property `functionName`
|
956
|
+
# @return [String]
|
957
|
+
attr_accessor :function_name
|
958
|
+
|
959
|
+
def initialize(**args)
|
960
|
+
update!(**args)
|
961
|
+
end
|
962
|
+
|
963
|
+
# Update properties of this object
|
964
|
+
def update!(**args)
|
965
|
+
@code = args[:code] if args.key?(:code)
|
966
|
+
@function_name = args[:function_name] if args.key?(:function_name)
|
967
|
+
end
|
968
|
+
end
|
969
|
+
|
933
970
|
# Response for the `ListSchemaRevisions` method.
|
934
971
|
class ListSchemaRevisionsResponse
|
935
972
|
include Google::Apis::Core::Hashable
|
@@ -1150,6 +1187,42 @@ module Google
|
|
1150
1187
|
end
|
1151
1188
|
end
|
1152
1189
|
|
1190
|
+
# All supported message transforms types.
|
1191
|
+
class MessageTransform
|
1192
|
+
include Google::Apis::Core::Hashable
|
1193
|
+
|
1194
|
+
# Optional. If true, the transform is disabled and will not be applied to
|
1195
|
+
# messages. Defaults to `false`.
|
1196
|
+
# Corresponds to the JSON property `disabled`
|
1197
|
+
# @return [Boolean]
|
1198
|
+
attr_accessor :disabled
|
1199
|
+
alias_method :disabled?, :disabled
|
1200
|
+
|
1201
|
+
# Optional. This field is deprecated, use the `disabled` field to disable
|
1202
|
+
# transforms.
|
1203
|
+
# Corresponds to the JSON property `enabled`
|
1204
|
+
# @return [Boolean]
|
1205
|
+
attr_accessor :enabled
|
1206
|
+
alias_method :enabled?, :enabled
|
1207
|
+
|
1208
|
+
# User-defined JavaScript function that can transform or filter a Pub/Sub
|
1209
|
+
# message.
|
1210
|
+
# Corresponds to the JSON property `javascriptUdf`
|
1211
|
+
# @return [Google::Apis::PubsubV1::JavaScriptUdf]
|
1212
|
+
attr_accessor :javascript_udf
|
1213
|
+
|
1214
|
+
def initialize(**args)
|
1215
|
+
update!(**args)
|
1216
|
+
end
|
1217
|
+
|
1218
|
+
# Update properties of this object
|
1219
|
+
def update!(**args)
|
1220
|
+
@disabled = args[:disabled] if args.key?(:disabled)
|
1221
|
+
@enabled = args[:enabled] if args.key?(:enabled)
|
1222
|
+
@javascript_udf = args[:javascript_udf] if args.key?(:javascript_udf)
|
1223
|
+
end
|
1224
|
+
end
|
1225
|
+
|
1153
1226
|
# Request for the ModifyAckDeadline method.
|
1154
1227
|
class ModifyAckDeadlineRequest
|
1155
1228
|
include Google::Apis::Core::Hashable
|
@@ -1665,7 +1738,7 @@ module Google
|
|
1665
1738
|
# A policy that specifies how Pub/Sub retries message delivery. Retry delay will
|
1666
1739
|
# be exponential based on provided minimum and maximum backoffs. https://en.
|
1667
1740
|
# wikipedia.org/wiki/Exponential_backoff. RetryPolicy will be triggered on NACKs
|
1668
|
-
# or
|
1741
|
+
# or acknowledgment deadline exceeded events for a given message. Retry Policy
|
1669
1742
|
# is implemented on a best effort basis. At times, the delay between consecutive
|
1670
1743
|
# deliveries may not match the configuration. That is, delay can be more or less
|
1671
1744
|
# than configured backoff.
|
@@ -2009,7 +2082,7 @@ module Google
|
|
2009
2082
|
# Optional. If true, Pub/Sub provides the following guarantees for the delivery
|
2010
2083
|
# of a message with a given value of `message_id` on this subscription: * The
|
2011
2084
|
# message sent to a subscriber is guaranteed not to be resent before the message'
|
2012
|
-
# s
|
2085
|
+
# s acknowledgment deadline expires. * An acknowledged message will not be
|
2013
2086
|
# resent to a subscriber. Note that subscribers may still receive multiple
|
2014
2087
|
# copies of a message when `enable_exactly_once_delivery` is true if the message
|
2015
2088
|
# was published multiple times by a publisher client. These copies are
|
@@ -2057,6 +2130,12 @@ module Google
|
|
2057
2130
|
# @return [String]
|
2058
2131
|
attr_accessor :message_retention_duration
|
2059
2132
|
|
2133
|
+
# Optional. Transforms to be applied to messages before they are delivered to
|
2134
|
+
# subscribers. Transforms are applied in the order specified.
|
2135
|
+
# Corresponds to the JSON property `messageTransforms`
|
2136
|
+
# @return [Array<Google::Apis::PubsubV1::MessageTransform>]
|
2137
|
+
attr_accessor :message_transforms
|
2138
|
+
|
2060
2139
|
# Required. The name of the subscription. It must have the format `"projects/`
|
2061
2140
|
# project`/subscriptions/`subscription`"`. ``subscription`` must start with a
|
2062
2141
|
# letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
|
@@ -2086,7 +2165,7 @@ module Google
|
|
2086
2165
|
# A policy that specifies how Pub/Sub retries message delivery. Retry delay will
|
2087
2166
|
# be exponential based on provided minimum and maximum backoffs. https://en.
|
2088
2167
|
# wikipedia.org/wiki/Exponential_backoff. RetryPolicy will be triggered on NACKs
|
2089
|
-
# or
|
2168
|
+
# or acknowledgment deadline exceeded events for a given message. Retry Policy
|
2090
2169
|
# is implemented on a best effort basis. At times, the delay between consecutive
|
2091
2170
|
# deliveries may not match the configuration. That is, delay can be more or less
|
2092
2171
|
# than configured backoff.
|
@@ -2135,6 +2214,7 @@ module Google
|
|
2135
2214
|
@filter = args[:filter] if args.key?(:filter)
|
2136
2215
|
@labels = args[:labels] if args.key?(:labels)
|
2137
2216
|
@message_retention_duration = args[:message_retention_duration] if args.key?(:message_retention_duration)
|
2217
|
+
@message_transforms = args[:message_transforms] if args.key?(:message_transforms)
|
2138
2218
|
@name = args[:name] if args.key?(:name)
|
2139
2219
|
@push_config = args[:push_config] if args.key?(:push_config)
|
2140
2220
|
@retain_acked_messages = args[:retain_acked_messages] if args.key?(:retain_acked_messages)
|
@@ -2259,6 +2339,12 @@ module Google
|
|
2259
2339
|
# @return [Google::Apis::PubsubV1::MessageStoragePolicy]
|
2260
2340
|
attr_accessor :message_storage_policy
|
2261
2341
|
|
2342
|
+
# Optional. Transforms to be applied to messages published to the topic.
|
2343
|
+
# Transforms are applied in the order specified.
|
2344
|
+
# Corresponds to the JSON property `messageTransforms`
|
2345
|
+
# @return [Array<Google::Apis::PubsubV1::MessageTransform>]
|
2346
|
+
attr_accessor :message_transforms
|
2347
|
+
|
2262
2348
|
# Required. The name of the topic. It must have the format `"projects/`project`/
|
2263
2349
|
# topics/`topic`"`. ``topic`` must start with a letter, and contain only letters
|
2264
2350
|
# (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`)
|
@@ -2296,6 +2382,7 @@ module Google
|
|
2296
2382
|
@labels = args[:labels] if args.key?(:labels)
|
2297
2383
|
@message_retention_duration = args[:message_retention_duration] if args.key?(:message_retention_duration)
|
2298
2384
|
@message_storage_policy = args[:message_storage_policy] if args.key?(:message_storage_policy)
|
2385
|
+
@message_transforms = args[:message_transforms] if args.key?(:message_transforms)
|
2299
2386
|
@name = args[:name] if args.key?(:name)
|
2300
2387
|
@satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
|
2301
2388
|
@schema_settings = args[:schema_settings] if args.key?(:schema_settings)
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module PubsubV1
|
18
18
|
# Version of the google-apis-pubsub_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.60.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.16.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250311"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -142,6 +142,12 @@ module Google
|
|
142
142
|
include Google::Apis::Core::JsonObjectSupport
|
143
143
|
end
|
144
144
|
|
145
|
+
class JavaScriptUdf
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
|
+
|
148
|
+
include Google::Apis::Core::JsonObjectSupport
|
149
|
+
end
|
150
|
+
|
145
151
|
class ListSchemaRevisionsResponse
|
146
152
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
153
|
|
@@ -190,6 +196,12 @@ module Google
|
|
190
196
|
include Google::Apis::Core::JsonObjectSupport
|
191
197
|
end
|
192
198
|
|
199
|
+
class MessageTransform
|
200
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
201
|
+
|
202
|
+
include Google::Apis::Core::JsonObjectSupport
|
203
|
+
end
|
204
|
+
|
193
205
|
class ModifyAckDeadlineRequest
|
194
206
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
195
207
|
|
@@ -612,6 +624,14 @@ module Google
|
|
612
624
|
end
|
613
625
|
end
|
614
626
|
|
627
|
+
class JavaScriptUdf
|
628
|
+
# @private
|
629
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
630
|
+
property :code, as: 'code'
|
631
|
+
property :function_name, as: 'functionName'
|
632
|
+
end
|
633
|
+
end
|
634
|
+
|
615
635
|
class ListSchemaRevisionsResponse
|
616
636
|
# @private
|
617
637
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -681,6 +701,16 @@ module Google
|
|
681
701
|
end
|
682
702
|
end
|
683
703
|
|
704
|
+
class MessageTransform
|
705
|
+
# @private
|
706
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
707
|
+
property :disabled, as: 'disabled'
|
708
|
+
property :enabled, as: 'enabled'
|
709
|
+
property :javascript_udf, as: 'javascriptUdf', class: Google::Apis::PubsubV1::JavaScriptUdf, decorator: Google::Apis::PubsubV1::JavaScriptUdf::Representation
|
710
|
+
|
711
|
+
end
|
712
|
+
end
|
713
|
+
|
684
714
|
class ModifyAckDeadlineRequest
|
685
715
|
# @private
|
686
716
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -895,6 +925,8 @@ module Google
|
|
895
925
|
property :filter, as: 'filter'
|
896
926
|
hash :labels, as: 'labels'
|
897
927
|
property :message_retention_duration, as: 'messageRetentionDuration'
|
928
|
+
collection :message_transforms, as: 'messageTransforms', class: Google::Apis::PubsubV1::MessageTransform, decorator: Google::Apis::PubsubV1::MessageTransform::Representation
|
929
|
+
|
898
930
|
property :name, as: 'name'
|
899
931
|
property :push_config, as: 'pushConfig', class: Google::Apis::PubsubV1::PushConfig, decorator: Google::Apis::PubsubV1::PushConfig::Representation
|
900
932
|
|
@@ -944,6 +976,8 @@ module Google
|
|
944
976
|
property :message_retention_duration, as: 'messageRetentionDuration'
|
945
977
|
property :message_storage_policy, as: 'messageStoragePolicy', class: Google::Apis::PubsubV1::MessageStoragePolicy, decorator: Google::Apis::PubsubV1::MessageStoragePolicy::Representation
|
946
978
|
|
979
|
+
collection :message_transforms, as: 'messageTransforms', class: Google::Apis::PubsubV1::MessageTransform, decorator: Google::Apis::PubsubV1::MessageTransform::Representation
|
980
|
+
|
947
981
|
property :name, as: 'name'
|
948
982
|
property :satisfies_pzs, as: 'satisfiesPzs'
|
949
983
|
property :schema_settings, as: 'schemaSettings', class: Google::Apis::PubsubV1::SchemaSettings, decorator: Google::Apis::PubsubV1::SchemaSettings::Representation
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-pubsub_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.60.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-03-23 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: google-apis-core
|
@@ -57,7 +57,7 @@ licenses:
|
|
57
57
|
metadata:
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-pubsub_v1/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-pubsub_v1/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-pubsub_v1/v0.60.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-pubsub_v1
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '0'
|
75
75
|
requirements: []
|
76
|
-
rubygems_version: 3.6.
|
76
|
+
rubygems_version: 3.6.5
|
77
77
|
specification_version: 4
|
78
78
|
summary: Simple REST client for Cloud Pub/Sub API V1
|
79
79
|
test_files: []
|