google-cloud-common 1.1.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/lib/google/cloud/common/operation_metadata_pb.rb +81 -10
- data/lib/google/cloud/common/version.rb +1 -1
- data/lib/google/cloud/extended_operations_pb.rb +177 -8
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98f53459b683c34089c3a3484c84a7adaf180d1983a8860cb1a3990c7da25cb6
|
4
|
+
data.tar.gz: 99bfc0db937d6554a7548a34d92226d5227a115da3fe3ddb53f6d065b4dba487
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88236363465e52063b345b2cc4ee1f3d78e4b60c11ce92a6f5202b843064ca82b26e662e1d052a50f0800d07488cd8ee8296fa8b540487f58a05d150de5b494e
|
7
|
+
data.tar.gz: 5f3cd8172ae761f987c4b29ea4d1d57f44c8d75593af55361f3d9024695747aaaa84a00519e4fa3fb87c366474bcaf457c810b860090602e681c3231f9289917
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
### 1.3.0 (2023-11-06)
|
4
|
+
|
5
|
+
#### Features
|
6
|
+
|
7
|
+
* Automated update of google-cloud-common ([#199](https://github.com/googleapis/common-protos-ruby/issues/199))
|
8
|
+
|
9
|
+
### 1.2.0 (2023-08-07)
|
10
|
+
|
11
|
+
#### Features
|
12
|
+
|
13
|
+
* Updated generated protobuf output to use binary descriptors for better future compatibility ([#171](https://github.com/googleapis/common-protos-ruby/issues/171))
|
14
|
+
|
3
15
|
### 1.1.0 (2022-08-17)
|
4
16
|
|
5
17
|
#### Features
|
@@ -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
|
|
@@ -6,18 +7,32 @@ require 'google/protobuf'
|
|
6
7
|
require 'google/api/field_behavior_pb'
|
7
8
|
require 'google/protobuf/timestamp_pb'
|
8
9
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
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\"\x80\x02\n\x11OperationMetadata\x12\x35\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12\x32\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12\x14\n\x06target\x18\x03 \x01(\tB\x04\xe2\x41\x01\x03\x12\x12\n\x04verb\x18\x04 \x01(\tB\x04\xe2\x41\x01\x03\x12\x1b\n\rstatus_detail\x18\x05 \x01(\tB\x04\xe2\x41\x01\x03\x12\x1e\n\x10\x63\x61ncel_requested\x18\x06 \x01(\x08\x42\x04\xe2\x41\x01\x03\x12\x19\n\x0b\x61pi_version\x18\x07 \x01(\tB\x04\xe2\x41\x01\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}"
|
19
32
|
end
|
20
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."
|
21
36
|
end
|
22
37
|
|
23
38
|
module Google
|
@@ -27,3 +42,59 @@ module Google
|
|
27
42
|
end
|
28
43
|
end
|
29
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
|
+
# }
|
@@ -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/extended_operations.proto
|
3
4
|
|
@@ -5,16 +6,31 @@ require 'google/protobuf'
|
|
5
6
|
|
6
7
|
require 'google/protobuf/descriptor_pb'
|
7
8
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
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}"
|
16
30
|
end
|
17
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."
|
18
34
|
end
|
19
35
|
|
20
36
|
module Google
|
@@ -22,3 +38,156 @@ module Google
|
|
22
38
|
OperationResponseMapping = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.OperationResponseMapping").enummodule
|
23
39
|
end
|
24
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.
|
4
|
+
version: 1.3.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:
|
11
|
+
date: 2023-11-06 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.
|
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.
|
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.
|
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.
|
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
|
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
requirements: []
|
72
|
-
rubygems_version: 3.
|
72
|
+
rubygems_version: 3.4.19
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Common protocol buffer types used in Google Cloud APIs
|