googleapis-common-protos-types 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +11 -0
- data/Gemfile +6 -0
- data/README.md +15 -0
- data/Rakefile +57 -0
- data/googleapis-common-protos-types.gemspec +43 -0
- data/lib/google/api/backend_pb.rb +11 -0
- data/lib/google/api/context_pb.rb +2 -0
- data/lib/google/api/distribution_pb.rb +7 -1
- data/lib/google/api/http_pb.rb +1 -0
- data/lib/google/api/metric_pb.rb +9 -0
- metadata +29 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35e9f015ba71e64a11586322e5a6f992a3818e7c
|
4
|
+
data.tar.gz: 2e16f9b26467e6eea551774a311690ce856a6dc9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5850227c9f3438f624c4124d27da11a62449e2f0a6d7793e3d4d2fb3600e5b1c5a149ea973b570a05cdc4bb62e0c431c6e993279c0a2460e67bc5fa570e062ec
|
7
|
+
data.tar.gz: fcdb419545a1bc86f8e106d0480a88b2bf527138669e32349b240eb853f4f9b4989585de5e71ab330580ccb4562fdfdca7c690254e10aa9c003a3e0852e8966b
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/README.md
ADDED
data/Rakefile
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2018 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
require 'bundler/gem_tasks'
|
18
|
+
|
19
|
+
desc "Compile the necessary protobuf files."
|
20
|
+
task :compile_protos do
|
21
|
+
Rake::Task[:clean_protos].invoke
|
22
|
+
FileUtils.mkdir 'lib'
|
23
|
+
|
24
|
+
protos = [
|
25
|
+
"../googleapis/google/api/*.proto",
|
26
|
+
"../googleapis/google/logging/type/*.proto",
|
27
|
+
"../googleapis/google/longrunning/*.proto",
|
28
|
+
"../googleapis/google/rpc/*.proto",
|
29
|
+
"../googleapis/google/type/*.proto",
|
30
|
+
]
|
31
|
+
|
32
|
+
command = []
|
33
|
+
command << "grpc_tools_ruby_protoc"
|
34
|
+
command << "--ruby_out=lib"
|
35
|
+
command << "-I ../googleapis"
|
36
|
+
command += protos
|
37
|
+
full_command = command.join " "
|
38
|
+
|
39
|
+
puts full_command
|
40
|
+
system full_command
|
41
|
+
end
|
42
|
+
|
43
|
+
desc "Remove the compiled protos."
|
44
|
+
task :clean_protos do
|
45
|
+
FileUtils.rm_rf "lib"
|
46
|
+
end
|
47
|
+
|
48
|
+
desc "Run the CI build"
|
49
|
+
task :ci do
|
50
|
+
puts "\nCompiling Protos\n"
|
51
|
+
Rake::Task[:compile_protos].invoke
|
52
|
+
end
|
53
|
+
|
54
|
+
Rake::Task[:build].enhance [:compile_protos]
|
55
|
+
Rake::Task[:clean].enhance [:clean_protos]
|
56
|
+
|
57
|
+
task default: :ci
|
@@ -0,0 +1,43 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2018 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
Gem::Specification.new do |spec|
|
18
|
+
spec.name = "googleapis-common-protos-types"
|
19
|
+
spec.version = "1.0.3"
|
20
|
+
spec.authors = ["Google Inc"]
|
21
|
+
spec.email = ["googleapis-packages@google.com"]
|
22
|
+
spec.licenses = ["Apache-2.0"]
|
23
|
+
|
24
|
+
spec.description = "Common protocol buffer types used by Google APIs"
|
25
|
+
spec.summary = "Common protobuf types used in Google APIs"
|
26
|
+
spec.homepage = "https://github.com/googleapis/googleapis"
|
27
|
+
|
28
|
+
# Specify which files should be added to the gem when it is released. The `git
|
29
|
+
# ls-files -z` loads the files in the RubyGem that have been added into git.
|
30
|
+
spec.files = Dir.chdir File.expand_path(__dir__) do
|
31
|
+
`git ls-files -z`.split("\x0").reject do |f|
|
32
|
+
f.match %r{^(test|spec|features)/}
|
33
|
+
end
|
34
|
+
end
|
35
|
+
spec.files += Dir.glob "lib/**/*_pb.rb"
|
36
|
+
spec.require_paths = ["lib"]
|
37
|
+
|
38
|
+
spec.add_dependency "google-protobuf", "~> 3.0"
|
39
|
+
|
40
|
+
spec.add_development_dependency "bundler", "~> 1.15"
|
41
|
+
spec.add_development_dependency "grpc-tools", "~> 1.18"
|
42
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
43
|
+
end
|
@@ -12,6 +12,16 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
12
12
|
optional :address, :string, 2
|
13
13
|
optional :deadline, :double, 3
|
14
14
|
optional :min_deadline, :double, 4
|
15
|
+
optional :operation_deadline, :double, 5
|
16
|
+
optional :path_translation, :enum, 6, "google.api.BackendRule.PathTranslation"
|
17
|
+
oneof :authentication do
|
18
|
+
optional :jwt_audience, :string, 7
|
19
|
+
end
|
20
|
+
end
|
21
|
+
add_enum "google.api.BackendRule.PathTranslation" do
|
22
|
+
value :PATH_TRANSLATION_UNSPECIFIED, 0
|
23
|
+
value :CONSTANT_ADDRESS, 1
|
24
|
+
value :APPEND_PATH_TO_ADDRESS, 2
|
15
25
|
end
|
16
26
|
end
|
17
27
|
|
@@ -19,5 +29,6 @@ module Google
|
|
19
29
|
module Api
|
20
30
|
Backend = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Backend").msgclass
|
21
31
|
BackendRule = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.BackendRule").msgclass
|
32
|
+
BackendRule::PathTranslation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.BackendRule.PathTranslation").enummodule
|
22
33
|
end
|
23
34
|
end
|
@@ -11,6 +11,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
11
11
|
optional :selector, :string, 1
|
12
12
|
repeated :requested, :string, 2
|
13
13
|
repeated :provided, :string, 3
|
14
|
+
repeated :allowed_request_extensions, :string, 4
|
15
|
+
repeated :allowed_response_extensions, :string, 5
|
14
16
|
end
|
15
17
|
end
|
16
18
|
|
@@ -3,7 +3,6 @@
|
|
3
3
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
|
-
require 'google/api/annotations_pb'
|
7
6
|
require 'google/protobuf/any_pb'
|
8
7
|
require 'google/protobuf/timestamp_pb'
|
9
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
@@ -14,6 +13,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
14
13
|
optional :range, :message, 4, "google.api.Distribution.Range"
|
15
14
|
optional :bucket_options, :message, 6, "google.api.Distribution.BucketOptions"
|
16
15
|
repeated :bucket_counts, :int64, 7
|
16
|
+
repeated :exemplars, :message, 10, "google.api.Distribution.Exemplar"
|
17
17
|
end
|
18
18
|
add_message "google.api.Distribution.Range" do
|
19
19
|
optional :min, :double, 1
|
@@ -39,6 +39,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
39
39
|
add_message "google.api.Distribution.BucketOptions.Explicit" do
|
40
40
|
repeated :bounds, :double, 1
|
41
41
|
end
|
42
|
+
add_message "google.api.Distribution.Exemplar" do
|
43
|
+
optional :value, :double, 1
|
44
|
+
optional :timestamp, :message, 2, "google.protobuf.Timestamp"
|
45
|
+
repeated :attachments, :message, 3, "google.protobuf.Any"
|
46
|
+
end
|
42
47
|
end
|
43
48
|
|
44
49
|
module Google
|
@@ -49,5 +54,6 @@ module Google
|
|
49
54
|
Distribution::BucketOptions::Linear = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Distribution.BucketOptions.Linear").msgclass
|
50
55
|
Distribution::BucketOptions::Exponential = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Distribution.BucketOptions.Exponential").msgclass
|
51
56
|
Distribution::BucketOptions::Explicit = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Distribution.BucketOptions.Explicit").msgclass
|
57
|
+
Distribution::Exemplar = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Distribution.Exemplar").msgclass
|
52
58
|
end
|
53
59
|
end
|
data/lib/google/api/http_pb.rb
CHANGED
@@ -11,6 +11,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
11
11
|
add_message "google.api.HttpRule" do
|
12
12
|
optional :selector, :string, 1
|
13
13
|
optional :body, :string, 7
|
14
|
+
optional :response_body, :string, 12
|
14
15
|
repeated :additional_bindings, :message, 11, "google.api.HttpRule"
|
15
16
|
oneof :pattern do
|
16
17
|
optional :get, :string, 2
|
data/lib/google/api/metric_pb.rb
CHANGED
@@ -4,6 +4,8 @@
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
6
|
require 'google/api/label_pb'
|
7
|
+
require 'google/api/launch_stage_pb'
|
8
|
+
require 'google/protobuf/duration_pb'
|
7
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
10
|
add_message "google.api.MetricDescriptor" do
|
9
11
|
optional :name, :string, 1
|
@@ -14,6 +16,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
14
16
|
optional :unit, :string, 5
|
15
17
|
optional :description, :string, 6
|
16
18
|
optional :display_name, :string, 7
|
19
|
+
optional :metadata, :message, 10, "google.api.MetricDescriptor.MetricDescriptorMetadata"
|
20
|
+
end
|
21
|
+
add_message "google.api.MetricDescriptor.MetricDescriptorMetadata" do
|
22
|
+
optional :launch_stage, :enum, 1, "google.api.LaunchStage"
|
23
|
+
optional :sample_period, :message, 2, "google.protobuf.Duration"
|
24
|
+
optional :ingest_delay, :message, 3, "google.protobuf.Duration"
|
17
25
|
end
|
18
26
|
add_enum "google.api.MetricDescriptor.MetricKind" do
|
19
27
|
value :METRIC_KIND_UNSPECIFIED, 0
|
@@ -39,6 +47,7 @@ end
|
|
39
47
|
module Google
|
40
48
|
module Api
|
41
49
|
MetricDescriptor = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.MetricDescriptor").msgclass
|
50
|
+
MetricDescriptor::MetricDescriptorMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.MetricDescriptor.MetricDescriptorMetadata").msgclass
|
42
51
|
MetricDescriptor::MetricKind = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.MetricDescriptor.MetricKind").enummodule
|
43
52
|
MetricDescriptor::ValueType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.MetricDescriptor.ValueType").enummodule
|
44
53
|
Metric = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Metric").msgclass
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: googleapis-common-protos-types
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google Inc
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-protobuf
|
@@ -30,34 +30,54 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '1.
|
33
|
+
version: '1.15'
|
34
34
|
type: :development
|
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.15'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: grpc-tools
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.18'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.18'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: rake
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
44
58
|
requirements:
|
45
59
|
- - "~>"
|
46
60
|
- !ruby/object:Gem::Version
|
47
|
-
version: '10.
|
61
|
+
version: '10.0'
|
48
62
|
type: :development
|
49
63
|
prerelease: false
|
50
64
|
version_requirements: !ruby/object:Gem::Requirement
|
51
65
|
requirements:
|
52
66
|
- - "~>"
|
53
67
|
- !ruby/object:Gem::Version
|
54
|
-
version: '10.
|
68
|
+
version: '10.0'
|
55
69
|
description: Common protocol buffer types used by Google APIs
|
56
|
-
email:
|
70
|
+
email:
|
71
|
+
- googleapis-packages@google.com
|
57
72
|
executables: []
|
58
73
|
extensions: []
|
59
74
|
extra_rdoc_files: []
|
60
75
|
files:
|
76
|
+
- ".gitignore"
|
77
|
+
- Gemfile
|
78
|
+
- README.md
|
79
|
+
- Rakefile
|
80
|
+
- googleapis-common-protos-types.gemspec
|
61
81
|
- lib/google/api/annotations_pb.rb
|
62
82
|
- lib/google/api/auth_pb.rb
|
63
83
|
- lib/google/api/backend_pb.rb
|
@@ -72,6 +92,7 @@ files:
|
|
72
92
|
- lib/google/api/http_pb.rb
|
73
93
|
- lib/google/api/httpbody_pb.rb
|
74
94
|
- lib/google/api/label_pb.rb
|
95
|
+
- lib/google/api/launch_stage_pb.rb
|
75
96
|
- lib/google/api/log_pb.rb
|
76
97
|
- lib/google/api/logging_pb.rb
|
77
98
|
- lib/google/api/metric_pb.rb
|
@@ -107,7 +128,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
107
128
|
requirements:
|
108
129
|
- - ">="
|
109
130
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
131
|
+
version: '0'
|
111
132
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
112
133
|
requirements:
|
113
134
|
- - ">="
|