Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Support REST transport #20626

Merged
merged 4 commits into from
Mar 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 6 additions & 0 deletions google-cloud-datastream-v1alpha1/.owlbot-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,14 @@
"lib/google/cloud/datastream/v1alpha1/datastream/credentials.rb",
"lib/google/cloud/datastream/v1alpha1/datastream/operations.rb",
"lib/google/cloud/datastream/v1alpha1/datastream/paths.rb",
"lib/google/cloud/datastream/v1alpha1/datastream/rest.rb",
"lib/google/cloud/datastream/v1alpha1/datastream/rest/client.rb",
"lib/google/cloud/datastream/v1alpha1/datastream/rest/operations.rb",
"lib/google/cloud/datastream/v1alpha1/datastream/rest/service_stub.rb",
"lib/google/cloud/datastream/v1alpha1/datastream_pb.rb",
"lib/google/cloud/datastream/v1alpha1/datastream_resources_pb.rb",
"lib/google/cloud/datastream/v1alpha1/datastream_services_pb.rb",
"lib/google/cloud/datastream/v1alpha1/rest.rb",
"lib/google/cloud/datastream/v1alpha1/version.rb",
"proto_docs/README.md",
"proto_docs/google/api/client.rb",
Expand Down Expand Up @@ -62,6 +67,7 @@
"snippets/snippet_metadata_google.cloud.datastream.v1alpha1.json",
"test/google/cloud/datastream/v1alpha1/datastream_operations_test.rb",
"test/google/cloud/datastream/v1alpha1/datastream_paths_test.rb",
"test/google/cloud/datastream/v1alpha1/datastream_rest_test.rb",
"test/google/cloud/datastream/v1alpha1/datastream_test.rb",
"test/helper.rb"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ module Datastream
# require "google/cloud/datastream/v1alpha1"
# client = ::Google::Cloud::Datastream::V1alpha1::Datastream::Client.new
#
# @example Load this package, including all its services, and instantiate a REST client
#
# require "google/cloud/datastream/v1alpha1"
# client = ::Google::Cloud::Datastream::V1alpha1::Datastream::Rest::Client.new
#
module V1alpha1
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
require "google/cloud/datastream/v1alpha1/datastream/paths"
require "google/cloud/datastream/v1alpha1/datastream/operations"
require "google/cloud/datastream/v1alpha1/datastream/client"
require "google/cloud/datastream/v1alpha1/datastream/rest"

module Google
module Cloud
Expand All @@ -39,6 +40,11 @@ module V1alpha1
# require "google/cloud/datastream/v1alpha1/datastream"
# client = ::Google::Cloud::Datastream::V1alpha1::Datastream::Client.new
#
# @example Load this service and instantiate a REST client
#
# require "google/cloud/datastream/v1alpha1/datastream/rest"
# client = ::Google::Cloud::Datastream::V1alpha1::Datastream::Rest::Client.new
#
module Datastream
end
end
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# frozen_string_literal: true

# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Auto-generated by gapic-generator-ruby. DO NOT EDIT!

require "gapic/rest"
require "gapic/config"
require "gapic/config/method"

require "google/cloud/datastream/v1alpha1/version"

require "google/cloud/datastream/v1alpha1/datastream/credentials"
require "google/cloud/datastream/v1alpha1/datastream/paths"
require "google/cloud/datastream/v1alpha1/datastream/rest/operations"
require "google/cloud/datastream/v1alpha1/datastream/rest/client"

module Google
module Cloud
module Datastream
module V1alpha1
##
# Datastream service
#
# To load this service and instantiate a REST client:
#
# require "google/cloud/datastream/v1alpha1/datastream/rest"
# client = ::Google::Cloud::Datastream::V1alpha1::Datastream::Rest::Client.new
#
module Datastream
# Client for the REST transport
module Rest
end
end
end
end
end
end

helper_path = ::File.join __dir__, "rest", "helpers.rb"
require "google/cloud/datastream/v1alpha1/datastream/rest/helpers" if ::File.file? helper_path
Loading