google-apis-pubsub_v1 0.58.0 → 0.59.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: e417f6aaefe6dace780d2d636c9d13abba7476b4ae16eee97922eee3c112a70d
|
4
|
+
data.tar.gz: 735de3646593ea29fc762252019a09ca0de2288e12432eccd29fb8c0901b12d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b371c9b7fbf50d95032666638c3101f6f751c8051ce55586d1edd617dfb4f75915a5d716e58ce717679c0ad9faf666765aff0ae50982e7e889d6ff046018bfd3
|
7
|
+
data.tar.gz: f4724523fefffd85f59ebaa3cffc06d73e8f7971abd7a5a44b060d737a50e92ed93e30d6cff6b2e3e845e296eb5537198704551b98b06a51778631e1ba63766d
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Release history for google-apis-pubsub_v1
|
2
2
|
|
3
|
+
### v0.59.0 (2025-03-02)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20250218
|
6
|
+
* Regenerated using generator version 0.16.0
|
7
|
+
|
3
8
|
### v0.58.0 (2025-01-07)
|
4
9
|
|
5
10
|
* 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,34 @@ 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 set to true, the transform is enabled. If false, the transform is
|
1195
|
+
# disabled and will not be applied to messages. Defaults to `true`.
|
1196
|
+
# Corresponds to the JSON property `enabled`
|
1197
|
+
# @return [Boolean]
|
1198
|
+
attr_accessor :enabled
|
1199
|
+
alias_method :enabled?, :enabled
|
1200
|
+
|
1201
|
+
# User-defined JavaScript function that can transform or filter a Pub/Sub
|
1202
|
+
# message.
|
1203
|
+
# Corresponds to the JSON property `javascriptUdf`
|
1204
|
+
# @return [Google::Apis::PubsubV1::JavaScriptUdf]
|
1205
|
+
attr_accessor :javascript_udf
|
1206
|
+
|
1207
|
+
def initialize(**args)
|
1208
|
+
update!(**args)
|
1209
|
+
end
|
1210
|
+
|
1211
|
+
# Update properties of this object
|
1212
|
+
def update!(**args)
|
1213
|
+
@enabled = args[:enabled] if args.key?(:enabled)
|
1214
|
+
@javascript_udf = args[:javascript_udf] if args.key?(:javascript_udf)
|
1215
|
+
end
|
1216
|
+
end
|
1217
|
+
|
1153
1218
|
# Request for the ModifyAckDeadline method.
|
1154
1219
|
class ModifyAckDeadlineRequest
|
1155
1220
|
include Google::Apis::Core::Hashable
|
@@ -1665,7 +1730,7 @@ module Google
|
|
1665
1730
|
# A policy that specifies how Pub/Sub retries message delivery. Retry delay will
|
1666
1731
|
# be exponential based on provided minimum and maximum backoffs. https://en.
|
1667
1732
|
# wikipedia.org/wiki/Exponential_backoff. RetryPolicy will be triggered on NACKs
|
1668
|
-
# or
|
1733
|
+
# or acknowledgment deadline exceeded events for a given message. Retry Policy
|
1669
1734
|
# is implemented on a best effort basis. At times, the delay between consecutive
|
1670
1735
|
# deliveries may not match the configuration. That is, delay can be more or less
|
1671
1736
|
# than configured backoff.
|
@@ -2009,7 +2074,7 @@ module Google
|
|
2009
2074
|
# Optional. If true, Pub/Sub provides the following guarantees for the delivery
|
2010
2075
|
# of a message with a given value of `message_id` on this subscription: * The
|
2011
2076
|
# message sent to a subscriber is guaranteed not to be resent before the message'
|
2012
|
-
# s
|
2077
|
+
# s acknowledgment deadline expires. * An acknowledged message will not be
|
2013
2078
|
# resent to a subscriber. Note that subscribers may still receive multiple
|
2014
2079
|
# copies of a message when `enable_exactly_once_delivery` is true if the message
|
2015
2080
|
# was published multiple times by a publisher client. These copies are
|
@@ -2057,6 +2122,12 @@ module Google
|
|
2057
2122
|
# @return [String]
|
2058
2123
|
attr_accessor :message_retention_duration
|
2059
2124
|
|
2125
|
+
# Optional. Transforms to be applied to messages before they are delivered to
|
2126
|
+
# subscribers. Transforms are applied in the order specified.
|
2127
|
+
# Corresponds to the JSON property `messageTransforms`
|
2128
|
+
# @return [Array<Google::Apis::PubsubV1::MessageTransform>]
|
2129
|
+
attr_accessor :message_transforms
|
2130
|
+
|
2060
2131
|
# Required. The name of the subscription. It must have the format `"projects/`
|
2061
2132
|
# project`/subscriptions/`subscription`"`. ``subscription`` must start with a
|
2062
2133
|
# letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
|
@@ -2086,7 +2157,7 @@ module Google
|
|
2086
2157
|
# A policy that specifies how Pub/Sub retries message delivery. Retry delay will
|
2087
2158
|
# be exponential based on provided minimum and maximum backoffs. https://en.
|
2088
2159
|
# wikipedia.org/wiki/Exponential_backoff. RetryPolicy will be triggered on NACKs
|
2089
|
-
# or
|
2160
|
+
# or acknowledgment deadline exceeded events for a given message. Retry Policy
|
2090
2161
|
# is implemented on a best effort basis. At times, the delay between consecutive
|
2091
2162
|
# deliveries may not match the configuration. That is, delay can be more or less
|
2092
2163
|
# than configured backoff.
|
@@ -2135,6 +2206,7 @@ module Google
|
|
2135
2206
|
@filter = args[:filter] if args.key?(:filter)
|
2136
2207
|
@labels = args[:labels] if args.key?(:labels)
|
2137
2208
|
@message_retention_duration = args[:message_retention_duration] if args.key?(:message_retention_duration)
|
2209
|
+
@message_transforms = args[:message_transforms] if args.key?(:message_transforms)
|
2138
2210
|
@name = args[:name] if args.key?(:name)
|
2139
2211
|
@push_config = args[:push_config] if args.key?(:push_config)
|
2140
2212
|
@retain_acked_messages = args[:retain_acked_messages] if args.key?(:retain_acked_messages)
|
@@ -2259,6 +2331,12 @@ module Google
|
|
2259
2331
|
# @return [Google::Apis::PubsubV1::MessageStoragePolicy]
|
2260
2332
|
attr_accessor :message_storage_policy
|
2261
2333
|
|
2334
|
+
# Optional. Transforms to be applied to messages published to the topic.
|
2335
|
+
# Transforms are applied in the order specified.
|
2336
|
+
# Corresponds to the JSON property `messageTransforms`
|
2337
|
+
# @return [Array<Google::Apis::PubsubV1::MessageTransform>]
|
2338
|
+
attr_accessor :message_transforms
|
2339
|
+
|
2262
2340
|
# Required. The name of the topic. It must have the format `"projects/`project`/
|
2263
2341
|
# topics/`topic`"`. ``topic`` must start with a letter, and contain only letters
|
2264
2342
|
# (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`)
|
@@ -2296,6 +2374,7 @@ module Google
|
|
2296
2374
|
@labels = args[:labels] if args.key?(:labels)
|
2297
2375
|
@message_retention_duration = args[:message_retention_duration] if args.key?(:message_retention_duration)
|
2298
2376
|
@message_storage_policy = args[:message_storage_policy] if args.key?(:message_storage_policy)
|
2377
|
+
@message_transforms = args[:message_transforms] if args.key?(:message_transforms)
|
2299
2378
|
@name = args[:name] if args.key?(:name)
|
2300
2379
|
@satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
|
2301
2380
|
@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.59.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 = "20250218"
|
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,15 @@ module Google
|
|
681
701
|
end
|
682
702
|
end
|
683
703
|
|
704
|
+
class MessageTransform
|
705
|
+
# @private
|
706
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
707
|
+
property :enabled, as: 'enabled'
|
708
|
+
property :javascript_udf, as: 'javascriptUdf', class: Google::Apis::PubsubV1::JavaScriptUdf, decorator: Google::Apis::PubsubV1::JavaScriptUdf::Representation
|
709
|
+
|
710
|
+
end
|
711
|
+
end
|
712
|
+
|
684
713
|
class ModifyAckDeadlineRequest
|
685
714
|
# @private
|
686
715
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -895,6 +924,8 @@ module Google
|
|
895
924
|
property :filter, as: 'filter'
|
896
925
|
hash :labels, as: 'labels'
|
897
926
|
property :message_retention_duration, as: 'messageRetentionDuration'
|
927
|
+
collection :message_transforms, as: 'messageTransforms', class: Google::Apis::PubsubV1::MessageTransform, decorator: Google::Apis::PubsubV1::MessageTransform::Representation
|
928
|
+
|
898
929
|
property :name, as: 'name'
|
899
930
|
property :push_config, as: 'pushConfig', class: Google::Apis::PubsubV1::PushConfig, decorator: Google::Apis::PubsubV1::PushConfig::Representation
|
900
931
|
|
@@ -944,6 +975,8 @@ module Google
|
|
944
975
|
property :message_retention_duration, as: 'messageRetentionDuration'
|
945
976
|
property :message_storage_policy, as: 'messageStoragePolicy', class: Google::Apis::PubsubV1::MessageStoragePolicy, decorator: Google::Apis::PubsubV1::MessageStoragePolicy::Representation
|
946
977
|
|
978
|
+
collection :message_transforms, as: 'messageTransforms', class: Google::Apis::PubsubV1::MessageTransform, decorator: Google::Apis::PubsubV1::MessageTransform::Representation
|
979
|
+
|
947
980
|
property :name, as: 'name'
|
948
981
|
property :satisfies_pzs, as: 'satisfiesPzs'
|
949
982
|
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.59.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-02 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.59.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: []
|