Reference documentation and code samples for the Cloud Logging V2 API class Google::Cloud::Logging::V2::ListBucketsRequest.
The parameters to ListBuckets.
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 parent resource whose buckets are to be listed:
[[["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::ListBucketsRequest (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-ListBucketsRequest)\n- [1.2.1](/ruby/docs/reference/google-cloud-logging-v2/1.2.1/Google-Cloud-Logging-V2-ListBucketsRequest)\n- [1.1.0](/ruby/docs/reference/google-cloud-logging-v2/1.1.0/Google-Cloud-Logging-V2-ListBucketsRequest)\n- [1.0.1](/ruby/docs/reference/google-cloud-logging-v2/1.0.1/Google-Cloud-Logging-V2-ListBucketsRequest)\n- [0.13.0](/ruby/docs/reference/google-cloud-logging-v2/0.13.0/Google-Cloud-Logging-V2-ListBucketsRequest)\n- [0.12.2](/ruby/docs/reference/google-cloud-logging-v2/0.12.2/Google-Cloud-Logging-V2-ListBucketsRequest)\n- [0.11.0](/ruby/docs/reference/google-cloud-logging-v2/0.11.0/Google-Cloud-Logging-V2-ListBucketsRequest)\n- [0.10.1](/ruby/docs/reference/google-cloud-logging-v2/0.10.1/Google-Cloud-Logging-V2-ListBucketsRequest)\n- [0.9.0](/ruby/docs/reference/google-cloud-logging-v2/0.9.0/Google-Cloud-Logging-V2-ListBucketsRequest)\n- [0.8.1](/ruby/docs/reference/google-cloud-logging-v2/0.8.1/Google-Cloud-Logging-V2-ListBucketsRequest)\n- [0.7.0](/ruby/docs/reference/google-cloud-logging-v2/0.7.0/Google-Cloud-Logging-V2-ListBucketsRequest)\n- [0.6.0](/ruby/docs/reference/google-cloud-logging-v2/0.6.0/Google-Cloud-Logging-V2-ListBucketsRequest)\n- [0.5.6](/ruby/docs/reference/google-cloud-logging-v2/0.5.6/Google-Cloud-Logging-V2-ListBucketsRequest) \nReference documentation and code samples for the Cloud Logging V2 API class Google::Cloud::Logging::V2::ListBucketsRequest.\n\nThe parameters to `ListBuckets`. \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 parent resource whose buckets are to be listed:\n\n \"projects/[PROJECT_ID]/locations/[LOCATION_ID]\"\n \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]\"\n \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]\"\n \"folders/[FOLDER_ID]/locations/[LOCATION_ID]\"\n\n Note: The locations portion of the resource must be specified, but\n supplying the character `-` in place of \\[LOCATION_ID\\] will return all\n buckets.\n\n### #parent=\n\n def parent=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The parent resource whose buckets are to be listed:\n\n\n \"projects/[PROJECT_ID]/locations/[LOCATION_ID]\"\n \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]\"\n \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]\"\n \"folders/[FOLDER_ID]/locations/[LOCATION_ID]\"\n\n Note: The locations portion of the resource must be specified, but\n supplying the character `-` in place of \\[LOCATION_ID\\] will return all\nbuckets. \n**Returns**\n\n- (::String) --- Required. The parent resource whose buckets are to be listed:\n\n \"projects/[PROJECT_ID]/locations/[LOCATION_ID]\"\n \"organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]\"\n \"billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]\"\n \"folders/[FOLDER_ID]/locations/[LOCATION_ID]\"\n\n Note: The locations portion of the resource must be specified, but\n supplying the character `-` in place of \\[LOCATION_ID\\] will return all\n buckets."]]