Skip to content

Commit

Permalink
feat(service_usage-1): Support for HTTP/REST transport (#23338)
Browse files Browse the repository at this point in the history
  • Loading branch information
gcf-owl-bot[bot] authored Sep 16, 2023
1 parent 4e000fe commit 6e82628
Show file tree
Hide file tree
Showing 12 changed files with 2,725 additions and 4 deletions.
6 changes: 6 additions & 0 deletions google-cloud-service_usage-v1/.owlbot-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,15 @@
"lib/google/api/serviceusage/v1/serviceusage_pb.rb",
"lib/google/api/serviceusage/v1/serviceusage_services_pb.rb",
"lib/google/cloud/service_usage/v1.rb",
"lib/google/cloud/service_usage/v1/rest.rb",
"lib/google/cloud/service_usage/v1/service_usage.rb",
"lib/google/cloud/service_usage/v1/service_usage/client.rb",
"lib/google/cloud/service_usage/v1/service_usage/credentials.rb",
"lib/google/cloud/service_usage/v1/service_usage/operations.rb",
"lib/google/cloud/service_usage/v1/service_usage/rest.rb",
"lib/google/cloud/service_usage/v1/service_usage/rest/client.rb",
"lib/google/cloud/service_usage/v1/service_usage/rest/operations.rb",
"lib/google/cloud/service_usage/v1/service_usage/rest/service_stub.rb",
"lib/google/cloud/service_usage/v1/version.rb",
"proto_docs/README.md",
"proto_docs/google/api/auth.rb",
Expand Down Expand Up @@ -54,6 +59,7 @@
"snippets/service_usage/list_services.rb",
"snippets/snippet_metadata_google.api.serviceusage.v1.json",
"test/google/cloud/service_usage/v1/service_usage_operations_test.rb",
"test/google/cloud/service_usage/v1/service_usage_rest_test.rb",
"test/google/cloud/service_usage/v1/service_usage_test.rb",
"test/helper.rb"
],
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ module ServiceUsage
# require "google/cloud/service_usage/v1"
# client = ::Google::Cloud::ServiceUsage::V1::ServiceUsage::Client.new
#
# @example Load this package, including all its services, and instantiate a REST client
#
# require "google/cloud/service_usage/v1"
# client = ::Google::Cloud::ServiceUsage::V1::ServiceUsage::Rest::Client.new
#
module V1
end
end
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# 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 "google/cloud/service_usage/v1/service_usage/rest"
require "google/cloud/service_usage/v1/version"

module Google
module Cloud
module ServiceUsage
##
# To load just the REST part of this package, including all its services, and instantiate a REST client:
#
# @example
#
# require "google/cloud/service_usage/v1/rest"
# client = ::Google::Cloud::ServiceUsage::V1::ServiceUsage::Rest::Client.new
#
module V1
end
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
require "google/cloud/service_usage/v1/service_usage/credentials"
require "google/cloud/service_usage/v1/service_usage/operations"
require "google/cloud/service_usage/v1/service_usage/client"
require "google/cloud/service_usage/v1/service_usage/rest"

module Google
module Cloud
Expand All @@ -42,6 +43,11 @@ module V1
# require "google/cloud/service_usage/v1/service_usage"
# client = ::Google::Cloud::ServiceUsage::V1::ServiceUsage::Client.new
#
# @example Load this service and instantiate a REST client
#
# require "google/cloud/service_usage/v1/service_usage/rest"
# client = ::Google::Cloud::ServiceUsage::V1::ServiceUsage::Rest::Client.new
#
module ServiceUsage
end
end
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# 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/service_usage/v1/version"

require "google/cloud/service_usage/v1/service_usage/credentials"
require "google/cloud/service_usage/v1/service_usage/rest/operations"
require "google/cloud/service_usage/v1/service_usage/rest/client"

module Google
module Cloud
module ServiceUsage
module V1
##
# Enables services that service consumers want to use on Google Cloud Platform,
# lists the available or enabled services, or disables services that service
# consumers no longer use.
#
# See [Service Usage API](https://cloud.google.com/service-usage/docs/overview)
#
# To load this service and instantiate a REST client:
#
# require "google/cloud/service_usage/v1/service_usage/rest"
# client = ::Google::Cloud::ServiceUsage::V1::ServiceUsage::Rest::Client.new
#
module ServiceUsage
# Client for the REST transport
module Rest
end
end
end
end
end
end

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

0 comments on commit 6e82628

Please sign in to comment.