Reference documentation and code samples for the Google Cloud Storage Control V2 Client class CloudStorageBuckets.
Collection of buckets.
Generated from protobuf message google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets
Namespace
Google \ Cloud \ Storage \ Control \ V2 \ IntelligenceConfig \ FilterMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ bucket_id_regexes |
array
Optional. A regex pattern for matching bucket names. Regex should follow the syntax specified in google/re2. For example, |
getBucketIdRegexes
Optional. A regex pattern for matching bucket names. Regex should
follow the syntax specified in
google/re2. For example,
^sample_.*
matches all buckets of the form
gs://sample_bucket-1
, gs://sample_bucket-2
,
gs://sample_bucket-n
but not gs://test_sample_bucket
.
If you want to match a single bucket, say gs://sample_bucket
,
use sample_bucket
.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setBucketIdRegexes
Optional. A regex pattern for matching bucket names. Regex should
follow the syntax specified in
google/re2. For example,
^sample_.*
matches all buckets of the form
gs://sample_bucket-1
, gs://sample_bucket-2
,
gs://sample_bucket-n
but not gs://test_sample_bucket
.
If you want to match a single bucket, say gs://sample_bucket
,
use sample_bucket
.
Parameter | |
---|---|
Name | Description |
var |
string[]
|
Returns | |
---|---|
Type | Description |
$this |