Reference documentation and code samples for the Cloud Logging V2 API class Google::Cloud::Logging::V2::ListLogsRequest.
The parameters to ListLogs.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#page_size
defpage_size()->::Integer
Returns
(::Integer) — Optional. The maximum number of results to return from this request.
Non-positive values are ignored. The presence of nextPageToken in the
response indicates that more results might be available.
#page_size=
defpage_size=(value)->::Integer
Parameter
value (::Integer) — Optional. The maximum number of results to return from this request.
Non-positive values are ignored. The presence of nextPageToken in the
response indicates that more results might be available.
Returns
(::Integer) — Optional. The maximum number of results to return from this request.
Non-positive values are ignored. The presence of nextPageToken in the
response indicates that more results might be available.
#page_token
defpage_token()->::String
Returns
(::String) — Optional. If present, then retrieve the next batch of results from the
preceding call to this method. pageToken must be the value of
nextPageToken from the previous response. The values of other method
parameters should be identical to those in the previous call.
#page_token=
defpage_token=(value)->::String
Parameter
value (::String) — Optional. If present, then retrieve the next batch of results from the
preceding call to this method. pageToken must be the value of
nextPageToken from the previous response. The values of other method
parameters should be identical to those in the previous call.
Returns
(::String) — Optional. If present, then retrieve the next batch of results from the
preceding call to this method. pageToken must be the value of
nextPageToken from the previous response. The values of other method
parameters should be identical to those in the previous call.
#parent
defparent()->::String
Returns
(::String) —
Required. The resource name to list logs for:
projects/[PROJECT_ID]
organizations/[ORGANIZATION_ID]
billingAccounts/[BILLING_ACCOUNT_ID]
folders/[FOLDER_ID]
#parent=
defparent=(value)->::String
Parameter
value (::String) —
Required. The resource name to list logs for:
projects/[PROJECT_ID]
organizations/[ORGANIZATION_ID]
billingAccounts/[BILLING_ACCOUNT_ID]
folders/[FOLDER_ID]
Returns
(::String) —
Required. The resource name to list logs for:
projects/[PROJECT_ID]
organizations/[ORGANIZATION_ID]
billingAccounts/[BILLING_ACCOUNT_ID]
folders/[FOLDER_ID]
#resource_names
defresource_names()->::Array<::String>
Returns
(::Array<::String>) — Optional. List of resource names to list logs for:
[[["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 Logging V2 API - Class Google::Cloud::Logging::V2::ListLogsRequest (v1.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.3.0 (latest)](/ruby/docs/reference/google-cloud-logging-v2/latest/Google-Cloud-Logging-V2-ListLogsRequest)\n- [1.2.1](/ruby/docs/reference/google-cloud-logging-v2/1.2.1/Google-Cloud-Logging-V2-ListLogsRequest)\n- [1.1.0](/ruby/docs/reference/google-cloud-logging-v2/1.1.0/Google-Cloud-Logging-V2-ListLogsRequest)\n- [1.0.1](/ruby/docs/reference/google-cloud-logging-v2/1.0.1/Google-Cloud-Logging-V2-ListLogsRequest)\n- [0.13.0](/ruby/docs/reference/google-cloud-logging-v2/0.13.0/Google-Cloud-Logging-V2-ListLogsRequest)\n- [0.12.2](/ruby/docs/reference/google-cloud-logging-v2/0.12.2/Google-Cloud-Logging-V2-ListLogsRequest)\n- [0.11.0](/ruby/docs/reference/google-cloud-logging-v2/0.11.0/Google-Cloud-Logging-V2-ListLogsRequest)\n- [0.10.1](/ruby/docs/reference/google-cloud-logging-v2/0.10.1/Google-Cloud-Logging-V2-ListLogsRequest)\n- [0.9.0](/ruby/docs/reference/google-cloud-logging-v2/0.9.0/Google-Cloud-Logging-V2-ListLogsRequest)\n- [0.8.1](/ruby/docs/reference/google-cloud-logging-v2/0.8.1/Google-Cloud-Logging-V2-ListLogsRequest)\n- [0.7.0](/ruby/docs/reference/google-cloud-logging-v2/0.7.0/Google-Cloud-Logging-V2-ListLogsRequest)\n- [0.6.0](/ruby/docs/reference/google-cloud-logging-v2/0.6.0/Google-Cloud-Logging-V2-ListLogsRequest)\n- [0.5.6](/ruby/docs/reference/google-cloud-logging-v2/0.5.6/Google-Cloud-Logging-V2-ListLogsRequest) \nReference documentation and code samples for the Cloud Logging V2 API class Google::Cloud::Logging::V2::ListLogsRequest.\n\nThe parameters to ListLogs. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #page_size\n\n def page_size() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of `nextPageToken` in the response indicates that more results might be available.\n\n### #page_size=\n\n def page_size=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of `nextPageToken` in the response indicates that more results might be available. \n**Returns**\n\n- (::Integer) --- Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of `nextPageToken` in the response indicates that more results might be available.\n\n### #page_token\n\n def page_token() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Optional. If present, then retrieve the next batch of results from the preceding call to this method. `pageToken` must be the value of `nextPageToken` from the previous response. The values of other method parameters should be identical to those in the previous call.\n\n### #page_token=\n\n def page_token=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Optional. If present, then retrieve the next batch of results from the preceding call to this method. `pageToken` must be the value of `nextPageToken` from the previous response. The values of other method parameters should be identical to those in the previous call. \n**Returns**\n\n- (::String) --- Optional. If present, then retrieve the next batch of results from the preceding call to this method. `pageToken` must be the value of `nextPageToken` from the previous response. The values of other method parameters should be identical to those in the previous call.\n\n### #parent\n\n def parent() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The resource name to list logs for:\n\n - `projects/[PROJECT_ID]`\n - `organizations/[ORGANIZATION_ID]`\n - `billingAccounts/[BILLING_ACCOUNT_ID]`\n - `folders/[FOLDER_ID]`\n\n### #parent=\n\n def parent=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) ---\n\n Required. The resource name to list logs for:\n - `projects/[PROJECT_ID]`\n - `organizations/[ORGANIZATION_ID]`\n - `billingAccounts/[BILLING_ACCOUNT_ID]`\n- `folders/[FOLDER_ID]` \n**Returns**\n\n- (::String) --- Required. The resource name to list logs for:\n\n - `projects/[PROJECT_ID]`\n - `organizations/[ORGANIZATION_ID]`\n - `billingAccounts/[BILLING_ACCOUNT_ID]`\n - `folders/[FOLDER_ID]`\n\n### #resource_names\n\n def resource_names() -\u003e ::Array\u003c::String\u003e\n\n**Returns**\n\n- (::Array\\\u003c::String\\\u003e) --- Optional. List of resource names to list logs for:\n\n - `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`\n - `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`\n - `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`\n - `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`\n\n To support legacy queries, it could also be:\n - `projects/[PROJECT_ID]`\n - `organizations/[ORGANIZATION_ID]`\n - `billingAccounts/[BILLING_ACCOUNT_ID]`\n - `folders/[FOLDER_ID]`\n\n The resource name in the `parent` field is added to this list.\n\n### #resource_names=\n\n def resource_names=(value) -\u003e ::Array\u003c::String\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c::String\\\u003e) --- Optional. List of resource names to list logs for:\n\n\n - `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`\n - `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`\n - `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`\n - `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`\n\n To support legacy queries, it could also be:\n - `projects/[PROJECT_ID]`\n - `organizations/[ORGANIZATION_ID]`\n - `billingAccounts/[BILLING_ACCOUNT_ID]`\n - `folders/[FOLDER_ID]`\n\nThe resource name in the `parent` field is added to this list. \n**Returns**\n\n- (::Array\\\u003c::String\\\u003e) --- Optional. List of resource names to list logs for:\n\n - `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`\n - `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`\n - `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`\n - `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`\n\n To support legacy queries, it could also be:\n - `projects/[PROJECT_ID]`\n - `organizations/[ORGANIZATION_ID]`\n - `billingAccounts/[BILLING_ACCOUNT_ID]`\n - `folders/[FOLDER_ID]`\n\n The resource name in the `parent` field is added to this list."]]