google-apis-pubsub_v1 0.64.0 → 0.65.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: 27c3d4b516cc31920cc08d55779742e590c287620a08a55ca50317455136e068
|
|
4
|
+
data.tar.gz: e1af85535787a7690d04b1709198eb298cb19920724cf1a94ee5c9bb4451f5af
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 38ad02ba670104f0c4acd21a085c99acc65e8320b88f311d18d8c721adb8ca9cac47370839ec44a4985a58d0ed1d87b3548e1484da5b7dba13da74bf70bac8b2
|
|
7
|
+
data.tar.gz: 2d28053c4cb42a730b64c9dcb6df0581d955a3fcf248fc973b877ca0b314289ee8ca9292dcdf9c1c873a3928583debee6c2c31a7cf44f197b396fb2a019b52ac
|
data/CHANGELOG.md
CHANGED
|
@@ -22,6 +22,45 @@ module Google
|
|
|
22
22
|
module Apis
|
|
23
23
|
module PubsubV1
|
|
24
24
|
|
|
25
|
+
# Configuration for making inference requests against Vertex AI models.
|
|
26
|
+
class AiInference
|
|
27
|
+
include Google::Apis::Core::Hashable
|
|
28
|
+
|
|
29
|
+
# Required. An endpoint to a Vertex AI model of the form `projects/`project`/
|
|
30
|
+
# locations/`location`/endpoints/`endpoint`` or `projects/`project`/locations/`
|
|
31
|
+
# location`/publishers/`publisher`/models/`model``. Vertex AI API requests will
|
|
32
|
+
# be sent to this endpoint.
|
|
33
|
+
# Corresponds to the JSON property `endpoint`
|
|
34
|
+
# @return [String]
|
|
35
|
+
attr_accessor :endpoint
|
|
36
|
+
|
|
37
|
+
# Optional. The service account to use to make prediction requests against
|
|
38
|
+
# endpoints. The resource creator or updater that specifies this field must have
|
|
39
|
+
# `iam.serviceAccounts.actAs` permission on the service account. If not
|
|
40
|
+
# specified, the Pub/Sub [service agent](`$universe.dns_names.
|
|
41
|
+
# final_documentation_domain`/iam/docs/service-agents), service-`project_number`@
|
|
42
|
+
# gcp-sa-pubsub.iam.gserviceaccount.com, is used.
|
|
43
|
+
# Corresponds to the JSON property `serviceAccountEmail`
|
|
44
|
+
# @return [String]
|
|
45
|
+
attr_accessor :service_account_email
|
|
46
|
+
|
|
47
|
+
# Configuration for making inferences using arbitrary JSON payloads.
|
|
48
|
+
# Corresponds to the JSON property `unstructuredInference`
|
|
49
|
+
# @return [Google::Apis::PubsubV1::UnstructuredInference]
|
|
50
|
+
attr_accessor :unstructured_inference
|
|
51
|
+
|
|
52
|
+
def initialize(**args)
|
|
53
|
+
update!(**args)
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# Update properties of this object
|
|
57
|
+
def update!(**args)
|
|
58
|
+
@endpoint = args[:endpoint] if args.key?(:endpoint)
|
|
59
|
+
@service_account_email = args[:service_account_email] if args.key?(:service_account_email)
|
|
60
|
+
@unstructured_inference = args[:unstructured_inference] if args.key?(:unstructured_inference)
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
|
|
25
64
|
# Request for the Acknowledge method.
|
|
26
65
|
class AcknowledgeRequest
|
|
27
66
|
include Google::Apis::Core::Hashable
|
|
@@ -712,13 +751,13 @@ module Google
|
|
|
712
751
|
# @return [Hash<String,String>]
|
|
713
752
|
attr_accessor :labels
|
|
714
753
|
|
|
715
|
-
# Required.
|
|
716
|
-
#
|
|
717
|
-
#
|
|
718
|
-
#
|
|
719
|
-
#
|
|
720
|
-
#
|
|
721
|
-
#
|
|
754
|
+
# Required. The subscription whose backlog the snapshot retains. Specifically,
|
|
755
|
+
# the created snapshot is guaranteed to retain: (a) The existing backlog on the
|
|
756
|
+
# subscription. More precisely, this is defined as the messages in the
|
|
757
|
+
# subscription's backlog that are unacknowledged upon the successful completion
|
|
758
|
+
# of the `CreateSnapshot` request; as well as: (b) Any messages published to the
|
|
759
|
+
# subscription's topic following the successful completion of the CreateSnapshot
|
|
760
|
+
# request. Format is `projects/`project`/subscriptions/`sub``.
|
|
722
761
|
# Corresponds to the JSON property `subscription`
|
|
723
762
|
# @return [String]
|
|
724
763
|
attr_accessor :subscription
|
|
@@ -1199,6 +1238,11 @@ module Google
|
|
|
1199
1238
|
class MessageTransform
|
|
1200
1239
|
include Google::Apis::Core::Hashable
|
|
1201
1240
|
|
|
1241
|
+
# Configuration for making inference requests against Vertex AI models.
|
|
1242
|
+
# Corresponds to the JSON property `aiInference`
|
|
1243
|
+
# @return [Google::Apis::PubsubV1::AiInference]
|
|
1244
|
+
attr_accessor :ai_inference
|
|
1245
|
+
|
|
1202
1246
|
# Optional. If true, the transform is disabled and will not be applied to
|
|
1203
1247
|
# messages. Defaults to `false`.
|
|
1204
1248
|
# Corresponds to the JSON property `disabled`
|
|
@@ -1225,6 +1269,7 @@ module Google
|
|
|
1225
1269
|
|
|
1226
1270
|
# Update properties of this object
|
|
1227
1271
|
def update!(**args)
|
|
1272
|
+
@ai_inference = args[:ai_inference] if args.key?(:ai_inference)
|
|
1228
1273
|
@disabled = args[:disabled] if args.key?(:disabled)
|
|
1229
1274
|
@enabled = args[:enabled] if args.key?(:enabled)
|
|
1230
1275
|
@javascript_udf = args[:javascript_udf] if args.key?(:javascript_udf)
|
|
@@ -2194,9 +2239,9 @@ module Google
|
|
|
2194
2239
|
# @return [Hash<String,String>]
|
|
2195
2240
|
attr_accessor :tags
|
|
2196
2241
|
|
|
2197
|
-
# Required.
|
|
2198
|
-
#
|
|
2199
|
-
#
|
|
2242
|
+
# Required. The name of the topic from which this subscription is receiving
|
|
2243
|
+
# messages. Format is `projects/`project`/topics/`topic``. The value of this
|
|
2244
|
+
# field will be `_deleted-topic_` if the topic has been deleted.
|
|
2200
2245
|
# Corresponds to the JSON property `topic`
|
|
2201
2246
|
# @return [String]
|
|
2202
2247
|
attr_accessor :topic
|
|
@@ -2415,6 +2460,27 @@ module Google
|
|
|
2415
2460
|
end
|
|
2416
2461
|
end
|
|
2417
2462
|
|
|
2463
|
+
# Configuration for making inferences using arbitrary JSON payloads.
|
|
2464
|
+
class UnstructuredInference
|
|
2465
|
+
include Google::Apis::Core::Hashable
|
|
2466
|
+
|
|
2467
|
+
# Optional. A parameters object to be included in each inference request. The
|
|
2468
|
+
# parameters object is combined with the data field of the Pub/Sub message to
|
|
2469
|
+
# form the inference request.
|
|
2470
|
+
# Corresponds to the JSON property `parameters`
|
|
2471
|
+
# @return [Hash<String,Object>]
|
|
2472
|
+
attr_accessor :parameters
|
|
2473
|
+
|
|
2474
|
+
def initialize(**args)
|
|
2475
|
+
update!(**args)
|
|
2476
|
+
end
|
|
2477
|
+
|
|
2478
|
+
# Update properties of this object
|
|
2479
|
+
def update!(**args)
|
|
2480
|
+
@parameters = args[:parameters] if args.key?(:parameters)
|
|
2481
|
+
end
|
|
2482
|
+
end
|
|
2483
|
+
|
|
2418
2484
|
# Request for the UpdateSnapshot method.
|
|
2419
2485
|
class UpdateSnapshotRequest
|
|
2420
2486
|
include Google::Apis::Core::Hashable
|
|
@@ -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.65.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
22
|
GENERATOR_VERSION = "0.18.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20260116"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -22,6 +22,12 @@ module Google
|
|
|
22
22
|
module Apis
|
|
23
23
|
module PubsubV1
|
|
24
24
|
|
|
25
|
+
class AiInference
|
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
27
|
+
|
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
29
|
+
end
|
|
30
|
+
|
|
25
31
|
class AcknowledgeRequest
|
|
26
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
27
33
|
|
|
@@ -376,6 +382,12 @@ module Google
|
|
|
376
382
|
include Google::Apis::Core::JsonObjectSupport
|
|
377
383
|
end
|
|
378
384
|
|
|
385
|
+
class UnstructuredInference
|
|
386
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
387
|
+
|
|
388
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
389
|
+
end
|
|
390
|
+
|
|
379
391
|
class UpdateSnapshotRequest
|
|
380
392
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
381
393
|
|
|
@@ -418,6 +430,16 @@ module Google
|
|
|
418
430
|
include Google::Apis::Core::JsonObjectSupport
|
|
419
431
|
end
|
|
420
432
|
|
|
433
|
+
class AiInference
|
|
434
|
+
# @private
|
|
435
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
436
|
+
property :endpoint, as: 'endpoint'
|
|
437
|
+
property :service_account_email, as: 'serviceAccountEmail'
|
|
438
|
+
property :unstructured_inference, as: 'unstructuredInference', class: Google::Apis::PubsubV1::UnstructuredInference, decorator: Google::Apis::PubsubV1::UnstructuredInference::Representation
|
|
439
|
+
|
|
440
|
+
end
|
|
441
|
+
end
|
|
442
|
+
|
|
421
443
|
class AcknowledgeRequest
|
|
422
444
|
# @private
|
|
423
445
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -705,6 +727,8 @@ module Google
|
|
|
705
727
|
class MessageTransform
|
|
706
728
|
# @private
|
|
707
729
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
730
|
+
property :ai_inference, as: 'aiInference', class: Google::Apis::PubsubV1::AiInference, decorator: Google::Apis::PubsubV1::AiInference::Representation
|
|
731
|
+
|
|
708
732
|
property :disabled, as: 'disabled'
|
|
709
733
|
property :enabled, as: 'enabled'
|
|
710
734
|
property :javascript_udf, as: 'javascriptUdf', class: Google::Apis::PubsubV1::JavaScriptUdf, decorator: Google::Apis::PubsubV1::JavaScriptUdf::Representation
|
|
@@ -989,6 +1013,13 @@ module Google
|
|
|
989
1013
|
end
|
|
990
1014
|
end
|
|
991
1015
|
|
|
1016
|
+
class UnstructuredInference
|
|
1017
|
+
# @private
|
|
1018
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1019
|
+
hash :parameters, as: 'parameters'
|
|
1020
|
+
end
|
|
1021
|
+
end
|
|
1022
|
+
|
|
992
1023
|
class UpdateSnapshotRequest
|
|
993
1024
|
# @private
|
|
994
1025
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -549,12 +549,12 @@ module Google
|
|
|
549
549
|
# object. Note that for REST API requests, you must specify a name in the
|
|
550
550
|
# request.
|
|
551
551
|
# @param [String] name
|
|
552
|
-
# Required.
|
|
553
|
-
#
|
|
554
|
-
#
|
|
555
|
-
#
|
|
556
|
-
#
|
|
557
|
-
#
|
|
552
|
+
# Required. User-provided name for this snapshot. If the name is not provided in
|
|
553
|
+
# the request, the server will assign a random name for this snapshot on the
|
|
554
|
+
# same project as the subscription. Note that for REST API requests, you must
|
|
555
|
+
# specify a name. See the [resource name rules](https://cloud.google.com/pubsub/
|
|
556
|
+
# docs/pubsub-basics#resource_names). Format is `projects/`project`/snapshots/`
|
|
557
|
+
# snap``.
|
|
558
558
|
# @param [Google::Apis::PubsubV1::CreateSnapshotRequest] create_snapshot_request_object
|
|
559
559
|
# @param [String] fields
|
|
560
560
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -594,8 +594,8 @@ module Google
|
|
|
594
594
|
# with the same name, but the new one has no association with the old snapshot
|
|
595
595
|
# or its subscription, unless the same subscription is specified.
|
|
596
596
|
# @param [String] snapshot
|
|
597
|
-
# Required.
|
|
598
|
-
#
|
|
597
|
+
# Required. The name of the snapshot to delete. Format is `projects/`project`/
|
|
598
|
+
# snapshots/`snap``.
|
|
599
599
|
# @param [String] fields
|
|
600
600
|
# Selector specifying which fields to include in a partial response.
|
|
601
601
|
# @param [String] quota_user
|
|
@@ -629,8 +629,8 @@ module Google
|
|
|
629
629
|
# acknowledgment state of messages in an existing subscription to the state
|
|
630
630
|
# captured by a snapshot.
|
|
631
631
|
# @param [String] snapshot
|
|
632
|
-
# Required.
|
|
633
|
-
#
|
|
632
|
+
# Required. The name of the snapshot to get. Format is `projects/`project`/
|
|
633
|
+
# snapshots/`snap``.
|
|
634
634
|
# @param [String] fields
|
|
635
635
|
# Selector specifying which fields to include in a partial response.
|
|
636
636
|
# @param [String] quota_user
|
|
@@ -708,8 +708,8 @@ module Google
|
|
|
708
708
|
# message acknowledgments in bulk. That is, you can set the acknowledgment state
|
|
709
709
|
# of messages in an existing subscription to the state captured by a snapshot.
|
|
710
710
|
# @param [String] project
|
|
711
|
-
# Required.
|
|
712
|
-
#
|
|
711
|
+
# Required. The name of the project in which to list snapshots. Format is `
|
|
712
|
+
# projects/`project-id``.
|
|
713
713
|
# @param [Fixnum] page_size
|
|
714
714
|
# Optional. Maximum number of snapshots to return.
|
|
715
715
|
# @param [String] page_token
|
|
@@ -948,8 +948,8 @@ module Google
|
|
|
948
948
|
# but the new one has no association with the old subscription or its topic
|
|
949
949
|
# unless the same topic is specified.
|
|
950
950
|
# @param [String] subscription
|
|
951
|
-
# Required.
|
|
952
|
-
#
|
|
951
|
+
# Required. The subscription to delete. Format is `projects/`project`/
|
|
952
|
+
# subscriptions/`sub``.
|
|
953
953
|
# @param [String] fields
|
|
954
954
|
# Selector specifying which fields to include in a partial response.
|
|
955
955
|
# @param [String] quota_user
|
|
@@ -1013,8 +1013,8 @@ module Google
|
|
|
1013
1013
|
|
|
1014
1014
|
# Gets the configuration details of a subscription.
|
|
1015
1015
|
# @param [String] subscription
|
|
1016
|
-
# Required.
|
|
1017
|
-
#
|
|
1016
|
+
# Required. The name of the subscription to get. Format is `projects/`project`/
|
|
1017
|
+
# subscriptions/`sub``.
|
|
1018
1018
|
# @param [String] fields
|
|
1019
1019
|
# Selector specifying which fields to include in a partial response.
|
|
1020
1020
|
# @param [String] quota_user
|
|
@@ -1089,8 +1089,8 @@ module Google
|
|
|
1089
1089
|
|
|
1090
1090
|
# Lists matching subscriptions.
|
|
1091
1091
|
# @param [String] project
|
|
1092
|
-
# Required.
|
|
1093
|
-
#
|
|
1092
|
+
# Required. The name of the project in which to list subscriptions. Format is `
|
|
1093
|
+
# projects/`project-id``.
|
|
1094
1094
|
# @param [Fixnum] page_size
|
|
1095
1095
|
# Optional. Maximum number of subscriptions to return.
|
|
1096
1096
|
# @param [String] page_token
|
|
@@ -1436,8 +1436,8 @@ module Google
|
|
|
1436
1436
|
# subscriptions. Existing subscriptions to this topic are not deleted, but their
|
|
1437
1437
|
# `topic` field is set to `_deleted-topic_`.
|
|
1438
1438
|
# @param [String] topic
|
|
1439
|
-
# Required.
|
|
1440
|
-
#
|
|
1439
|
+
# Required. Name of the topic to delete. Format is `projects/`project`/topics/`
|
|
1440
|
+
# topic``.
|
|
1441
1441
|
# @param [String] fields
|
|
1442
1442
|
# Selector specifying which fields to include in a partial response.
|
|
1443
1443
|
# @param [String] quota_user
|
|
@@ -1467,8 +1467,8 @@ module Google
|
|
|
1467
1467
|
|
|
1468
1468
|
# Gets the configuration of a topic.
|
|
1469
1469
|
# @param [String] topic
|
|
1470
|
-
# Required.
|
|
1471
|
-
#
|
|
1470
|
+
# Required. The name of the topic to get. Format is `projects/`project`/topics/`
|
|
1471
|
+
# topic``.
|
|
1472
1472
|
# @param [String] fields
|
|
1473
1473
|
# Selector specifying which fields to include in a partial response.
|
|
1474
1474
|
# @param [String] quota_user
|
|
@@ -1543,8 +1543,8 @@ module Google
|
|
|
1543
1543
|
|
|
1544
1544
|
# Lists matching topics.
|
|
1545
1545
|
# @param [String] project
|
|
1546
|
-
# Required.
|
|
1547
|
-
#
|
|
1546
|
+
# Required. The name of the project in which to list topics. Format is `projects/
|
|
1547
|
+
# `project-id``.
|
|
1548
1548
|
# @param [Fixnum] page_size
|
|
1549
1549
|
# Optional. Maximum number of topics to return.
|
|
1550
1550
|
# @param [String] page_token
|
|
@@ -1622,8 +1622,8 @@ module Google
|
|
|
1622
1622
|
# Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does
|
|
1623
1623
|
# not exist.
|
|
1624
1624
|
# @param [String] topic
|
|
1625
|
-
# Required.
|
|
1626
|
-
#
|
|
1625
|
+
# Required. The messages in the request will be published on this topic. Format
|
|
1626
|
+
# is `projects/`project`/topics/`topic``.
|
|
1627
1627
|
# @param [Google::Apis::PubsubV1::PublishRequest] publish_request_object
|
|
1628
1628
|
# @param [String] fields
|
|
1629
1629
|
# Selector specifying which fields to include in a partial response.
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.65.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -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.65.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:
|