The configuration is set to the derived mode, meaning that values can be changed,
but structural changes (adding new fields, etc.) are not allowed. Structural changes
should be made on Client.configure.
See Configuration
for a description of the configuration fields.
# Create a client using the default configurationclient=::Google::Cloud::Profiler::V2::ExportService::Client.new# Create a client using a custom configurationclient=::Google::Cloud::Profiler::V2::ExportService::Client.newdo|config|config.timeout=10.0end
Pass arguments to list_profiles via a request object, either of type
ListProfilesRequest or an equivalent Hash.
Parameters
request (::Google::Cloud::Profiler::V2::ListProfilesRequest, ::Hash) — A request object representing the call parameters. Required. To specify no
parameters, or to keep all the default parameter values, pass an empty Hash.
options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
Pass arguments to list_profiles via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
Parameters
parent (::String) — Required. The parent, which owns this collection of profiles.
Format: projects/{user_project_id}
page_size (::Integer) — The maximum number of items to return.
Default page_size is 1000.
Max limit is 1000.
page_token (::String) — The token to continue pagination and get profiles from a particular page.
When paginating, all other parameters provided to ListProfiles must match
the call that provided the page token.
Yields
(response, operation) — Access the result along with the RPC operation
require"google/cloud/profiler/v2"# Create a client object. The client can be reused for multiple calls.client=Google::Cloud::Profiler::V2::ExportService::Client.new# Create a request. To set request fields, pass in keyword arguments.request=Google::Cloud::Profiler::V2::ListProfilesRequest.new# Call the list_profiles method.result=client.list_profilesrequest# The returned object is of type Gapic::PagedEnumerable. You can iterate# over elements, and API calls will be issued to fetch pages as needed.result.eachdo|item|# Each element is of type ::Google::Cloud::Profiler::V2::Profile.pitemend
#logger
deflogger()->Logger
The logger used for request/response debug logging.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Cloud Profiler V2 API - Class Google::Cloud::Profiler::V2::ExportService::Client (v1.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.3.0 (latest)](/ruby/docs/reference/google-cloud-profiler-v2/latest/Google-Cloud-Profiler-V2-ExportService-Client)\n- [1.2.1](/ruby/docs/reference/google-cloud-profiler-v2/1.2.1/Google-Cloud-Profiler-V2-ExportService-Client)\n- [1.1.0](/ruby/docs/reference/google-cloud-profiler-v2/1.1.0/Google-Cloud-Profiler-V2-ExportService-Client)\n- [1.0.1](/ruby/docs/reference/google-cloud-profiler-v2/1.0.1/Google-Cloud-Profiler-V2-ExportService-Client)\n- [0.10.1](/ruby/docs/reference/google-cloud-profiler-v2/0.10.1/Google-Cloud-Profiler-V2-ExportService-Client)\n- [0.9.2](/ruby/docs/reference/google-cloud-profiler-v2/0.9.2/Google-Cloud-Profiler-V2-ExportService-Client)\n- [0.8.0](/ruby/docs/reference/google-cloud-profiler-v2/0.8.0/Google-Cloud-Profiler-V2-ExportService-Client)\n- [0.7.0](/ruby/docs/reference/google-cloud-profiler-v2/0.7.0/Google-Cloud-Profiler-V2-ExportService-Client)\n- [0.6.1](/ruby/docs/reference/google-cloud-profiler-v2/0.6.1/Google-Cloud-Profiler-V2-ExportService-Client)\n- [0.5.0](/ruby/docs/reference/google-cloud-profiler-v2/0.5.0/Google-Cloud-Profiler-V2-ExportService-Client)\n- [0.4.0](/ruby/docs/reference/google-cloud-profiler-v2/0.4.0/Google-Cloud-Profiler-V2-ExportService-Client)\n- [0.3.0](/ruby/docs/reference/google-cloud-profiler-v2/0.3.0/Google-Cloud-Profiler-V2-ExportService-Client)\n- [0.2.5](/ruby/docs/reference/google-cloud-profiler-v2/0.2.5/Google-Cloud-Profiler-V2-ExportService-Client) \nReference documentation and code samples for the Cloud Profiler V2 API class Google::Cloud::Profiler::V2::ExportService::Client.\n\nClient for the ExportService service.\n\n\n\u003cbr /\u003e\n\nService allows existing Cloud Profiler customers to export their profile data\nout of Google Cloud. \n\nInherits\n--------\n\n- Object \n\nIncludes\n--------\n\n- [Google::Cloud::Profiler::V2::ExportService::Paths](./Google-Cloud-Profiler-V2-ExportService-Paths)\n\nMethods\n-------\n\n### .configure\n\n def self.configure() { |config| ... } -\u003e Client::Configuration\n\nConfigure the ExportService Client class.\n\n\n\u003cbr /\u003e\n\nSee [Configuration](/ruby/docs/reference/google-cloud-profiler-v2/latest/Google-Cloud-Profiler-V2-ExportService-Client-Configuration \"Google::Cloud::Profiler::V2::ExportService::Client::Configuration (class)\")\nfor a description of the configuration fields. \n**Yields**\n\n- (config) --- Configure the Client client. \n**Yield Parameter**\n\n- **config** ([Client::Configuration](./Google-Cloud-Profiler-V2-ExportService-Client-Configuration)) \n**Returns**\n\n- ([Client::Configuration](./Google-Cloud-Profiler-V2-ExportService-Client-Configuration))\n**Example** \n\n```ruby\n# Modify the configuration for all ExportService clients\n::Google::Cloud::Profiler::V2::ExportService::Client.configure do |config|\n config.timeout = 10.0\nend\n```\n\n### #configure\n\n def configure() { |config| ... } -\u003e Client::Configuration\n\nConfigure the ExportService Client instance.\n\n\nThe configuration is set to the derived mode, meaning that values can be changed,\nbut structural changes (adding new fields, etc.) are not allowed. Structural changes\nshould be made on [Client.configure](/ruby/docs/reference/google-cloud-profiler-v2/latest/Google-Cloud-Profiler-V2-ExportService-Client#Google__Cloud__Profiler__V2__ExportService__Client_configure_class_ \"Google::Cloud::Profiler::V2::ExportService::Client.configure (method)\").\n\n\u003cbr /\u003e\n\nSee [Configuration](/ruby/docs/reference/google-cloud-profiler-v2/latest/Google-Cloud-Profiler-V2-ExportService-Client-Configuration \"Google::Cloud::Profiler::V2::ExportService::Client::Configuration (class)\")\nfor a description of the configuration fields. \n**Yields**\n\n- (config) --- Configure the Client client. \n**Yield Parameter**\n\n- **config** ([Client::Configuration](./Google-Cloud-Profiler-V2-ExportService-Client-Configuration)) \n**Returns**\n\n- ([Client::Configuration](./Google-Cloud-Profiler-V2-ExportService-Client-Configuration))\n\n### #initialize\n\n def initialize() { |config| ... } -\u003e Client\n\nCreate a new ExportService client object. \n**Yields**\n\n- (config) --- Configure the ExportService client. \n**Yield Parameter**\n\n- **config** ([Client::Configuration](./Google-Cloud-Profiler-V2-ExportService-Client-Configuration)) \n**Returns**\n\n- ([Client](./Google-Cloud-Profiler-V2-ExportService-Client)) --- a new instance of Client\n**Example** \n\n```ruby\n# Create a client using the default configuration\nclient = ::Google::Cloud::Profiler::V2::ExportService::Client.new\n\n# Create a client using a custom configuration\nclient = ::Google::Cloud::Profiler::V2::ExportService::Client.new do |config|\n config.timeout = 10.0\nend\n```\n\n### #list_profiles\n\n def list_profiles(request, options = nil) -\u003e ::Gapic::PagedEnumerable\u003c::Google::Cloud::Profiler::V2::Profile\u003e\n def list_profiles(parent: nil, page_size: nil, page_token: nil) -\u003e ::Gapic::PagedEnumerable\u003c::Google::Cloud::Profiler::V2::Profile\u003e\n\nLists profiles which have been collected so far and for which the caller\nhas permission to view. \n**Overloads** \n\n def list_profiles(request, options = nil) -\u003e ::Gapic::PagedEnumerable\u003c::Google::Cloud::Profiler::V2::Profile\u003e\n\nPass arguments to `list_profiles` via a request object, either of type [ListProfilesRequest](/ruby/docs/reference/google-cloud-profiler-v2/latest/Google-Cloud-Profiler-V2-ListProfilesRequest \"Google::Cloud::Profiler::V2::ListProfilesRequest (class)\") or an equivalent Hash. \n**Parameters**\n\n- **request** ([::Google::Cloud::Profiler::V2::ListProfilesRequest](./Google-Cloud-Profiler-V2-ListProfilesRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.\n- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. \n\n def list_profiles(parent: nil, page_size: nil, page_token: nil) -\u003e ::Gapic::PagedEnumerable\u003c::Google::Cloud::Profiler::V2::Profile\u003e\n\nPass arguments to `list_profiles` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). \n**Parameters**\n\n- **parent** (::String) --- Required. The parent, which owns this collection of profiles. Format: projects/{user_project_id}\n- **page_size** (::Integer) --- The maximum number of items to return. Default page_size is 1000. Max limit is 1000.\n- **page_token** (::String) --- The token to continue pagination and get profiles from a particular page. When paginating, all other parameters provided to `ListProfiles` must match the call that provided the page token. \n**Yields**\n\n- (response, operation) --- Access the result along with the RPC operation \n**Yield Parameters**\n\n- **response** (::Gapic::PagedEnumerable\\\u003c[::Google::Cloud::Profiler::V2::Profile](./Google-Cloud-Profiler-V2-Profile)\\\u003e)\n- **operation** (::GRPC::ActiveCall::Operation) \n**Returns**\n\n- (::Gapic::PagedEnumerable\\\u003c[::Google::Cloud::Profiler::V2::Profile](./Google-Cloud-Profiler-V2-Profile)\\\u003e) \n**Raises**\n\n- (::Google::Cloud::Error) --- if the RPC is aborted.\n**Example**\n\nBasic example \n\n```ruby\nrequire \"google/cloud/profiler/v2\"\n\n# Create a client object. The client can be reused for multiple calls.\nclient = Google::Cloud::Profiler::V2::ExportService::Client.new\n\n# Create a request. To set request fields, pass in keyword arguments.\nrequest = Google::Cloud::Profiler::V2::ListProfilesRequest.new\n\n# Call the list_profiles method.\nresult = client.list_profiles request\n\n# The returned object is of type Gapic::PagedEnumerable. You can iterate\n# over elements, and API calls will be issued to fetch pages as needed.\nresult.each do |item|\n # Each element is of type ::Google::Cloud::Profiler::V2::Profile.\n p item\nend\n```\n\n### #logger\n\n def logger() -\u003e Logger\n\nThe logger used for request/response debug logging. \n**Returns**\n\n- (Logger)\n\n### #universe_domain\n\n def universe_domain() -\u003e String\n\nThe effective universe domain \n**Returns**\n\n- (String)"]]