googleapis-common-protos-types 1.0.6 → 1.1.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: fa872e965c2403838b63d3f65084f1ef5392aed6efd7a3efe75b000ca802ca65
4
- data.tar.gz: b80bd36e396d6dda424b76d67ab34573f9992eaaad22f8060a6df2c43438da1d
3
+ metadata.gz: 687aa867cd2de8009e6b13cce00566b218e2196e8781f0f6a8ff35cc4c7c50ca
4
+ data.tar.gz: 708ab35ca94aefe30181aed7dfe3ae6dd3670f4e8e032c1cdc6671cf2eda4a1d
5
5
  SHA512:
6
- metadata.gz: f100e2325f8ba36cc4ed0cefb8808527fbd303b9d9d13a8c64f44560662f2bf4cb301b895a9fc2d24365f5a2b5c1ce311cb0e1fe0de414f67de7fa17aa6c3f80
7
- data.tar.gz: 07b1eb845c21fcd8056754bc3f59b06e785e21a5b376250e6bc84bcb78cf6677f2909d7a6273c4f0f60518d8ae17e134f5d48c64b63874906a9460c3e7823c7c
6
+ metadata.gz: 3e967f57b9c3502b9a7e22aa8a2a122601749c3afded23243ce7bb929addef34ddd3bbbd0ebd2371b7fbec80a705b034ffea477215d6b7ebcd6fcd77038b8124
7
+ data.tar.gz: 9c0fa0bad8c31811a0e469a978708371743e5a53cb80f92602c1031f42d34830601961bcffa923a82e31d8a3293ea77e244fa954d7be0ac0ea5c24131d7dc24e
@@ -0,0 +1,5 @@
1
+ {
2
+ "distribution-name": "googleapis-common-protos-types",
3
+ "language": "ruby",
4
+ "library_type": "OTHER"
5
+ }
data/.toys.rb ADDED
@@ -0,0 +1,84 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 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
+ PROTO_GLOBS = [
18
+ "../googleapis/google/api/*.proto",
19
+ "../googleapis/google/logging/type/*.proto",
20
+ "../googleapis/google/longrunning/*.proto",
21
+ "../googleapis/google/rpc/*.proto",
22
+ "../googleapis/google/type/*.proto",
23
+ ]
24
+
25
+ tool "compile" do
26
+ flag :clean, "--[no-]clean", default: true
27
+
28
+ include :fileutils
29
+ include :exec, e: true
30
+ include :gems
31
+
32
+ def run
33
+ cd context_directory
34
+ gem "grpc-tools", "~> 1.37"
35
+ if clean
36
+ rm_rf "lib"
37
+ mkdir "lib"
38
+ end
39
+ cmd = [
40
+ "grpc_tools_ruby_protoc",
41
+ "--ruby_out=lib",
42
+ "-I", "../googleapis"
43
+ ] + PROTO_GLOBS.flat_map { |glob| Dir.glob glob }
44
+ exec cmd
45
+ postprocess_protos
46
+ end
47
+
48
+ # Perform post-compile steps on a couple of protos to install backward
49
+ # compatibility aliases.
50
+ def postprocess_protos
51
+ File.open "lib/google/logging/type/http_request_pb.rb", "a" do |file|
52
+ file.puts "\nmodule Google\n module Logging\n module Type\n HttpRequest = ::Google::Cloud::Logging::Type::HttpRequest\n end\n end\nend"
53
+ end
54
+ File.open "lib/google/logging/type/log_severity_pb.rb", "a" do |file|
55
+ file.puts "\nmodule Google\n module Logging\n module Type\n LogSeverity = ::Google::Cloud::Logging::Type::LogSeverity\n end\n end\nend"
56
+ end
57
+ end
58
+ end
59
+
60
+ tool "test" do
61
+ include :fileutils
62
+ include :exec, e: true
63
+ include :bundler
64
+
65
+ def run
66
+ cd context_directory
67
+ exec_ruby [], in: :controller do |controller|
68
+ controller.in.puts "puts 'Loading proto files'"
69
+ controller.in.puts "$LOAD_PATH.unshift File.expand_path 'lib'"
70
+ cd "lib" do
71
+ Dir.glob("google/**/*_pb.rb") do |path|
72
+ controller.in.puts "puts #{path.inspect}"
73
+ controller.in.puts "require #{path.inspect}"
74
+ end
75
+ end
76
+ end
77
+ end
78
+ end
79
+
80
+ expand :clean, paths: :gitignore
81
+
82
+ expand :gem_build
83
+
84
+ expand :gem_build, name: "release", push_gem: true
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Release History
2
2
 
3
+ ### 1.1.0 / 2021-07-07
4
+
5
+ * Add Google::Api::ErrorReason
6
+ * Add Google::Api::Visibility and Google::Api::VisibilityRule
7
+ * Add Google::Type::Decimal
8
+ * Add NON_EMPTY_DEFAULT value to Google::Api::FieldBehavior.
9
+
3
10
  ### 1.0.6 / 2021-02-01
4
11
 
5
12
  * Add Google::Type::Interval type.
@@ -16,7 +16,7 @@
16
16
 
17
17
  Gem::Specification.new do |spec|
18
18
  spec.name = "googleapis-common-protos-types"
19
- spec.version = "1.0.6"
19
+ spec.version = "1.1.0"
20
20
  spec.authors = ["Google Inc"]
21
21
  spec.email = ["googleapis-packages@google.com"]
22
22
  spec.licenses = ["Apache-2.0"]
@@ -36,8 +36,4 @@ Gem::Specification.new do |spec|
36
36
  spec.require_paths = ["lib"]
37
37
 
38
38
  spec.add_dependency "google-protobuf", "~> 3.14"
39
-
40
- spec.add_development_dependency "bundler", "~> 2.1"
41
- spec.add_development_dependency "grpc-tools", "~> 1.27"
42
- spec.add_development_dependency "rake", "~> 13.0"
43
39
  end
@@ -0,0 +1,37 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/api/error_reason.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_file("google/api/error_reason.proto", :syntax => :proto3) do
8
+ add_enum "google.api.ErrorReason" do
9
+ value :ERROR_REASON_UNSPECIFIED, 0
10
+ value :SERVICE_DISABLED, 1
11
+ value :BILLING_DISABLED, 2
12
+ value :API_KEY_INVALID, 3
13
+ value :API_KEY_SERVICE_BLOCKED, 4
14
+ value :API_KEY_HTTP_REFERRER_BLOCKED, 7
15
+ value :API_KEY_IP_ADDRESS_BLOCKED, 8
16
+ value :API_KEY_ANDROID_APP_BLOCKED, 9
17
+ value :API_KEY_IOS_APP_BLOCKED, 13
18
+ value :RATE_LIMIT_EXCEEDED, 5
19
+ value :RESOURCE_QUOTA_EXCEEDED, 6
20
+ value :LOCATION_TAX_POLICY_VIOLATED, 10
21
+ value :USER_PROJECT_DENIED, 11
22
+ value :CONSUMER_SUSPENDED, 12
23
+ value :CONSUMER_INVALID, 14
24
+ value :SECURITY_POLICY_VIOLATED, 15
25
+ value :ACCESS_TOKEN_EXPIRED, 16
26
+ value :ACCESS_TOKEN_SCOPE_INSUFFICIENT, 17
27
+ value :ACCOUNT_STATE_INVALID, 18
28
+ value :ACCESS_TOKEN_TYPE_UNSUPPORTED, 19
29
+ end
30
+ end
31
+ end
32
+
33
+ module Google
34
+ module Api
35
+ ErrorReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.ErrorReason").enummodule
36
+ end
37
+ end
@@ -13,6 +13,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
13
13
  value :INPUT_ONLY, 4
14
14
  value :IMMUTABLE, 5
15
15
  value :UNORDERED_LIST, 6
16
+ value :NON_EMPTY_DEFAULT, 7
16
17
  end
17
18
  end
18
19
  end
@@ -29,11 +29,10 @@ require 'google/protobuf/wrappers_pb'
29
29
  Google::Protobuf::DescriptorPool.generated_pool.build do
30
30
  add_file("google/api/service.proto", :syntax => :proto3) do
31
31
  add_message "google.api.Service" do
32
- optional :config_version, :message, 20, "google.protobuf.UInt32Value"
33
32
  optional :name, :string, 1
34
- optional :id, :string, 33
35
33
  optional :title, :string, 2
36
34
  optional :producer_project_id, :string, 22
35
+ optional :id, :string, 33
37
36
  repeated :apis, :message, 3, "google.protobuf.Api"
38
37
  repeated :types, :message, 4, "google.protobuf.Type"
39
38
  repeated :enums, :message, 5, "google.protobuf.Enum"
@@ -54,6 +53,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
54
53
  optional :monitoring, :message, 28, "google.api.Monitoring"
55
54
  optional :system_parameters, :message, 29, "google.api.SystemParameters"
56
55
  optional :source_info, :message, 37, "google.api.SourceInfo"
56
+ optional :config_version, :message, 20, "google.protobuf.UInt32Value"
57
57
  end
58
58
  end
59
59
  end
@@ -0,0 +1,23 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/api/visibility.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_file("google/api/visibility.proto", :syntax => :proto3) do
8
+ add_message "google.api.Visibility" do
9
+ repeated :rules, :message, 1, "google.api.VisibilityRule"
10
+ end
11
+ add_message "google.api.VisibilityRule" do
12
+ optional :selector, :string, 1
13
+ optional :restriction, :string, 2
14
+ end
15
+ end
16
+ end
17
+
18
+ module Google
19
+ module Api
20
+ Visibility = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Visibility").msgclass
21
+ VisibilityRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.VisibilityRule").msgclass
22
+ end
23
+ end
@@ -0,0 +1,18 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/type/decimal.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_file("google/type/decimal.proto", :syntax => :proto3) do
8
+ add_message "google.type.Decimal" do
9
+ optional :value, :string, 1
10
+ end
11
+ end
12
+ end
13
+
14
+ module Google
15
+ module Type
16
+ Decimal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.type.Decimal").msgclass
17
+ end
18
+ end
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.6
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google Inc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-01 00:00:00.000000000 Z
11
+ date: 2021-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf
@@ -24,48 +24,6 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.14'
27
- - !ruby/object:Gem::Dependency
28
- name: bundler
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '2.1'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '2.1'
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.27'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '1.27'
55
- - !ruby/object:Gem::Dependency
56
- name: rake
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: '13.0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: '13.0'
69
27
  description: Common protocol buffer types used by Google APIs
70
28
  email:
71
29
  - googleapis-packages@google.com
@@ -74,10 +32,11 @@ extensions: []
74
32
  extra_rdoc_files: []
75
33
  files:
76
34
  - ".gitignore"
35
+ - ".repo-metadata.json"
36
+ - ".toys.rb"
77
37
  - CHANGELOG.md
78
38
  - Gemfile
79
39
  - README.md
80
- - Rakefile
81
40
  - googleapis-common-protos-types.gemspec
82
41
  - lib/google/api/annotations_pb.rb
83
42
  - lib/google/api/auth_pb.rb
@@ -91,6 +50,7 @@ files:
91
50
  - lib/google/api/distribution_pb.rb
92
51
  - lib/google/api/documentation_pb.rb
93
52
  - lib/google/api/endpoint_pb.rb
53
+ - lib/google/api/error_reason_pb.rb
94
54
  - lib/google/api/field_behavior_pb.rb
95
55
  - lib/google/api/http_pb.rb
96
56
  - lib/google/api/httpbody_pb.rb
@@ -107,6 +67,7 @@ files:
107
67
  - lib/google/api/source_info_pb.rb
108
68
  - lib/google/api/system_parameter_pb.rb
109
69
  - lib/google/api/usage_pb.rb
70
+ - lib/google/api/visibility_pb.rb
110
71
  - lib/google/logging/type/http_request_pb.rb
111
72
  - lib/google/logging/type/log_severity_pb.rb
112
73
  - lib/google/longrunning/operations_pb.rb
@@ -118,6 +79,7 @@ files:
118
79
  - lib/google/type/date_pb.rb
119
80
  - lib/google/type/datetime_pb.rb
120
81
  - lib/google/type/dayofweek_pb.rb
82
+ - lib/google/type/decimal_pb.rb
121
83
  - lib/google/type/expr_pb.rb
122
84
  - lib/google/type/fraction_pb.rb
123
85
  - lib/google/type/interval_pb.rb
@@ -148,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
148
110
  - !ruby/object:Gem::Version
149
111
  version: '0'
150
112
  requirements: []
151
- rubygems_version: 3.1.4
113
+ rubygems_version: 3.1.6
152
114
  signing_key:
153
115
  specification_version: 4
154
116
  summary: Common protobuf types used in Google APIs
data/Rakefile DELETED
@@ -1,80 +0,0 @@
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
- # Perform post-compile steps on a couple of protos to install backward
20
- # compatibility aliases.
21
- def postprocess_protos
22
- File.open "#{__dir__}/lib/google/logging/type/http_request_pb.rb", "a" do |file|
23
- file.puts "\nmodule Google\n module Logging\n module Type\n HttpRequest = ::Google::Cloud::Logging::Type::HttpRequest\n end\n end\nend"
24
- end
25
- File.open "#{__dir__}/lib/google/logging/type/log_severity_pb.rb", "a" do |file|
26
- file.puts "\nmodule Google\n module Logging\n module Type\n LogSeverity = ::Google::Cloud::Logging::Type::LogSeverity\n end\n end\nend"
27
- end
28
- end
29
-
30
- desc "Compile the necessary protobuf files."
31
- task :compile_protos do
32
- Rake::Task[:clean_protos].invoke
33
- FileUtils.mkdir 'lib'
34
-
35
- protos = [
36
- "../googleapis/google/api/*.proto",
37
- "../googleapis/google/logging/type/*.proto",
38
- "../googleapis/google/longrunning/*.proto",
39
- "../googleapis/google/rpc/*.proto",
40
- "../googleapis/google/type/*.proto",
41
- ]
42
-
43
- command = []
44
- command << "grpc_tools_ruby_protoc"
45
- command << "--ruby_out=lib"
46
- command << "-I ../googleapis"
47
- command += protos
48
- full_command = command.join " "
49
-
50
- puts full_command
51
- system full_command
52
-
53
- postprocess_protos
54
- end
55
-
56
- desc "Test loading all proto files"
57
- task :test_loading do
58
- puts "\nLoading proto files"
59
- Dir.glob("lib/google/**/*_pb.rb") do |path|
60
- puts path
61
- require_relative path
62
- end
63
- end
64
-
65
- desc "Remove the compiled protos."
66
- task :clean_protos do
67
- FileUtils.rm_rf "lib"
68
- end
69
-
70
- desc "Run the CI build"
71
- task :ci do
72
- puts "\nCompiling Protos"
73
- Rake::Task[:compile_protos].invoke
74
- Rake::Task[:test_loading].invoke
75
- end
76
-
77
- Rake::Task[:build].enhance [:compile_protos]
78
- Rake::Task[:clean].enhance [:clean_protos]
79
-
80
- task default: :ci