google-cloud-common 1.0.1 → 1.2.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: d34d22bb66dddf037c3c30dc1625e99e5cfaf19382488f76bedcebaab2a20620
4
- data.tar.gz: 5be126e923a42704e16942bf4ea0798c8afb2ad90badc0566fdb44f88c0fbc98
3
+ metadata.gz: 5cb3e03094d8e9e61a90bacfa42f29a008daa3ff8e13fb1342e277e3b9f5201e
4
+ data.tar.gz: 99a04d140cbea9a4e38275fe12d0e16a0f219f554a1e9792e192860bbf31fb79
5
5
  SHA512:
6
- metadata.gz: '04389a455602cca23369825d2df6dc64d46c350f4c6ed12ae2ef050821bb40eaf009d1f1ea46ee7c3e7f94923768647f027f34252d17d861edef7dc6d05fc631'
7
- data.tar.gz: a4d1a2888a0590c34db1eb5d95bfc6fd4c41c69cd9ed18e30092111cc31670867bfd387b7cf816416d4a1d7c61643bc85b6f8172f20169dc8a916b9a02f9339d
6
+ metadata.gz: 1a672ad75431d57c26143a8d777b609a4b2e014791ef0b3be4e533f19dc43979354bd89b1b0fb0e6c379dc9d20b391d77ec2bafaab32639fa3b995350e3c24d3
7
+ data.tar.gz: eb83b2e4c98a490457305113cd7f39c78c34dd629f593fdfc0373142bb596fe5a7b488c94c6e27925986511ed51a9582338dfd8bc186455c33202ac56c303224
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ### 1.2.0 (2023-08-07)
4
+
5
+ #### Features
6
+
7
+ * Updated generated protobuf output to use binary descriptors for better future compatibility ([#171](https://github.com/googleapis/common-protos-ruby/issues/171))
8
+
9
+ ### 1.1.0 (2022-08-17)
10
+
11
+ #### Features
12
+
13
+ * Update minimum Ruby version to 2.6 ([#75](https://github.com/googleapis/common-protos-ruby/issues/75))
14
+
3
15
  ### 1.0.1 (2022-06-23)
4
16
 
5
17
  #### Bug Fixes
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/common/operation_metadata.proto
3
4
 
@@ -5,18 +6,33 @@ require 'google/protobuf'
5
6
 
6
7
  require 'google/api/field_behavior_pb'
7
8
  require 'google/protobuf/timestamp_pb'
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("google/cloud/common/operation_metadata.proto", :syntax => :proto3) do
10
- add_message "google.cloud.common.OperationMetadata" do
11
- optional :create_time, :message, 1, "google.protobuf.Timestamp"
12
- optional :end_time, :message, 2, "google.protobuf.Timestamp"
13
- optional :target, :string, 3
14
- optional :verb, :string, 4
15
- optional :status_detail, :string, 5
16
- optional :cancel_requested, :bool, 6
17
- optional :api_version, :string, 7
9
+
10
+
11
+ descriptor_data = "\n,google/cloud/common/operation_metadata.proto\x12\x13google.cloud.common\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf9\x01\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rstatus_detail\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12\x1d\n\x10\x63\x61ncel_requested\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\x42V\n\x17\x63om.google.cloud.commonP\x01Z9google.golang.org/genproto/googleapis/cloud/common;commonb\x06proto3"
12
+
13
+ pool = Google::Protobuf::DescriptorPool.generated_pool
14
+
15
+ begin
16
+ pool.add_serialized_file(descriptor_data)
17
+ rescue TypeError => e
18
+ # Compatibility code: will be removed in the next major version.
19
+ require 'google/protobuf/descriptor_pb'
20
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
21
+ parsed.clear_dependency
22
+ serialized = parsed.class.encode(parsed)
23
+ file = pool.add_serialized_file(serialized)
24
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
25
+ imports = [
26
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
27
+ ]
28
+ imports.each do |type_name, expected_filename|
29
+ import_file = pool.lookup(type_name).file_descriptor
30
+ if import_file.name != expected_filename
31
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
18
32
  end
19
33
  end
34
+ warn "Each proto file must use a consistent fully-qualified name."
35
+ warn "This will become an error in the next major version."
20
36
  end
21
37
 
22
38
  module Google
@@ -26,3 +42,59 @@ module Google
26
42
  end
27
43
  end
28
44
  end
45
+
46
+ #### Source proto file: google/cloud/common/operation_metadata.proto ####
47
+ #
48
+ # // Copyright 2021 Google LLC
49
+ # //
50
+ # // Licensed under the Apache License, Version 2.0 (the "License");
51
+ # // you may not use this file except in compliance with the License.
52
+ # // You may obtain a copy of the License at
53
+ # //
54
+ # // http://www.apache.org/licenses/LICENSE-2.0
55
+ # //
56
+ # // Unless required by applicable law or agreed to in writing, software
57
+ # // distributed under the License is distributed on an "AS IS" BASIS,
58
+ # // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
59
+ # // See the License for the specific language governing permissions and
60
+ # // limitations under the License.
61
+ #
62
+ # syntax = "proto3";
63
+ #
64
+ # package google.cloud.common;
65
+ #
66
+ # import "google/api/field_behavior.proto";
67
+ # import "google/protobuf/timestamp.proto";
68
+ #
69
+ # option go_package = "google.golang.org/genproto/googleapis/cloud/common;common";
70
+ # option java_multiple_files = true;
71
+ # option java_package = "com.google.cloud.common";
72
+ #
73
+ # // Represents the metadata of the long-running operation.
74
+ # message OperationMetadata {
75
+ # // Output only. The time the operation was created.
76
+ # google.protobuf.Timestamp create_time = 1
77
+ # [(google.api.field_behavior) = OUTPUT_ONLY];
78
+ #
79
+ # // Output only. The time the operation finished running.
80
+ # google.protobuf.Timestamp end_time = 2
81
+ # [(google.api.field_behavior) = OUTPUT_ONLY];
82
+ #
83
+ # // Output only. Server-defined resource path for the target of the operation.
84
+ # string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
85
+ #
86
+ # // Output only. Name of the verb executed by the operation.
87
+ # string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
88
+ #
89
+ # // Output only. Human-readable status of the operation, if any.
90
+ # string status_detail = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
91
+ #
92
+ # // Output only. Identifies whether the user has requested cancellation
93
+ # // of the operation. Operations that have successfully been cancelled
94
+ # // have [Operation.error][] value with a [google.rpc.Status.code][] of 1,
95
+ # // corresponding to `Code.CANCELLED`.
96
+ # bool cancel_requested = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
97
+ #
98
+ # // Output only. API version used to start the operation.
99
+ # string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
100
+ # }
@@ -17,7 +17,7 @@
17
17
  module Google
18
18
  module Cloud
19
19
  module Common
20
- VERSION = "1.0.1".freeze
20
+ VERSION = "1.2.0".freeze
21
21
  end
22
22
  end
23
23
  end
@@ -1,18 +1,36 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/extended_operations.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/cloud/extended_operations.proto", :syntax => :proto3) do
8
- add_enum "google.cloud.OperationResponseMapping" do
9
- value :UNDEFINED, 0
10
- value :NAME, 1
11
- value :STATUS, 2
12
- value :ERROR_CODE, 3
13
- value :ERROR_MESSAGE, 4
7
+ require 'google/protobuf/descriptor_pb'
8
+
9
+
10
+ descriptor_data = "\n&google/cloud/extended_operations.proto\x12\x0cgoogle.cloud\x1a google/protobuf/descriptor.proto*b\n\x18OperationResponseMapping\x12\r\n\tUNDEFINED\x10\x00\x12\x08\n\x04NAME\x10\x01\x12\n\n\x06STATUS\x10\x02\x12\x0e\n\nERROR_CODE\x10\x03\x12\x11\n\rERROR_MESSAGE\x10\x04:_\n\x0foperation_field\x12\x1d.google.protobuf.FieldOptions\x18\xfd\x08 \x01(\x0e\x32&.google.cloud.OperationResponseMapping:?\n\x17operation_request_field\x12\x1d.google.protobuf.FieldOptions\x18\xfe\x08 \x01(\t:@\n\x18operation_response_field\x12\x1d.google.protobuf.FieldOptions\x18\xff\x08 \x01(\t::\n\x11operation_service\x12\x1e.google.protobuf.MethodOptions\x18\xe1\t \x01(\t:A\n\x18operation_polling_method\x12\x1e.google.protobuf.MethodOptions\x18\xe2\t \x01(\x08\x42y\n\x10\x63om.google.cloudB\x17\x45xtendedOperationsProtoP\x01ZCgoogle.golang.org/genproto/googleapis/cloud/extendedops;extendedops\xa2\x02\x04GAPIb\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError => e
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ]
26
+ imports.each do |type_name, expected_filename|
27
+ import_file = pool.lookup(type_name).file_descriptor
28
+ if import_file.name != expected_filename
29
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
14
30
  end
15
31
  end
32
+ warn "Each proto file must use a consistent fully-qualified name."
33
+ warn "This will become an error in the next major version."
16
34
  end
17
35
 
18
36
  module Google
@@ -20,3 +38,156 @@ module Google
20
38
  OperationResponseMapping = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.OperationResponseMapping").enummodule
21
39
  end
22
40
  end
41
+
42
+ #### Source proto file: google/cloud/extended_operations.proto ####
43
+ #
44
+ # // Copyright 2021 Google LLC.
45
+ # //
46
+ # // Licensed under the Apache License, Version 2.0 (the "License");
47
+ # // you may not use this file except in compliance with the License.
48
+ # // You may obtain a copy of the License at
49
+ # //
50
+ # // http://www.apache.org/licenses/LICENSE-2.0
51
+ # //
52
+ # // Unless required by applicable law or agreed to in writing, software
53
+ # // distributed under the License is distributed on an "AS IS" BASIS,
54
+ # // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
55
+ # // See the License for the specific language governing permissions and
56
+ # // limitations under the License.
57
+ #
58
+ # // This file contains custom annotations that are used by GAPIC generators to
59
+ # // handle Long Running Operation methods (LRO) that are NOT compliant with
60
+ # // https://google.aip.dev/151. These annotations are public for technical
61
+ # // reasons only. Please DO NOT USE them in your protos.
62
+ # syntax = "proto3";
63
+ #
64
+ # package google.cloud;
65
+ #
66
+ # import "google/protobuf/descriptor.proto";
67
+ #
68
+ # option go_package = "google.golang.org/genproto/googleapis/cloud/extendedops;extendedops";
69
+ # option java_multiple_files = true;
70
+ # option java_outer_classname = "ExtendedOperationsProto";
71
+ # option java_package = "com.google.cloud";
72
+ # option objc_class_prefix = "GAPI";
73
+ #
74
+ # // FieldOptions to match corresponding fields in the initial request,
75
+ # // polling request and operation response messages.
76
+ # //
77
+ # // Example:
78
+ # //
79
+ # // In an API-specific operation message:
80
+ # //
81
+ # // message MyOperation {
82
+ # // string http_error_message = 1 [(operation_field) = ERROR_MESSAGE];
83
+ # // int32 http_error_status_code = 2 [(operation_field) = ERROR_CODE];
84
+ # // string id = 3 [(operation_field) = NAME];
85
+ # // Status status = 4 [(operation_field) = STATUS];
86
+ # // }
87
+ # //
88
+ # // In a polling request message (the one which is used to poll for an LRO
89
+ # // status):
90
+ # //
91
+ # // message MyPollingRequest {
92
+ # // string operation = 1 [(operation_response_field) = "id"];
93
+ # // string project = 2;
94
+ # // string region = 3;
95
+ # // }
96
+ # //
97
+ # // In an initial request message (the one which starts an LRO):
98
+ # //
99
+ # // message MyInitialRequest {
100
+ # // string my_project = 2 [(operation_request_field) = "project"];
101
+ # // string my_region = 3 [(operation_request_field) = "region"];
102
+ # // }
103
+ # //
104
+ # extend google.protobuf.FieldOptions {
105
+ # // A field annotation that maps fields in an API-specific Operation object to
106
+ # // their standard counterparts in google.longrunning.Operation. See
107
+ # // OperationResponseMapping enum definition.
108
+ # OperationResponseMapping operation_field = 1149;
109
+ #
110
+ # // A field annotation that maps fields in the initial request message
111
+ # // (the one which started the LRO) to their counterparts in the polling
112
+ # // request message. For non-standard LRO, the polling response may be missing
113
+ # // some of the information needed to make a subsequent polling request. The
114
+ # // missing information (for example, project or region ID) is contained in the
115
+ # // fields of the initial request message that this annotation must be applied
116
+ # // to. The string value of the annotation corresponds to the name of the
117
+ # // counterpart field in the polling request message that the annotated field's
118
+ # // value will be copied to.
119
+ # string operation_request_field = 1150;
120
+ #
121
+ # // A field annotation that maps fields in the polling request message to their
122
+ # // counterparts in the initial and/or polling response message. The initial
123
+ # // and the polling methods return an API-specific Operation object. Some of
124
+ # // the fields from that response object must be reused in the subsequent
125
+ # // request (like operation name/ID) to fully identify the polled operation.
126
+ # // This annotation must be applied to the fields in the polling request
127
+ # // message, the string value of the annotation must correspond to the name of
128
+ # // the counterpart field in the Operation response object whose value will be
129
+ # // copied to the annotated field.
130
+ # string operation_response_field = 1151;
131
+ # }
132
+ #
133
+ # // MethodOptions to identify the actual service and method used for operation
134
+ # // status polling.
135
+ # //
136
+ # // Example:
137
+ # //
138
+ # // In a method, which starts an LRO:
139
+ # //
140
+ # // service MyService {
141
+ # // rpc Foo(MyInitialRequest) returns (MyOperation) {
142
+ # // option (operation_service) = "MyPollingService";
143
+ # // }
144
+ # // }
145
+ # //
146
+ # // In a polling method:
147
+ # //
148
+ # // service MyPollingService {
149
+ # // rpc Get(MyPollingRequest) returns (MyOperation) {
150
+ # // option (operation_polling_method) = true;
151
+ # // }
152
+ # // }
153
+ # extend google.protobuf.MethodOptions {
154
+ # // A method annotation that maps an LRO method (the one which starts an LRO)
155
+ # // to the service, which will be used to poll for the operation status. The
156
+ # // annotation must be applied to the method which starts an LRO, the string
157
+ # // value of the annotation must correspond to the name of the service used to
158
+ # // poll for the operation status.
159
+ # string operation_service = 1249;
160
+ #
161
+ # // A method annotation that marks methods that can be used for polling
162
+ # // operation status (e.g. the MyPollingService.Get(MyPollingRequest) method).
163
+ # bool operation_polling_method = 1250;
164
+ # }
165
+ #
166
+ # // An enum to be used to mark the essential (for polling) fields in an
167
+ # // API-specific Operation object. A custom Operation object may contain many
168
+ # // different fields, but only few of them are essential to conduct a successful
169
+ # // polling process.
170
+ # enum OperationResponseMapping {
171
+ # // Do not use.
172
+ # UNDEFINED = 0;
173
+ #
174
+ # // A field in an API-specific (custom) Operation object which carries the same
175
+ # // meaning as google.longrunning.Operation.name.
176
+ # NAME = 1;
177
+ #
178
+ # // A field in an API-specific (custom) Operation object which carries the same
179
+ # // meaning as google.longrunning.Operation.done. If the annotated field is of
180
+ # // an enum type, `annotated_field_name == EnumType.DONE` semantics should be
181
+ # // equivalent to `Operation.done == true`. If the annotated field is of type
182
+ # // boolean, then it should follow the same semantics as Operation.done.
183
+ # // Otherwise, a non-empty value should be treated as `Operation.done == true`.
184
+ # STATUS = 2;
185
+ #
186
+ # // A field in an API-specific (custom) Operation object which carries the same
187
+ # // meaning as google.longrunning.Operation.error.code.
188
+ # ERROR_CODE = 3;
189
+ #
190
+ # // A field in an API-specific (custom) Operation object which carries the same
191
+ # // meaning as google.longrunning.Operation.error.message.
192
+ # ERROR_MESSAGE = 4;
193
+ # }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-common
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.2.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: 2022-06-23 00:00:00.000000000 Z
11
+ date: 2023-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '3.14'
19
+ version: '3.18'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '3.14'
26
+ version: '3.18'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: googleapis-common-protos-types
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.2'
33
+ version: '1.7'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.2'
40
+ version: '1.7'
41
41
  description: Common protocol buffer types used by Google Cloud APIs
42
42
  email:
43
43
  - googleapis-packages@google.com
@@ -62,14 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
62
62
  requirements:
63
63
  - - ">="
64
64
  - !ruby/object:Gem::Version
65
- version: '2.5'
65
+ version: '2.6'
66
66
  required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.3.14
72
+ rubygems_version: 3.4.2
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Common protocol buffer types used in Google Cloud APIs