-
Notifications
You must be signed in to change notification settings - Fork 545
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(service_usage-1): Support for HTTP/REST transport (#23338)
- Loading branch information
1 parent
4e000fe
commit 6e82628
Showing
12 changed files
with
2,725 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
google-cloud-service_usage-v1/lib/google/api/serviceusage/v1/resources_pb.rb
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
google-cloud-service_usage-v1/lib/google/api/serviceusage/v1/serviceusage_pb.rb
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
google-cloud-service_usage-v1/lib/google/cloud/service_usage/v1/rest.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
google-cloud-service_usage-v1/lib/google/cloud/service_usage/v1/service_usage/rest.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.