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: add ListProfiles RPC to ExportService #23659

Merged
merged 2 commits into from
Dec 21, 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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions google-cloud-profiler-v2/.owlbot-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@
"google-cloud-profiler-v2.gemspec",
"lib/google-cloud-profiler-v2.rb",
"lib/google/cloud/profiler/v2.rb",
"lib/google/cloud/profiler/v2/export_service.rb",
"lib/google/cloud/profiler/v2/export_service/client.rb",
"lib/google/cloud/profiler/v2/export_service/credentials.rb",
"lib/google/cloud/profiler/v2/export_service/paths.rb",
"lib/google/cloud/profiler/v2/export_service/rest.rb",
"lib/google/cloud/profiler/v2/export_service/rest/client.rb",
"lib/google/cloud/profiler/v2/export_service/rest/service_stub.rb",
"lib/google/cloud/profiler/v2/profiler_service.rb",
"lib/google/cloud/profiler/v2/profiler_service/client.rb",
"lib/google/cloud/profiler/v2/profiler_service/credentials.rb",
Expand All @@ -34,10 +41,14 @@
"proto_docs/google/protobuf/duration.rb",
"proto_docs/google/protobuf/field_mask.rb",
"snippets/Gemfile",
"snippets/export_service/list_profiles.rb",
"snippets/profiler_service/create_offline_profile.rb",
"snippets/profiler_service/create_profile.rb",
"snippets/profiler_service/update_profile.rb",
"snippets/snippet_metadata_google.devtools.cloudprofiler.v2.json",
"test/google/cloud/profiler/v2/export_service_paths_test.rb",
"test/google/cloud/profiler/v2/export_service_rest_test.rb",
"test/google/cloud/profiler/v2/export_service_test.rb",
"test/google/cloud/profiler/v2/profiler_service_paths_test.rb",
"test/google/cloud/profiler/v2/profiler_service_rest_test.rb",
"test/google/cloud/profiler/v2/profiler_service_test.rb",
Expand Down
14 changes: 14 additions & 0 deletions google-cloud-profiler-v2/gapic_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,20 @@
}
}
}
},
"ExportService": {
"clients": {
"grpc": {
"libraryClient": "::Google::Cloud::Profiler::V2::ExportService::Client",
"rpcs": {
"ListProfiles": {
"methods": [
"list_profiles"
]
}
}
}
}
}
}
}
1 change: 1 addition & 0 deletions google-cloud-profiler-v2/lib/google/cloud/profiler/v2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!

require "google/cloud/profiler/v2/profiler_service"
require "google/cloud/profiler/v2/export_service"
require "google/cloud/profiler/v2/version"

module Google
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/common"
require "gapic/config"
require "gapic/config/method"

require "google/cloud/profiler/v2/version"

require "google/cloud/profiler/v2/export_service/credentials"
require "google/cloud/profiler/v2/export_service/paths"
require "google/cloud/profiler/v2/export_service/client"
require "google/cloud/profiler/v2/export_service/rest"

module Google
module Cloud
module Profiler
module V2
##
# Service allows existing Cloud Profiler customers to export their profile data
# out of Google Cloud.
#
# @example Load this service and instantiate a gRPC client
#
# require "google/cloud/profiler/v2/export_service"
# client = ::Google::Cloud::Profiler::V2::ExportService::Client.new
#
# @example Load this service and instantiate a REST client
#
# require "google/cloud/profiler/v2/export_service/rest"
# client = ::Google::Cloud::Profiler::V2::ExportService::Rest::Client.new
#
module ExportService
end
end
end
end
end

helper_path = ::File.join __dir__, "export_service", "helpers.rb"
require "google/cloud/profiler/v2/export_service/helpers" if ::File.file? helper_path
Loading