lib/google/cloud/tasks/v2/target_pb.rb in google-cloud-tasks-1.2.0 vs lib/google/cloud/tasks/v2/target_pb.rb in google-cloud-tasks-1.3.0

- old
+ new

@@ -2,12 +2,23 @@ # source: google/cloud/tasks/v2/target.proto require 'google/protobuf' +require 'google/api/field_behavior_pb' require 'google/api/annotations_pb' Google::Protobuf::DescriptorPool.generated_pool.build do + add_message "google.cloud.tasks.v2.HttpRequest" do + optional :url, :string, 1 + optional :http_method, :enum, 2, "google.cloud.tasks.v2.HttpMethod" + map :headers, :string, :string, 3 + optional :body, :bytes, 4 + oneof :authorization_header do + optional :oauth_token, :message, 5, "google.cloud.tasks.v2.OAuthToken" + optional :oidc_token, :message, 6, "google.cloud.tasks.v2.OidcToken" + end + end add_message "google.cloud.tasks.v2.AppEngineHttpRequest" do optional :http_method, :enum, 1, "google.cloud.tasks.v2.HttpMethod" optional :app_engine_routing, :message, 2, "google.cloud.tasks.v2.AppEngineRouting" optional :relative_uri, :string, 3 map :headers, :string, :string, 4 @@ -17,10 +28,18 @@ optional :service, :string, 1 optional :version, :string, 2 optional :instance, :string, 3 optional :host, :string, 4 end + add_message "google.cloud.tasks.v2.OAuthToken" do + optional :service_account_email, :string, 1 + optional :scope, :string, 2 + end + add_message "google.cloud.tasks.v2.OidcToken" do + optional :service_account_email, :string, 1 + optional :audience, :string, 2 + end add_enum "google.cloud.tasks.v2.HttpMethod" do value :HTTP_METHOD_UNSPECIFIED, 0 value :POST, 1 value :GET, 2 value :HEAD, 3 @@ -33,11 +52,14 @@ module Google module Cloud module Tasks module V2 + HttpRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2.HttpRequest").msgclass AppEngineHttpRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2.AppEngineHttpRequest").msgclass AppEngineRouting = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2.AppEngineRouting").msgclass + OAuthToken = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2.OAuthToken").msgclass + OidcToken = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2.OidcToken").msgclass HttpMethod = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.tasks.v2.HttpMethod").enummodule end end end end