googleapis-common-protos-types 1.0.5 → 1.0.6

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: ff8c59863e591dca48886c42d95f3a3b7c13a5f61245c4c788c168d074a1be66
4
- data.tar.gz: 0c150821002e7394e41673e4dd79059b50b5be1b5170443e006bd224f3cca9af
3
+ metadata.gz: fa872e965c2403838b63d3f65084f1ef5392aed6efd7a3efe75b000ca802ca65
4
+ data.tar.gz: b80bd36e396d6dda424b76d67ab34573f9992eaaad22f8060a6df2c43438da1d
5
5
  SHA512:
6
- metadata.gz: 947891bf3c0079156ec94db1ceab082b95981659220b261dd47723d021d28c952fd107faf1b384761f873d744c37515eb8e9db7361c877a7f302c729c9836c74
7
- data.tar.gz: bd601cab4e64bdf52a1e7fc4292f23e023dec018a84ff4bc965472f9e26f8a08bd629f9bff4d1c8f81b53a65093ffbd4325322a0366999fd8f32a0091b55a6d3
6
+ metadata.gz: f100e2325f8ba36cc4ed0cefb8808527fbd303b9d9d13a8c64f44560662f2bf4cb301b895a9fc2d24365f5a2b5c1ce311cb0e1fe0de414f67de7fa17aa6c3f80
7
+ data.tar.gz: 07b1eb845c21fcd8056754bc3f59b06e785e21a5b376250e6bc84bcb78cf6677f2909d7a6273c4f0f60518d8ae17e134f5d48c64b63874906a9460c3e7823c7c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Release History
2
2
 
3
+ ### 1.0.6 / 2021-02-01
4
+
5
+ * Add Google::Type::Interval type.
6
+ * Add Google::Type::LocalizedText type.
7
+ * Add Google::Type::PhoneNumber and Google::Type::PhoneNumber::ShortCode types.
8
+ * Add "service_root_url" field to Google::Api::Documentation.
9
+ * Add UNORDERED_LIST value to Google::Api::FieldBehavior.
10
+ * Add UNIMPLEMENTED and PRELAUNCH values to Google::Api::LaunchStage.
11
+ * Add "monitored_resource_types" field to Google::Api::MetricDescriptor.
12
+ * Add Google::Api::ResourceDescriptor::Style type and add "style" field to Google::Api::ResourceDescriptor.
13
+ * Moved HttpRequest and LogSeverity types from Google::Logging::Type to Google::Cloud::Logging::Type, and created aliases for backward compatibility.
14
+ * Remove internal "features" field from Google::Api::Endpoint.
15
+ * Require protobuf 3.14.
16
+
3
17
  ### 1.0.5 / 2020-04-08
4
18
 
5
19
  * Add JWT location support in Google::Api::AuthProvider.
@@ -9,7 +23,7 @@
9
23
  * Remove obsolete "experimental" field from Google::Api::Service type.
10
24
  * Add Google::Rpc::ErrorInfo type.
11
25
  * Add Google::Type::DateTime, Google::Type::Month, and Google::Type::TimeZone types.
12
- * Require protobuf 3.11 and grpc 1.27.
26
+ * Require protobuf 3.11.
13
27
 
14
28
  ### 1.0.4 / 2019-04-03
15
29
 
data/Rakefile CHANGED
@@ -16,6 +16,17 @@
16
16
 
17
17
  require 'bundler/gem_tasks'
18
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
+
19
30
  desc "Compile the necessary protobuf files."
20
31
  task :compile_protos do
21
32
  Rake::Task[:clean_protos].invoke
@@ -38,6 +49,17 @@ task :compile_protos do
38
49
 
39
50
  puts full_command
40
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
41
63
  end
42
64
 
43
65
  desc "Remove the compiled protos."
@@ -47,8 +69,9 @@ end
47
69
 
48
70
  desc "Run the CI build"
49
71
  task :ci do
50
- puts "\nCompiling Protos\n"
72
+ puts "\nCompiling Protos"
51
73
  Rake::Task[:compile_protos].invoke
74
+ Rake::Task[:test_loading].invoke
52
75
  end
53
76
 
54
77
  Rake::Task[:build].enhance [:compile_protos]
@@ -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.5"
19
+ spec.version = "1.0.6"
20
20
  spec.authors = ["Google Inc"]
21
21
  spec.email = ["googleapis-packages@google.com"]
22
22
  spec.licenses = ["Apache-2.0"]
@@ -35,7 +35,7 @@ Gem::Specification.new do |spec|
35
35
  spec.files += Dir.glob "lib/**/*_pb.rb"
36
36
  spec.require_paths = ["lib"]
37
37
 
38
- spec.add_dependency "google-protobuf", "~> 3.11"
38
+ spec.add_dependency "google-protobuf", "~> 3.14"
39
39
 
40
40
  spec.add_development_dependency "bundler", "~> 2.1"
41
41
  spec.add_development_dependency "grpc-tools", "~> 1.27"
@@ -10,6 +10,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
10
10
  repeated :pages, :message, 5, "google.api.Page"
11
11
  repeated :rules, :message, 3, "google.api.DocumentationRule"
12
12
  optional :documentation_root_url, :string, 4
13
+ optional :service_root_url, :string, 6
13
14
  optional :overview, :string, 2
14
15
  end
15
16
  add_message "google.api.DocumentationRule" do
@@ -8,7 +8,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
8
8
  add_message "google.api.Endpoint" do
9
9
  optional :name, :string, 1
10
10
  repeated :aliases, :string, 2
11
- repeated :features, :string, 4
12
11
  optional :target, :string, 101
13
12
  optional :allow_cors, :bool, 5
14
13
  end
@@ -12,6 +12,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
12
12
  value :OUTPUT_ONLY, 3
13
13
  value :INPUT_ONLY, 4
14
14
  value :IMMUTABLE, 5
15
+ value :UNORDERED_LIST, 6
15
16
  end
16
17
  end
17
18
  end
@@ -7,6 +7,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
7
7
  add_file("google/api/launch_stage.proto", :syntax => :proto3) do
8
8
  add_enum "google.api.LaunchStage" do
9
9
  value :LAUNCH_STAGE_UNSPECIFIED, 0
10
+ value :UNIMPLEMENTED, 6
11
+ value :PRELAUNCH, 7
10
12
  value :EARLY_ACCESS, 1
11
13
  value :ALPHA, 2
12
14
  value :BETA, 3
@@ -19,6 +19,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
19
19
  optional :display_name, :string, 7
20
20
  optional :metadata, :message, 10, "google.api.MetricDescriptor.MetricDescriptorMetadata"
21
21
  optional :launch_stage, :enum, 12, "google.api.LaunchStage"
22
+ repeated :monitored_resource_types, :string, 13
22
23
  end
23
24
  add_message "google.api.MetricDescriptor.MetricDescriptorMetadata" do
24
25
  optional :launch_stage, :enum, 1, "google.api.LaunchStage"
@@ -12,12 +12,17 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
12
12
  optional :history, :enum, 4, "google.api.ResourceDescriptor.History"
13
13
  optional :plural, :string, 5
14
14
  optional :singular, :string, 6
15
+ repeated :style, :enum, 10, "google.api.ResourceDescriptor.Style"
15
16
  end
16
17
  add_enum "google.api.ResourceDescriptor.History" do
17
18
  value :HISTORY_UNSPECIFIED, 0
18
19
  value :ORIGINALLY_SINGLE_PATTERN, 1
19
20
  value :FUTURE_MULTI_PATTERN, 2
20
21
  end
22
+ add_enum "google.api.ResourceDescriptor.Style" do
23
+ value :STYLE_UNSPECIFIED, 0
24
+ value :DECLARATIVE_FRIENDLY, 1
25
+ end
21
26
  add_message "google.api.ResourceReference" do
22
27
  optional :type, :string, 1
23
28
  optional :child_type, :string, 2
@@ -29,6 +34,7 @@ module Google
29
34
  module Api
30
35
  ResourceDescriptor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.ResourceDescriptor").msgclass
31
36
  ResourceDescriptor::History = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.ResourceDescriptor.History").enummodule
37
+ ResourceDescriptor::Style = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.ResourceDescriptor.Style").enummodule
32
38
  ResourceReference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.ResourceReference").msgclass
33
39
  end
34
40
  end
@@ -27,10 +27,20 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
27
27
  end
28
28
  end
29
29
 
30
+ module Google
31
+ module Cloud
32
+ module Logging
33
+ module Type
34
+ HttpRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.type.HttpRequest").msgclass
35
+ end
36
+ end
37
+ end
38
+ end
39
+
30
40
  module Google
31
41
  module Logging
32
42
  module Type
33
- HttpRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.type.HttpRequest").msgclass
43
+ HttpRequest = ::Google::Cloud::Logging::Type::HttpRequest
34
44
  end
35
45
  end
36
46
  end
@@ -20,10 +20,20 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
20
20
  end
21
21
  end
22
22
 
23
+ module Google
24
+ module Cloud
25
+ module Logging
26
+ module Type
27
+ LogSeverity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.type.LogSeverity").enummodule
28
+ end
29
+ end
30
+ end
31
+ end
32
+
23
33
  module Google
24
34
  module Logging
25
35
  module Type
26
- LogSeverity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.type.LogSeverity").enummodule
36
+ LogSeverity = ::Google::Cloud::Logging::Type::LogSeverity
27
37
  end
28
38
  end
29
39
  end
@@ -0,0 +1,20 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/type/interval.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/protobuf/timestamp_pb'
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_file("google/type/interval.proto", :syntax => :proto3) do
9
+ add_message "google.type.Interval" do
10
+ optional :start_time, :message, 1, "google.protobuf.Timestamp"
11
+ optional :end_time, :message, 2, "google.protobuf.Timestamp"
12
+ end
13
+ end
14
+ end
15
+
16
+ module Google
17
+ module Type
18
+ Interval = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.type.Interval").msgclass
19
+ end
20
+ end
@@ -0,0 +1,19 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/type/localized_text.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_file("google/type/localized_text.proto", :syntax => :proto3) do
8
+ add_message "google.type.LocalizedText" do
9
+ optional :text, :string, 1
10
+ optional :language_code, :string, 2
11
+ end
12
+ end
13
+ end
14
+
15
+ module Google
16
+ module Type
17
+ LocalizedText = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.type.LocalizedText").msgclass
18
+ end
19
+ end
@@ -0,0 +1,27 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/type/phone_number.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_file("google/type/phone_number.proto", :syntax => :proto3) do
8
+ add_message "google.type.PhoneNumber" do
9
+ optional :extension, :string, 3
10
+ oneof :kind do
11
+ optional :e164_number, :string, 1
12
+ optional :short_code, :message, 2, "google.type.PhoneNumber.ShortCode"
13
+ end
14
+ end
15
+ add_message "google.type.PhoneNumber.ShortCode" do
16
+ optional :region_code, :string, 1
17
+ optional :number, :string, 2
18
+ end
19
+ end
20
+ end
21
+
22
+ module Google
23
+ module Type
24
+ PhoneNumber = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.type.PhoneNumber").msgclass
25
+ PhoneNumber::ShortCode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.type.PhoneNumber.ShortCode").msgclass
26
+ end
27
+ 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.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google Inc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-08 00:00:00.000000000 Z
11
+ date: 2021-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '3.11'
19
+ version: '3.14'
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.11'
26
+ version: '3.14'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -120,9 +120,12 @@ files:
120
120
  - lib/google/type/dayofweek_pb.rb
121
121
  - lib/google/type/expr_pb.rb
122
122
  - lib/google/type/fraction_pb.rb
123
+ - lib/google/type/interval_pb.rb
123
124
  - lib/google/type/latlng_pb.rb
125
+ - lib/google/type/localized_text_pb.rb
124
126
  - lib/google/type/money_pb.rb
125
127
  - lib/google/type/month_pb.rb
128
+ - lib/google/type/phone_number_pb.rb
126
129
  - lib/google/type/postal_address_pb.rb
127
130
  - lib/google/type/quaternion_pb.rb
128
131
  - lib/google/type/timeofday_pb.rb
@@ -145,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
148
  - !ruby/object:Gem::Version
146
149
  version: '0'
147
150
  requirements: []
148
- rubygems_version: 3.1.2
151
+ rubygems_version: 3.1.4
149
152
  signing_key:
150
153
  specification_version: 4
151
154
  summary: Common protobuf types used in Google APIs