google-apis-pubsub_v1 0.1.0 → 0.6.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 +4 -4
- data/CHANGELOG.md +23 -0
- data/lib/google/apis/pubsub_v1.rb +1 -1
- data/lib/google/apis/pubsub_v1/classes.rb +179 -2
- data/lib/google/apis/pubsub_v1/gem_version.rb +3 -3
- data/lib/google/apis/pubsub_v1/representations.rb +101 -0
- data/lib/google/apis/pubsub_v1/service.rb +332 -0
- metadata +15 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7805a4763f6d1484db7eafc94a29bae8aa98007fae112945ce497094f692ee7a
|
4
|
+
data.tar.gz: 6e99d1771b7049ddc720f45e62f7b42ae88da950dcf533a6f3e3ff48685f64ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 657f4e1dcb4df3293e01e22df75918f9092510d599824fdd63ca858cddeb4d48c512979a314284d09491c17913e1d2ca74e6506e8aac5772da96212b4234f8bb
|
7
|
+
data.tar.gz: 6a6b091640fec5667a6c71198adbfb0dc4a7941cea6722d4d2a58bed4f7c018ff01368b614e228fc12f9a0ede76b414346c36bb78887ab1b19dd62644e2625b9
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,28 @@
|
|
1
1
|
# Release history for google-apis-pubsub_v1
|
2
2
|
|
3
|
+
### v0.6.0 (2021-06-24)
|
4
|
+
|
5
|
+
* Regenerated using generator version 0.3.0
|
6
|
+
|
7
|
+
### v0.5.0 (2021-05-19)
|
8
|
+
|
9
|
+
* Unspecified changes
|
10
|
+
|
11
|
+
### v0.4.0 (2021-04-02)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210322
|
14
|
+
* Regenerated using generator version 0.2.0
|
15
|
+
|
16
|
+
### v0.3.0 (2021-03-05)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20210225
|
19
|
+
* Unspecified changes
|
20
|
+
|
21
|
+
### v0.2.0 (2021-02-19)
|
22
|
+
|
23
|
+
* Regenerated from discovery document revision 20210208
|
24
|
+
* Regenerated using generator version 0.1.2
|
25
|
+
|
3
26
|
### v0.1.0 (2021-01-07)
|
4
27
|
|
5
28
|
* Regenerated using generator version 0.1.1
|
@@ -29,7 +29,7 @@ module Google
|
|
29
29
|
# This is NOT the gem version.
|
30
30
|
VERSION = 'V1'
|
31
31
|
|
32
|
-
#
|
32
|
+
# See, edit, configure, and delete your Google Cloud Platform data
|
33
33
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
34
34
|
|
35
35
|
# View and manage Pub/Sub topics and subscriptions
|
@@ -292,6 +292,32 @@ module Google
|
|
292
292
|
end
|
293
293
|
end
|
294
294
|
|
295
|
+
# Response for the `ListSchemas` method.
|
296
|
+
class ListSchemasResponse
|
297
|
+
include Google::Apis::Core::Hashable
|
298
|
+
|
299
|
+
# If not empty, indicates that there may be more schemas that match the request;
|
300
|
+
# this value should be passed in a new `ListSchemasRequest`.
|
301
|
+
# Corresponds to the JSON property `nextPageToken`
|
302
|
+
# @return [String]
|
303
|
+
attr_accessor :next_page_token
|
304
|
+
|
305
|
+
# The resulting schemas.
|
306
|
+
# Corresponds to the JSON property `schemas`
|
307
|
+
# @return [Array<Google::Apis::PubsubV1::Schema>]
|
308
|
+
attr_accessor :schemas
|
309
|
+
|
310
|
+
def initialize(**args)
|
311
|
+
update!(**args)
|
312
|
+
end
|
313
|
+
|
314
|
+
# Update properties of this object
|
315
|
+
def update!(**args)
|
316
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
317
|
+
@schemas = args[:schemas] if args.key?(:schemas)
|
318
|
+
end
|
319
|
+
end
|
320
|
+
|
295
321
|
# Response for the `ListSnapshots` method.
|
296
322
|
class ListSnapshotsResponse
|
297
323
|
include Google::Apis::Core::Hashable
|
@@ -898,6 +924,66 @@ module Google
|
|
898
924
|
end
|
899
925
|
end
|
900
926
|
|
927
|
+
# A schema resource.
|
928
|
+
class Schema
|
929
|
+
include Google::Apis::Core::Hashable
|
930
|
+
|
931
|
+
# The definition of the schema. This should contain a string representing the
|
932
|
+
# full definition of the schema that is a valid schema definition of the type
|
933
|
+
# specified in `type`.
|
934
|
+
# Corresponds to the JSON property `definition`
|
935
|
+
# @return [String]
|
936
|
+
attr_accessor :definition
|
937
|
+
|
938
|
+
# Required. Name of the schema. Format is `projects/`project`/schemas/`schema``.
|
939
|
+
# Corresponds to the JSON property `name`
|
940
|
+
# @return [String]
|
941
|
+
attr_accessor :name
|
942
|
+
|
943
|
+
# The type of the schema definition.
|
944
|
+
# Corresponds to the JSON property `type`
|
945
|
+
# @return [String]
|
946
|
+
attr_accessor :type
|
947
|
+
|
948
|
+
def initialize(**args)
|
949
|
+
update!(**args)
|
950
|
+
end
|
951
|
+
|
952
|
+
# Update properties of this object
|
953
|
+
def update!(**args)
|
954
|
+
@definition = args[:definition] if args.key?(:definition)
|
955
|
+
@name = args[:name] if args.key?(:name)
|
956
|
+
@type = args[:type] if args.key?(:type)
|
957
|
+
end
|
958
|
+
end
|
959
|
+
|
960
|
+
# Settings for validating messages published against a schema.
|
961
|
+
class SchemaSettings
|
962
|
+
include Google::Apis::Core::Hashable
|
963
|
+
|
964
|
+
# The encoding of messages validated against `schema`.
|
965
|
+
# Corresponds to the JSON property `encoding`
|
966
|
+
# @return [String]
|
967
|
+
attr_accessor :encoding
|
968
|
+
|
969
|
+
# Required. The name of the schema that messages published should be validated
|
970
|
+
# against. Format is `projects/`project`/schemas/`schema``. The value of this
|
971
|
+
# field will be `_deleted-schema_` if the schema has been deleted.
|
972
|
+
# Corresponds to the JSON property `schema`
|
973
|
+
# @return [String]
|
974
|
+
attr_accessor :schema
|
975
|
+
|
976
|
+
def initialize(**args)
|
977
|
+
update!(**args)
|
978
|
+
end
|
979
|
+
|
980
|
+
# Update properties of this object
|
981
|
+
def update!(**args)
|
982
|
+
@encoding = args[:encoding] if args.key?(:encoding)
|
983
|
+
@schema = args[:schema] if args.key?(:schema)
|
984
|
+
end
|
985
|
+
end
|
986
|
+
|
901
987
|
# Request for the `Seek` method.
|
902
988
|
class SeekRequest
|
903
989
|
include Google::Apis::Core::Hashable
|
@@ -1135,8 +1221,9 @@ module Google
|
|
1135
1221
|
# Indicates whether to retain acknowledged messages. If true, then messages are
|
1136
1222
|
# not expunged from the subscription's backlog, even if they are acknowledged,
|
1137
1223
|
# until they fall out of the `message_retention_duration` window. This must be
|
1138
|
-
# true if you would like to [Seek to a timestamp] (https://cloud.google.com/
|
1139
|
-
# pubsub/docs/replay-overview#seek_to_a_time)
|
1224
|
+
# true if you would like to [`Seek` to a timestamp] (https://cloud.google.com/
|
1225
|
+
# pubsub/docs/replay-overview#seek_to_a_time) in the past to replay previously-
|
1226
|
+
# acknowledged messages.
|
1140
1227
|
# Corresponds to the JSON property `retainAckedMessages`
|
1141
1228
|
# @return [Boolean]
|
1142
1229
|
attr_accessor :retain_acked_messages
|
@@ -1260,6 +1347,11 @@ module Google
|
|
1260
1347
|
attr_accessor :satisfies_pzs
|
1261
1348
|
alias_method :satisfies_pzs?, :satisfies_pzs
|
1262
1349
|
|
1350
|
+
# Settings for validating messages published against a schema.
|
1351
|
+
# Corresponds to the JSON property `schemaSettings`
|
1352
|
+
# @return [Google::Apis::PubsubV1::SchemaSettings]
|
1353
|
+
attr_accessor :schema_settings
|
1354
|
+
|
1263
1355
|
def initialize(**args)
|
1264
1356
|
update!(**args)
|
1265
1357
|
end
|
@@ -1271,6 +1363,7 @@ module Google
|
|
1271
1363
|
@message_storage_policy = args[:message_storage_policy] if args.key?(:message_storage_policy)
|
1272
1364
|
@name = args[:name] if args.key?(:name)
|
1273
1365
|
@satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
|
1366
|
+
@schema_settings = args[:schema_settings] if args.key?(:schema_settings)
|
1274
1367
|
end
|
1275
1368
|
end
|
1276
1369
|
|
@@ -1357,6 +1450,90 @@ module Google
|
|
1357
1450
|
@update_mask = args[:update_mask] if args.key?(:update_mask)
|
1358
1451
|
end
|
1359
1452
|
end
|
1453
|
+
|
1454
|
+
# Request for the `ValidateMessage` method.
|
1455
|
+
class ValidateMessageRequest
|
1456
|
+
include Google::Apis::Core::Hashable
|
1457
|
+
|
1458
|
+
# The encoding expected for messages
|
1459
|
+
# Corresponds to the JSON property `encoding`
|
1460
|
+
# @return [String]
|
1461
|
+
attr_accessor :encoding
|
1462
|
+
|
1463
|
+
# Message to validate against the provided `schema_spec`.
|
1464
|
+
# Corresponds to the JSON property `message`
|
1465
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
1466
|
+
# @return [String]
|
1467
|
+
attr_accessor :message
|
1468
|
+
|
1469
|
+
# Name of the schema against which to validate. Format is `projects/`project`/
|
1470
|
+
# schemas/`schema``.
|
1471
|
+
# Corresponds to the JSON property `name`
|
1472
|
+
# @return [String]
|
1473
|
+
attr_accessor :name
|
1474
|
+
|
1475
|
+
# A schema resource.
|
1476
|
+
# Corresponds to the JSON property `schema`
|
1477
|
+
# @return [Google::Apis::PubsubV1::Schema]
|
1478
|
+
attr_accessor :schema
|
1479
|
+
|
1480
|
+
def initialize(**args)
|
1481
|
+
update!(**args)
|
1482
|
+
end
|
1483
|
+
|
1484
|
+
# Update properties of this object
|
1485
|
+
def update!(**args)
|
1486
|
+
@encoding = args[:encoding] if args.key?(:encoding)
|
1487
|
+
@message = args[:message] if args.key?(:message)
|
1488
|
+
@name = args[:name] if args.key?(:name)
|
1489
|
+
@schema = args[:schema] if args.key?(:schema)
|
1490
|
+
end
|
1491
|
+
end
|
1492
|
+
|
1493
|
+
# Response for the `ValidateMessage` method. Empty for now.
|
1494
|
+
class ValidateMessageResponse
|
1495
|
+
include Google::Apis::Core::Hashable
|
1496
|
+
|
1497
|
+
def initialize(**args)
|
1498
|
+
update!(**args)
|
1499
|
+
end
|
1500
|
+
|
1501
|
+
# Update properties of this object
|
1502
|
+
def update!(**args)
|
1503
|
+
end
|
1504
|
+
end
|
1505
|
+
|
1506
|
+
# Request for the `ValidateSchema` method.
|
1507
|
+
class ValidateSchemaRequest
|
1508
|
+
include Google::Apis::Core::Hashable
|
1509
|
+
|
1510
|
+
# A schema resource.
|
1511
|
+
# Corresponds to the JSON property `schema`
|
1512
|
+
# @return [Google::Apis::PubsubV1::Schema]
|
1513
|
+
attr_accessor :schema
|
1514
|
+
|
1515
|
+
def initialize(**args)
|
1516
|
+
update!(**args)
|
1517
|
+
end
|
1518
|
+
|
1519
|
+
# Update properties of this object
|
1520
|
+
def update!(**args)
|
1521
|
+
@schema = args[:schema] if args.key?(:schema)
|
1522
|
+
end
|
1523
|
+
end
|
1524
|
+
|
1525
|
+
# Response for the `ValidateSchema` method. Empty for now.
|
1526
|
+
class ValidateSchemaResponse
|
1527
|
+
include Google::Apis::Core::Hashable
|
1528
|
+
|
1529
|
+
def initialize(**args)
|
1530
|
+
update!(**args)
|
1531
|
+
end
|
1532
|
+
|
1533
|
+
# Update properties of this object
|
1534
|
+
def update!(**args)
|
1535
|
+
end
|
1536
|
+
end
|
1360
1537
|
end
|
1361
1538
|
end
|
1362
1539
|
end
|
@@ -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.6.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.3.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210322"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -70,6 +70,12 @@ module Google
|
|
70
70
|
include Google::Apis::Core::JsonObjectSupport
|
71
71
|
end
|
72
72
|
|
73
|
+
class ListSchemasResponse
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
73
79
|
class ListSnapshotsResponse
|
74
80
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
81
|
|
@@ -178,6 +184,18 @@ module Google
|
|
178
184
|
include Google::Apis::Core::JsonObjectSupport
|
179
185
|
end
|
180
186
|
|
187
|
+
class Schema
|
188
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
189
|
+
|
190
|
+
include Google::Apis::Core::JsonObjectSupport
|
191
|
+
end
|
192
|
+
|
193
|
+
class SchemaSettings
|
194
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
195
|
+
|
196
|
+
include Google::Apis::Core::JsonObjectSupport
|
197
|
+
end
|
198
|
+
|
181
199
|
class SeekRequest
|
182
200
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
201
|
|
@@ -244,6 +262,30 @@ module Google
|
|
244
262
|
include Google::Apis::Core::JsonObjectSupport
|
245
263
|
end
|
246
264
|
|
265
|
+
class ValidateMessageRequest
|
266
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
267
|
+
|
268
|
+
include Google::Apis::Core::JsonObjectSupport
|
269
|
+
end
|
270
|
+
|
271
|
+
class ValidateMessageResponse
|
272
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
273
|
+
|
274
|
+
include Google::Apis::Core::JsonObjectSupport
|
275
|
+
end
|
276
|
+
|
277
|
+
class ValidateSchemaRequest
|
278
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
279
|
+
|
280
|
+
include Google::Apis::Core::JsonObjectSupport
|
281
|
+
end
|
282
|
+
|
283
|
+
class ValidateSchemaResponse
|
284
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
285
|
+
|
286
|
+
include Google::Apis::Core::JsonObjectSupport
|
287
|
+
end
|
288
|
+
|
247
289
|
class AcknowledgeRequest
|
248
290
|
# @private
|
249
291
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -306,6 +348,15 @@ module Google
|
|
306
348
|
end
|
307
349
|
end
|
308
350
|
|
351
|
+
class ListSchemasResponse
|
352
|
+
# @private
|
353
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
354
|
+
property :next_page_token, as: 'nextPageToken'
|
355
|
+
collection :schemas, as: 'schemas', class: Google::Apis::PubsubV1::Schema, decorator: Google::Apis::PubsubV1::Schema::Representation
|
356
|
+
|
357
|
+
end
|
358
|
+
end
|
359
|
+
|
309
360
|
class ListSnapshotsResponse
|
310
361
|
# @private
|
311
362
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -460,6 +511,23 @@ module Google
|
|
460
511
|
end
|
461
512
|
end
|
462
513
|
|
514
|
+
class Schema
|
515
|
+
# @private
|
516
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
517
|
+
property :definition, as: 'definition'
|
518
|
+
property :name, as: 'name'
|
519
|
+
property :type, as: 'type'
|
520
|
+
end
|
521
|
+
end
|
522
|
+
|
523
|
+
class SchemaSettings
|
524
|
+
# @private
|
525
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
526
|
+
property :encoding, as: 'encoding'
|
527
|
+
property :schema, as: 'schema'
|
528
|
+
end
|
529
|
+
end
|
530
|
+
|
463
531
|
class SeekRequest
|
464
532
|
# @private
|
465
533
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -538,6 +606,8 @@ module Google
|
|
538
606
|
|
539
607
|
property :name, as: 'name'
|
540
608
|
property :satisfies_pzs, as: 'satisfiesPzs'
|
609
|
+
property :schema_settings, as: 'schemaSettings', class: Google::Apis::PubsubV1::SchemaSettings, decorator: Google::Apis::PubsubV1::SchemaSettings::Representation
|
610
|
+
|
541
611
|
end
|
542
612
|
end
|
543
613
|
|
@@ -567,6 +637,37 @@ module Google
|
|
567
637
|
property :update_mask, as: 'updateMask'
|
568
638
|
end
|
569
639
|
end
|
640
|
+
|
641
|
+
class ValidateMessageRequest
|
642
|
+
# @private
|
643
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
644
|
+
property :encoding, as: 'encoding'
|
645
|
+
property :message, :base64 => true, as: 'message'
|
646
|
+
property :name, as: 'name'
|
647
|
+
property :schema, as: 'schema', class: Google::Apis::PubsubV1::Schema, decorator: Google::Apis::PubsubV1::Schema::Representation
|
648
|
+
|
649
|
+
end
|
650
|
+
end
|
651
|
+
|
652
|
+
class ValidateMessageResponse
|
653
|
+
# @private
|
654
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
655
|
+
end
|
656
|
+
end
|
657
|
+
|
658
|
+
class ValidateSchemaRequest
|
659
|
+
# @private
|
660
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
661
|
+
property :schema, as: 'schema', class: Google::Apis::PubsubV1::Schema, decorator: Google::Apis::PubsubV1::Schema::Representation
|
662
|
+
|
663
|
+
end
|
664
|
+
end
|
665
|
+
|
666
|
+
class ValidateSchemaResponse
|
667
|
+
# @private
|
668
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
669
|
+
end
|
670
|
+
end
|
570
671
|
end
|
571
672
|
end
|
572
673
|
end
|
@@ -49,6 +49,338 @@ module Google
|
|
49
49
|
@batch_path = 'batch'
|
50
50
|
end
|
51
51
|
|
52
|
+
# Creates a schema.
|
53
|
+
# @param [String] parent
|
54
|
+
# Required. The name of the project in which to create the schema. Format is `
|
55
|
+
# projects/`project-id``.
|
56
|
+
# @param [Google::Apis::PubsubV1::Schema] schema_object
|
57
|
+
# @param [String] schema_id
|
58
|
+
# The ID to use for the schema, which will become the final component of the
|
59
|
+
# schema's resource name. See https://cloud.google.com/pubsub/docs/admin#
|
60
|
+
# resource_names for resource name constraints.
|
61
|
+
# @param [String] fields
|
62
|
+
# Selector specifying which fields to include in a partial response.
|
63
|
+
# @param [String] quota_user
|
64
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
65
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
66
|
+
# @param [Google::Apis::RequestOptions] options
|
67
|
+
# Request-specific options
|
68
|
+
#
|
69
|
+
# @yield [result, err] Result & error if block supplied
|
70
|
+
# @yieldparam result [Google::Apis::PubsubV1::Schema] parsed result object
|
71
|
+
# @yieldparam err [StandardError] error object if request failed
|
72
|
+
#
|
73
|
+
# @return [Google::Apis::PubsubV1::Schema]
|
74
|
+
#
|
75
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
76
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
77
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
78
|
+
def create_project_schema(parent, schema_object = nil, schema_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
79
|
+
command = make_simple_command(:post, 'v1/{+parent}/schemas', options)
|
80
|
+
command.request_representation = Google::Apis::PubsubV1::Schema::Representation
|
81
|
+
command.request_object = schema_object
|
82
|
+
command.response_representation = Google::Apis::PubsubV1::Schema::Representation
|
83
|
+
command.response_class = Google::Apis::PubsubV1::Schema
|
84
|
+
command.params['parent'] = parent unless parent.nil?
|
85
|
+
command.query['schemaId'] = schema_id unless schema_id.nil?
|
86
|
+
command.query['fields'] = fields unless fields.nil?
|
87
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
88
|
+
execute_or_queue_command(command, &block)
|
89
|
+
end
|
90
|
+
|
91
|
+
# Deletes a schema.
|
92
|
+
# @param [String] name
|
93
|
+
# Required. Name of the schema to delete. Format is `projects/`project`/schemas/`
|
94
|
+
# schema``.
|
95
|
+
# @param [String] fields
|
96
|
+
# Selector specifying which fields to include in a partial response.
|
97
|
+
# @param [String] quota_user
|
98
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
99
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
100
|
+
# @param [Google::Apis::RequestOptions] options
|
101
|
+
# Request-specific options
|
102
|
+
#
|
103
|
+
# @yield [result, err] Result & error if block supplied
|
104
|
+
# @yieldparam result [Google::Apis::PubsubV1::Empty] parsed result object
|
105
|
+
# @yieldparam err [StandardError] error object if request failed
|
106
|
+
#
|
107
|
+
# @return [Google::Apis::PubsubV1::Empty]
|
108
|
+
#
|
109
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
110
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
111
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
112
|
+
def delete_project_schema(name, fields: nil, quota_user: nil, options: nil, &block)
|
113
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
114
|
+
command.response_representation = Google::Apis::PubsubV1::Empty::Representation
|
115
|
+
command.response_class = Google::Apis::PubsubV1::Empty
|
116
|
+
command.params['name'] = name unless name.nil?
|
117
|
+
command.query['fields'] = fields unless fields.nil?
|
118
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
119
|
+
execute_or_queue_command(command, &block)
|
120
|
+
end
|
121
|
+
|
122
|
+
# Gets a schema.
|
123
|
+
# @param [String] name
|
124
|
+
# Required. The name of the schema to get. Format is `projects/`project`/schemas/
|
125
|
+
# `schema``.
|
126
|
+
# @param [String] view
|
127
|
+
# The set of fields to return in the response. If not set, returns a Schema with
|
128
|
+
# `name` and `type`, but not `definition`. Set to `FULL` to retrieve all fields.
|
129
|
+
# @param [String] fields
|
130
|
+
# Selector specifying which fields to include in a partial response.
|
131
|
+
# @param [String] quota_user
|
132
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
133
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
134
|
+
# @param [Google::Apis::RequestOptions] options
|
135
|
+
# Request-specific options
|
136
|
+
#
|
137
|
+
# @yield [result, err] Result & error if block supplied
|
138
|
+
# @yieldparam result [Google::Apis::PubsubV1::Schema] parsed result object
|
139
|
+
# @yieldparam err [StandardError] error object if request failed
|
140
|
+
#
|
141
|
+
# @return [Google::Apis::PubsubV1::Schema]
|
142
|
+
#
|
143
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
144
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
145
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
146
|
+
def get_project_schema(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
147
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
148
|
+
command.response_representation = Google::Apis::PubsubV1::Schema::Representation
|
149
|
+
command.response_class = Google::Apis::PubsubV1::Schema
|
150
|
+
command.params['name'] = name unless name.nil?
|
151
|
+
command.query['view'] = view unless view.nil?
|
152
|
+
command.query['fields'] = fields unless fields.nil?
|
153
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
154
|
+
execute_or_queue_command(command, &block)
|
155
|
+
end
|
156
|
+
|
157
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
158
|
+
# resource exists and does not have a policy set.
|
159
|
+
# @param [String] resource
|
160
|
+
# REQUIRED: The resource for which the policy is being requested. See the
|
161
|
+
# operation documentation for the appropriate value for this field.
|
162
|
+
# @param [Fixnum] options_requested_policy_version
|
163
|
+
# Optional. The policy format version to be returned. Valid values are 0, 1, and
|
164
|
+
# 3. Requests specifying an invalid value will be rejected. Requests for
|
165
|
+
# policies with any conditional bindings must specify version 3. Policies
|
166
|
+
# without any conditional bindings may specify any valid value or leave the
|
167
|
+
# field unset. To learn which resources support conditions in their IAM policies,
|
168
|
+
# see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
|
169
|
+
# resource-policies).
|
170
|
+
# @param [String] fields
|
171
|
+
# Selector specifying which fields to include in a partial response.
|
172
|
+
# @param [String] quota_user
|
173
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
174
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
175
|
+
# @param [Google::Apis::RequestOptions] options
|
176
|
+
# Request-specific options
|
177
|
+
#
|
178
|
+
# @yield [result, err] Result & error if block supplied
|
179
|
+
# @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object
|
180
|
+
# @yieldparam err [StandardError] error object if request failed
|
181
|
+
#
|
182
|
+
# @return [Google::Apis::PubsubV1::Policy]
|
183
|
+
#
|
184
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
185
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
186
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
187
|
+
def get_project_schema_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
188
|
+
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
189
|
+
command.response_representation = Google::Apis::PubsubV1::Policy::Representation
|
190
|
+
command.response_class = Google::Apis::PubsubV1::Policy
|
191
|
+
command.params['resource'] = resource unless resource.nil?
|
192
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
193
|
+
command.query['fields'] = fields unless fields.nil?
|
194
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
195
|
+
execute_or_queue_command(command, &block)
|
196
|
+
end
|
197
|
+
|
198
|
+
# Lists schemas in a project.
|
199
|
+
# @param [String] parent
|
200
|
+
# Required. The name of the project in which to list schemas. Format is `
|
201
|
+
# projects/`project-id``.
|
202
|
+
# @param [Fixnum] page_size
|
203
|
+
# Maximum number of schemas to return.
|
204
|
+
# @param [String] page_token
|
205
|
+
# The value returned by the last `ListSchemasResponse`; indicates that this is a
|
206
|
+
# continuation of a prior `ListSchemas` call, and that the system should return
|
207
|
+
# the next page of data.
|
208
|
+
# @param [String] view
|
209
|
+
# The set of Schema fields to return in the response. If not set, returns
|
210
|
+
# Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
|
211
|
+
# retrieve all fields.
|
212
|
+
# @param [String] fields
|
213
|
+
# Selector specifying which fields to include in a partial response.
|
214
|
+
# @param [String] quota_user
|
215
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
216
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
217
|
+
# @param [Google::Apis::RequestOptions] options
|
218
|
+
# Request-specific options
|
219
|
+
#
|
220
|
+
# @yield [result, err] Result & error if block supplied
|
221
|
+
# @yieldparam result [Google::Apis::PubsubV1::ListSchemasResponse] parsed result object
|
222
|
+
# @yieldparam err [StandardError] error object if request failed
|
223
|
+
#
|
224
|
+
# @return [Google::Apis::PubsubV1::ListSchemasResponse]
|
225
|
+
#
|
226
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
227
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
228
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
229
|
+
def list_project_schemas(parent, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
230
|
+
command = make_simple_command(:get, 'v1/{+parent}/schemas', options)
|
231
|
+
command.response_representation = Google::Apis::PubsubV1::ListSchemasResponse::Representation
|
232
|
+
command.response_class = Google::Apis::PubsubV1::ListSchemasResponse
|
233
|
+
command.params['parent'] = parent unless parent.nil?
|
234
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
235
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
236
|
+
command.query['view'] = view unless view.nil?
|
237
|
+
command.query['fields'] = fields unless fields.nil?
|
238
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
239
|
+
execute_or_queue_command(command, &block)
|
240
|
+
end
|
241
|
+
|
242
|
+
# Sets the access control policy on the specified resource. Replaces any
|
243
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
244
|
+
# PERMISSION_DENIED` errors.
|
245
|
+
# @param [String] resource
|
246
|
+
# REQUIRED: The resource for which the policy is being specified. See the
|
247
|
+
# operation documentation for the appropriate value for this field.
|
248
|
+
# @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object
|
249
|
+
# @param [String] fields
|
250
|
+
# Selector specifying which fields to include in a partial response.
|
251
|
+
# @param [String] quota_user
|
252
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
253
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
254
|
+
# @param [Google::Apis::RequestOptions] options
|
255
|
+
# Request-specific options
|
256
|
+
#
|
257
|
+
# @yield [result, err] Result & error if block supplied
|
258
|
+
# @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object
|
259
|
+
# @yieldparam err [StandardError] error object if request failed
|
260
|
+
#
|
261
|
+
# @return [Google::Apis::PubsubV1::Policy]
|
262
|
+
#
|
263
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
264
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
265
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
266
|
+
def set_schema_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
267
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
268
|
+
command.request_representation = Google::Apis::PubsubV1::SetIamPolicyRequest::Representation
|
269
|
+
command.request_object = set_iam_policy_request_object
|
270
|
+
command.response_representation = Google::Apis::PubsubV1::Policy::Representation
|
271
|
+
command.response_class = Google::Apis::PubsubV1::Policy
|
272
|
+
command.params['resource'] = resource unless resource.nil?
|
273
|
+
command.query['fields'] = fields unless fields.nil?
|
274
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
275
|
+
execute_or_queue_command(command, &block)
|
276
|
+
end
|
277
|
+
|
278
|
+
# Returns permissions that a caller has on the specified resource. If the
|
279
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
280
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
281
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
282
|
+
# This operation may "fail open" without warning.
|
283
|
+
# @param [String] resource
|
284
|
+
# REQUIRED: The resource for which the policy detail is being requested. See the
|
285
|
+
# operation documentation for the appropriate value for this field.
|
286
|
+
# @param [Google::Apis::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
287
|
+
# @param [String] fields
|
288
|
+
# Selector specifying which fields to include in a partial response.
|
289
|
+
# @param [String] quota_user
|
290
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
291
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
292
|
+
# @param [Google::Apis::RequestOptions] options
|
293
|
+
# Request-specific options
|
294
|
+
#
|
295
|
+
# @yield [result, err] Result & error if block supplied
|
296
|
+
# @yieldparam result [Google::Apis::PubsubV1::TestIamPermissionsResponse] parsed result object
|
297
|
+
# @yieldparam err [StandardError] error object if request failed
|
298
|
+
#
|
299
|
+
# @return [Google::Apis::PubsubV1::TestIamPermissionsResponse]
|
300
|
+
#
|
301
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
302
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
303
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
304
|
+
def test_schema_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
305
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
306
|
+
command.request_representation = Google::Apis::PubsubV1::TestIamPermissionsRequest::Representation
|
307
|
+
command.request_object = test_iam_permissions_request_object
|
308
|
+
command.response_representation = Google::Apis::PubsubV1::TestIamPermissionsResponse::Representation
|
309
|
+
command.response_class = Google::Apis::PubsubV1::TestIamPermissionsResponse
|
310
|
+
command.params['resource'] = resource unless resource.nil?
|
311
|
+
command.query['fields'] = fields unless fields.nil?
|
312
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
313
|
+
execute_or_queue_command(command, &block)
|
314
|
+
end
|
315
|
+
|
316
|
+
# Validates a schema.
|
317
|
+
# @param [String] parent
|
318
|
+
# Required. The name of the project in which to validate schemas. Format is `
|
319
|
+
# projects/`project-id``.
|
320
|
+
# @param [Google::Apis::PubsubV1::ValidateSchemaRequest] validate_schema_request_object
|
321
|
+
# @param [String] fields
|
322
|
+
# Selector specifying which fields to include in a partial response.
|
323
|
+
# @param [String] quota_user
|
324
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
325
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
326
|
+
# @param [Google::Apis::RequestOptions] options
|
327
|
+
# Request-specific options
|
328
|
+
#
|
329
|
+
# @yield [result, err] Result & error if block supplied
|
330
|
+
# @yieldparam result [Google::Apis::PubsubV1::ValidateSchemaResponse] parsed result object
|
331
|
+
# @yieldparam err [StandardError] error object if request failed
|
332
|
+
#
|
333
|
+
# @return [Google::Apis::PubsubV1::ValidateSchemaResponse]
|
334
|
+
#
|
335
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
336
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
337
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
338
|
+
def validate_schema(parent, validate_schema_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
339
|
+
command = make_simple_command(:post, 'v1/{+parent}/schemas:validate', options)
|
340
|
+
command.request_representation = Google::Apis::PubsubV1::ValidateSchemaRequest::Representation
|
341
|
+
command.request_object = validate_schema_request_object
|
342
|
+
command.response_representation = Google::Apis::PubsubV1::ValidateSchemaResponse::Representation
|
343
|
+
command.response_class = Google::Apis::PubsubV1::ValidateSchemaResponse
|
344
|
+
command.params['parent'] = parent unless parent.nil?
|
345
|
+
command.query['fields'] = fields unless fields.nil?
|
346
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
347
|
+
execute_or_queue_command(command, &block)
|
348
|
+
end
|
349
|
+
|
350
|
+
# Validates a message against a schema.
|
351
|
+
# @param [String] parent
|
352
|
+
# Required. The name of the project in which to validate schemas. Format is `
|
353
|
+
# projects/`project-id``.
|
354
|
+
# @param [Google::Apis::PubsubV1::ValidateMessageRequest] validate_message_request_object
|
355
|
+
# @param [String] fields
|
356
|
+
# Selector specifying which fields to include in a partial response.
|
357
|
+
# @param [String] quota_user
|
358
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
359
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
360
|
+
# @param [Google::Apis::RequestOptions] options
|
361
|
+
# Request-specific options
|
362
|
+
#
|
363
|
+
# @yield [result, err] Result & error if block supplied
|
364
|
+
# @yieldparam result [Google::Apis::PubsubV1::ValidateMessageResponse] parsed result object
|
365
|
+
# @yieldparam err [StandardError] error object if request failed
|
366
|
+
#
|
367
|
+
# @return [Google::Apis::PubsubV1::ValidateMessageResponse]
|
368
|
+
#
|
369
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
370
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
371
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
372
|
+
def validate_schema_message(parent, validate_message_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
373
|
+
command = make_simple_command(:post, 'v1/{+parent}/schemas:validateMessage', options)
|
374
|
+
command.request_representation = Google::Apis::PubsubV1::ValidateMessageRequest::Representation
|
375
|
+
command.request_object = validate_message_request_object
|
376
|
+
command.response_representation = Google::Apis::PubsubV1::ValidateMessageResponse::Representation
|
377
|
+
command.response_class = Google::Apis::PubsubV1::ValidateMessageResponse
|
378
|
+
command.params['parent'] = parent unless parent.nil?
|
379
|
+
command.query['fields'] = fields unless fields.nil?
|
380
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
381
|
+
execute_or_queue_command(command, &block)
|
382
|
+
end
|
383
|
+
|
52
384
|
# Creates a snapshot from the requested subscription. Snapshots are used in [
|
53
385
|
# Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, which
|
54
386
|
# allow you to manage message acknowledgments in bulk. That is, you can set the
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
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.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.3'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 2.a
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.3'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 2.a
|
27
33
|
description: This is the simple REST client for Cloud Pub/Sub API V1. Simple REST
|
28
34
|
clients are Ruby client libraries that provide access to Google services via their
|
29
35
|
HTTP REST API endpoints. These libraries are generated and updated automatically
|
@@ -52,7 +58,7 @@ licenses:
|
|
52
58
|
metadata:
|
53
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-pubsub_v1/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-pubsub_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-pubsub_v1/v0.6.0
|
56
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-pubsub_v1
|
57
63
|
post_install_message:
|
58
64
|
rdoc_options: []
|
@@ -62,14 +68,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
62
68
|
requirements:
|
63
69
|
- - ">="
|
64
70
|
- !ruby/object:Gem::Version
|
65
|
-
version: '2.
|
71
|
+
version: '2.5'
|
66
72
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
73
|
requirements:
|
68
74
|
- - ">="
|
69
75
|
- !ruby/object:Gem::Version
|
70
76
|
version: '0'
|
71
77
|
requirements: []
|
72
|
-
rubygems_version: 3.
|
78
|
+
rubygems_version: 3.2.17
|
73
79
|
signing_key:
|
74
80
|
specification_version: 4
|
75
81
|
summary: Simple REST client for Cloud Pub/Sub API V1
|