google-cloud-pubsub-v1 0.5.0 → 0.6.1

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.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module PubSub
23
23
  module V1
24
- VERSION = "0.5.0"
24
+ VERSION = "0.6.1"
25
25
  end
26
26
  end
27
27
  end
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/pubsub/v1/pubsub.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/client_pb'
8
6
  require 'google/api/field_behavior_pb'
@@ -12,6 +10,8 @@ require 'google/protobuf/empty_pb'
12
10
  require 'google/protobuf/field_mask_pb'
13
11
  require 'google/protobuf/timestamp_pb'
14
12
  require 'google/pubsub/v1/schema_pb'
13
+ require 'google/protobuf'
14
+
15
15
  Google::Protobuf::DescriptorPool.generated_pool.build do
16
16
  add_file("google/pubsub/v1/pubsub.proto", :syntax => :proto3) do
17
17
  add_message "google.pubsub.v1.MessageStoragePolicy" do
@@ -28,6 +28,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
28
28
  optional :kms_key_name, :string, 5
29
29
  optional :schema_settings, :message, 6, "google.pubsub.v1.SchemaSettings"
30
30
  optional :satisfies_pzs, :bool, 7
31
+ optional :message_retention_duration, :message, 8, "google.protobuf.Duration"
31
32
  end
32
33
  add_message "google.pubsub.v1.PubsubMessage" do
33
34
  optional :data, :bytes, 1
@@ -99,6 +100,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
99
100
  optional :dead_letter_policy, :message, 13, "google.pubsub.v1.DeadLetterPolicy"
100
101
  optional :retry_policy, :message, 14, "google.pubsub.v1.RetryPolicy"
101
102
  optional :detached, :bool, 15
103
+ optional :topic_message_retention_duration, :message, 17, "google.protobuf.Duration"
102
104
  end
103
105
  add_message "google.pubsub.v1.RetryPolicy" do
104
106
  optional :minimum_backoff, :message, 1, "google.protobuf.Duration"
@@ -1,13 +1,13 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/pubsub/v1/schema.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/client_pb'
8
6
  require 'google/api/field_behavior_pb'
9
7
  require 'google/api/resource_pb'
10
8
  require 'google/protobuf/empty_pb'
9
+ require 'google/protobuf'
10
+
11
11
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
12
  add_file("google/pubsub/v1/schema.proto", :syntax => :proto3) do
13
13
  add_message "google.pubsub.v1.Schema" do
@@ -57,9 +57,15 @@ module Google
57
57
 
58
58
  # Denotes that a (repeated) field is an unordered list.
59
59
  # This indicates that the service may provide the elements of the list
60
- # in any arbitrary order, rather than the order the user originally
60
+ # in any arbitrary order, rather than the order the user originally
61
61
  # provided. Additionally, the list's order may or may not be stable.
62
62
  UNORDERED_LIST = 6
63
+
64
+ # Denotes that this field returns a non-empty default value if not set.
65
+ # This indicates that if the user provides the empty value in a request,
66
+ # a non-empty value will be returned. The user will not be aware of what
67
+ # non-empty value to expect.
68
+ NON_EMPTY_DEFAULT = 7
63
69
  end
64
70
  end
65
71
  end
@@ -80,6 +80,16 @@ module Google
80
80
  # @return [::Boolean]
81
81
  # Reserved for future use. This field is set only in responses from the
82
82
  # server; it is ignored if it is set in any requests.
83
+ # @!attribute [rw] message_retention_duration
84
+ # @return [::Google::Protobuf::Duration]
85
+ # Indicates the minimum duration to retain a message after it is published to
86
+ # the topic. If this field is set, messages published to the topic in the
87
+ # last `message_retention_duration` are always available to subscribers. For
88
+ # instance, it allows any attached subscription to [seek to a
89
+ # timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
90
+ # that is up to `message_retention_duration` in the past. If this field is
91
+ # not set, message retention is controlled by settings on individual
92
+ # subscriptions. Cannot be more than 7 days or less than 10 minutes.
83
93
  class Topic
84
94
  include ::Google::Protobuf::MessageExts
85
95
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -362,8 +372,9 @@ module Google
362
372
  # Indicates whether to retain acknowledged messages. If true, then
363
373
  # messages are not expunged from the subscription's backlog, even if they are
364
374
  # acknowledged, until they fall out of the `message_retention_duration`
365
- # window. This must be true if you would like to [Seek to a timestamp]
366
- # (https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time).
375
+ # window. This must be true if you would like to [`Seek` to a timestamp]
376
+ # (https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time) in
377
+ # the past to replay previously-acknowledged messages.
367
378
  # @!attribute [rw] message_retention_duration
368
379
  # @return [::Google::Protobuf::Duration]
369
380
  # How long to retain unacknowledged messages in the subscription's backlog,
@@ -423,6 +434,14 @@ module Google
423
434
  # backlog. `Pull` and `StreamingPull` requests will return
424
435
  # FAILED_PRECONDITION. If the subscription is a push subscription, pushes to
425
436
  # the endpoint will not be made.
437
+ # @!attribute [r] topic_message_retention_duration
438
+ # @return [::Google::Protobuf::Duration]
439
+ # Output only. Indicates the minimum duration for which a message is retained
440
+ # after it is published to the subscription's topic. If this field is set,
441
+ # messages published to the subscription's topic in the last
442
+ # `topic_message_retention_duration` are always available to subscribers. See
443
+ # the `message_retention_duration` field in `Topic`. This field is set only
444
+ # in responses from the server; it is ignored if it is set in any requests.
426
445
  class Subscription
427
446
  include ::Google::Protobuf::MessageExts
428
447
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -150,6 +150,7 @@ module Google
150
150
  end
151
151
 
152
152
  # Response for the `ValidateSchema` method.
153
+ # Empty for now.
153
154
  class ValidateSchemaResponse
154
155
  include ::Google::Protobuf::MessageExts
155
156
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -180,6 +181,7 @@ module Google
180
181
  end
181
182
 
182
183
  # Response for the `ValidateMessage` method.
184
+ # Empty for now.
183
185
  class ValidateMessageResponse
184
186
  include ::Google::Protobuf::MessageExts
185
187
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -19,30 +19,53 @@
19
19
 
20
20
  module Google
21
21
  module Type
22
- # Represents an expression text. Example:
22
+ # Represents a textual expression in the Common Expression Language (CEL)
23
+ # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
24
+ # are documented at https://github.com/google/cel-spec.
23
25
  #
24
- # title: "User account presence"
25
- # description: "Determines whether the request has a user account"
26
- # expression: "size(request.user) > 0"
26
+ # Example (Comparison):
27
+ #
28
+ # title: "Summary size limit"
29
+ # description: "Determines if a summary is less than 100 chars"
30
+ # expression: "document.summary.size() < 100"
31
+ #
32
+ # Example (Equality):
33
+ #
34
+ # title: "Requestor is owner"
35
+ # description: "Determines if requestor is the document owner"
36
+ # expression: "document.owner == request.auth.claims.email"
37
+ #
38
+ # Example (Logic):
39
+ #
40
+ # title: "Public documents"
41
+ # description: "Determine whether the document should be publicly visible"
42
+ # expression: "document.type != 'private' && document.type != 'internal'"
43
+ #
44
+ # Example (Data Manipulation):
45
+ #
46
+ # title: "Notification string"
47
+ # description: "Create a notification string with a timestamp."
48
+ # expression: "'New message received at ' + string(document.create_time)"
49
+ #
50
+ # The exact variables and functions that may be referenced within an expression
51
+ # are determined by the service that evaluates it. See the service
52
+ # documentation for additional information.
27
53
  # @!attribute [rw] expression
28
54
  # @return [::String]
29
- # Textual representation of an expression in
30
- # Common Expression Language syntax.
31
- #
32
- # The application context of the containing message determines which
33
- # well-known feature set of CEL is supported.
55
+ # Textual representation of an expression in Common Expression Language
56
+ # syntax.
34
57
  # @!attribute [rw] title
35
58
  # @return [::String]
36
- # An optional title for the expression, i.e. a short string describing
59
+ # Optional. Title for the expression, i.e. a short string describing
37
60
  # its purpose. This can be used e.g. in UIs which allow to enter the
38
61
  # expression.
39
62
  # @!attribute [rw] description
40
63
  # @return [::String]
41
- # An optional description of the expression. This is a longer text which
64
+ # Optional. Description of the expression. This is a longer text which
42
65
  # describes the expression, e.g. when hovered over it in a UI.
43
66
  # @!attribute [rw] location
44
67
  # @return [::String]
45
- # An optional string indicating the location of the expression for error
68
+ # Optional. String indicating the location of the expression for error
46
69
  # reporting, e.g. a file name and a position in the file.
47
70
  class Expr
48
71
  include ::Google::Protobuf::MessageExts
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-pubsub-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.1
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-07-07 00:00:00.000000000 Z
11
+ date: 2021-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.5'
19
+ version: '0.7'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.5'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -209,7 +209,6 @@ files:
209
209
  - lib/google/cloud/pubsub/v1/subscriber/helpers.rb
210
210
  - lib/google/cloud/pubsub/v1/subscriber/paths.rb
211
211
  - lib/google/cloud/pubsub/v1/version.rb
212
- - lib/google/iam/v1/iam_policy_services_pb.rb
213
212
  - lib/google/pubsub/v1/pubsub_pb.rb
214
213
  - lib/google/pubsub/v1/pubsub_services_pb.rb
215
214
  - lib/google/pubsub/v1/schema_pb.rb
@@ -1,81 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: google/iam/v1/iam_policy.proto for package 'google.iam.v1'
3
- # Original file comments:
4
- # Copyright 2019 Google LLC.
5
- #
6
- # Licensed under the Apache License, Version 2.0 (the "License");
7
- # you may not use this file except in compliance with the License.
8
- # You may obtain a copy of the License at
9
- #
10
- # http://www.apache.org/licenses/LICENSE-2.0
11
- #
12
- # Unless required by applicable law or agreed to in writing, software
13
- # distributed under the License is distributed on an "AS IS" BASIS,
14
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- # See the License for the specific language governing permissions and
16
- # limitations under the License.
17
- #
18
- #
19
-
20
- require 'grpc'
21
- require 'google/iam/v1/iam_policy_pb'
22
-
23
- module Google
24
- module Iam
25
- module V1
26
- module IAMPolicy
27
- # ## API Overview
28
- #
29
- # Manages Identity and Access Management (IAM) policies.
30
- #
31
- # Any implementation of an API that offers access control features
32
- # implements the google.iam.v1.IAMPolicy interface.
33
- #
34
- # ## Data model
35
- #
36
- # Access control is applied when a principal (user or service account), takes
37
- # some action on a resource exposed by a service. Resources, identified by
38
- # URI-like names, are the unit of access control specification. Service
39
- # implementations can choose the granularity of access control and the
40
- # supported permissions for their resources.
41
- # For example one database service may allow access control to be
42
- # specified only at the Table level, whereas another might allow access control
43
- # to also be specified at the Column level.
44
- #
45
- # ## Policy Structure
46
- #
47
- # See google.iam.v1.Policy
48
- #
49
- # This is intentionally not a CRUD style API because access control policies
50
- # are created and deleted implicitly with the resources to which they are
51
- # attached.
52
- class Service
53
-
54
- include ::GRPC::GenericService
55
-
56
- self.marshal_class_method = :encode
57
- self.unmarshal_class_method = :decode
58
- self.service_name = 'google.iam.v1.IAMPolicy'
59
-
60
- # Sets the access control policy on the specified resource. Replaces any
61
- # existing policy.
62
- rpc :SetIamPolicy, ::Google::Iam::V1::SetIamPolicyRequest, ::Google::Iam::V1::Policy
63
- # Gets the access control policy for a resource.
64
- # Returns an empty policy if the resource exists and does not have a policy
65
- # set.
66
- rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy
67
- # Returns permissions that a caller has on the specified resource.
68
- # If the resource does not exist, this will return an empty set of
69
- # permissions, not a NOT_FOUND error.
70
- #
71
- # Note: This operation is designed to be used for building permission-aware
72
- # UIs and command-line tools, not for authorization checking. This operation
73
- # may "fail open" without warning.
74
- rpc :TestIamPermissions, ::Google::Iam::V1::TestIamPermissionsRequest, ::Google::Iam::V1::TestIamPermissionsResponse
75
- end
76
-
77
- Stub = Service.rpc_stub_class
78
- end
79
- end
80
- end
81
- end