google-apis-pubsub_v1 0.36.0 → 0.38.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c87be04cdf55f91999f829fdd4fab97b80891298512725eb8625be7a960db6c7
4
- data.tar.gz: 5712f0802bce713738072ff8421e37e711156629f54f2e3371529fcab80d6800
3
+ metadata.gz: cc53e8f7177d7b64729ee2706e490a94b8890a280c7b09545b33ceb7973f8217
4
+ data.tar.gz: 413c019559d65556122c8d9c864126430b485d38f1242a811d4bac5496adc2b5
5
5
  SHA512:
6
- metadata.gz: 8488ffee537c4ba80e951f98e62f33940e5c587085dd3ad2e9a669f971201f94cb4415825e4b58af1508c7487d209ead1dc6a5327beb7e74bfe95cd1997f47b2
7
- data.tar.gz: be9e8b9fbca94c76c6cc1514856bf5b01df6f9b710dfdbbb5522480448402d0b15fff4c1ef73d2fd83a0e3b2ad9161f261008ffa69c19c06fc6433ed054d23f6
6
+ metadata.gz: 04465e695856d2d7fde0f0f90d9418c65a0eb2a5995652b38ba7d80c0d14e710e706bf06789a8a9c453e4a507698a2d888736bd4021120f32d7c16a345bdaad3
7
+ data.tar.gz: f867e709c0af85e9c676459bb7c76ca3610e6a8d37f51d9236a6235cef43306137fdfb4acea631b8cfbcf37feb6eabe3bf117fe6cd0e2bce2615fb767e46bde8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-pubsub_v1
2
2
 
3
+ ### v0.38.0 (2023-06-11)
4
+
5
+ * Regenerated from discovery document revision 20230529
6
+
7
+ ### v0.37.0 (2023-05-21)
8
+
9
+ * Regenerated from discovery document revision 20230509
10
+
3
11
  ### v0.36.0 (2023-05-07)
4
12
 
5
13
  * Regenerated from discovery document revision 20230425
@@ -727,11 +727,30 @@ module Google
727
727
  end
728
728
  end
729
729
 
730
+ # Sets the `data` field as the HTTP body for delivery.
731
+ class NoWrapper
732
+ include Google::Apis::Core::Hashable
733
+
734
+ # When true, writes the Pub/Sub message metadata to `x-goog-pubsub-:` headers of
735
+ # the HTTP request. Writes the Pub/Sub message attributes to `:` headers of the
736
+ # HTTP request.
737
+ # Corresponds to the JSON property `writeMetadata`
738
+ # @return [Boolean]
739
+ attr_accessor :write_metadata
740
+ alias_method :write_metadata?, :write_metadata
741
+
742
+ def initialize(**args)
743
+ update!(**args)
744
+ end
745
+
746
+ # Update properties of this object
747
+ def update!(**args)
748
+ @write_metadata = args[:write_metadata] if args.key?(:write_metadata)
749
+ end
750
+ end
751
+
730
752
  # Contains information needed for generating an [OpenID Connect token](https://
731
- # developers.google.com/identity/protocols/OpenIDConnect). [Service account
732
- # email](https://cloud.google.com/iam/docs/service-accounts) used for generating
733
- # the OIDC token. For more information on setting up authentication, see [Push
734
- # subscriptions](https://cloud.google.com/pubsub/docs/push).
753
+ # developers.google.com/identity/protocols/OpenIDConnect).
735
754
  class OidcToken
736
755
  include Google::Apis::Core::Hashable
737
756
 
@@ -745,7 +764,10 @@ module Google
745
764
  # @return [String]
746
765
  attr_accessor :audience
747
766
 
748
- #
767
+ # [Service account email](https://cloud.google.com/iam/docs/service-accounts)
768
+ # used for generating the OIDC token. For more information on setting up
769
+ # authentication, see [Push subscriptions](https://cloud.google.com/pubsub/docs/
770
+ # push).
749
771
  # Corresponds to the JSON property `serviceAccountEmail`
750
772
  # @return [String]
751
773
  attr_accessor :service_account_email
@@ -952,6 +974,21 @@ module Google
952
974
  end
953
975
  end
954
976
 
977
+ # The payload to the push endpoint is in the form of the JSON representation of
978
+ # a PubsubMessage (https://cloud.google.com/pubsub/docs/reference/rpc/google.
979
+ # pubsub.v1#pubsubmessage).
980
+ class PubsubWrapper
981
+ include Google::Apis::Core::Hashable
982
+
983
+ def initialize(**args)
984
+ update!(**args)
985
+ end
986
+
987
+ # Update properties of this object
988
+ def update!(**args)
989
+ end
990
+ end
991
+
955
992
  # Request for the `Pull` method.
956
993
  class PullRequest
957
994
  include Google::Apis::Core::Hashable
@@ -1030,15 +1067,24 @@ module Google
1030
1067
  # @return [Hash<String,String>]
1031
1068
  attr_accessor :attributes
1032
1069
 
1070
+ # Sets the `data` field as the HTTP body for delivery.
1071
+ # Corresponds to the JSON property `noWrapper`
1072
+ # @return [Google::Apis::PubsubV1::NoWrapper]
1073
+ attr_accessor :no_wrapper
1074
+
1033
1075
  # Contains information needed for generating an [OpenID Connect token](https://
1034
- # developers.google.com/identity/protocols/OpenIDConnect). [Service account
1035
- # email](https://cloud.google.com/iam/docs/service-accounts) used for generating
1036
- # the OIDC token. For more information on setting up authentication, see [Push
1037
- # subscriptions](https://cloud.google.com/pubsub/docs/push).
1076
+ # developers.google.com/identity/protocols/OpenIDConnect).
1038
1077
  # Corresponds to the JSON property `oidcToken`
1039
1078
  # @return [Google::Apis::PubsubV1::OidcToken]
1040
1079
  attr_accessor :oidc_token
1041
1080
 
1081
+ # The payload to the push endpoint is in the form of the JSON representation of
1082
+ # a PubsubMessage (https://cloud.google.com/pubsub/docs/reference/rpc/google.
1083
+ # pubsub.v1#pubsubmessage).
1084
+ # Corresponds to the JSON property `pubsubWrapper`
1085
+ # @return [Google::Apis::PubsubV1::PubsubWrapper]
1086
+ attr_accessor :pubsub_wrapper
1087
+
1042
1088
  # A URL locating the endpoint to which messages should be pushed. For example, a
1043
1089
  # Webhook endpoint might use `https://example.com/push`.
1044
1090
  # Corresponds to the JSON property `pushEndpoint`
@@ -1052,7 +1098,9 @@ module Google
1052
1098
  # Update properties of this object
1053
1099
  def update!(**args)
1054
1100
  @attributes = args[:attributes] if args.key?(:attributes)
1101
+ @no_wrapper = args[:no_wrapper] if args.key?(:no_wrapper)
1055
1102
  @oidc_token = args[:oidc_token] if args.key?(:oidc_token)
1103
+ @pubsub_wrapper = args[:pubsub_wrapper] if args.key?(:pubsub_wrapper)
1056
1104
  @push_endpoint = args[:push_endpoint] if args.key?(:push_endpoint)
1057
1105
  end
1058
1106
  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.36.0"
19
+ GEM_VERSION = "0.38.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230425"
25
+ REVISION = "20230529"
26
26
  end
27
27
  end
28
28
  end
@@ -154,6 +154,12 @@ module Google
154
154
  include Google::Apis::Core::JsonObjectSupport
155
155
  end
156
156
 
157
+ class NoWrapper
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
157
163
  class OidcToken
158
164
  class Representation < Google::Apis::Core::JsonRepresentation; end
159
165
 
@@ -184,6 +190,12 @@ module Google
184
190
  include Google::Apis::Core::JsonObjectSupport
185
191
  end
186
192
 
193
+ class PubsubWrapper
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
187
199
  class PullRequest
188
200
  class Representation < Google::Apis::Core::JsonRepresentation; end
189
201
 
@@ -516,6 +528,13 @@ module Google
516
528
  end
517
529
  end
518
530
 
531
+ class NoWrapper
532
+ # @private
533
+ class Representation < Google::Apis::Core::JsonRepresentation
534
+ property :write_metadata, as: 'writeMetadata'
535
+ end
536
+ end
537
+
519
538
  class OidcToken
520
539
  # @private
521
540
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -560,6 +579,12 @@ module Google
560
579
  end
561
580
  end
562
581
 
582
+ class PubsubWrapper
583
+ # @private
584
+ class Representation < Google::Apis::Core::JsonRepresentation
585
+ end
586
+ end
587
+
563
588
  class PullRequest
564
589
  # @private
565
590
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -580,8 +605,12 @@ module Google
580
605
  # @private
581
606
  class Representation < Google::Apis::Core::JsonRepresentation
582
607
  hash :attributes, as: 'attributes'
608
+ property :no_wrapper, as: 'noWrapper', class: Google::Apis::PubsubV1::NoWrapper, decorator: Google::Apis::PubsubV1::NoWrapper::Representation
609
+
583
610
  property :oidc_token, as: 'oidcToken', class: Google::Apis::PubsubV1::OidcToken, decorator: Google::Apis::PubsubV1::OidcToken::Representation
584
611
 
612
+ property :pubsub_wrapper, as: 'pubsubWrapper', class: Google::Apis::PubsubV1::PubsubWrapper, decorator: Google::Apis::PubsubV1::PubsubWrapper::Representation
613
+
585
614
  property :push_endpoint, as: 'pushEndpoint'
586
615
  end
587
616
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-pubsub_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.36.0
4
+ version: 0.38.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: 2023-05-14 00:00:00.000000000 Z
11
+ date: 2023-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-pubsub_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-pubsub_v1/v0.36.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-pubsub_v1/v0.38.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-pubsub_v1
63
63
  post_install_message:
64
64
  rdoc_options: []