Reference documentation and code samples for the Google Cloud Eventarc V1 Client class ProjectSubscriptions.
Config to enable subscribing to all events from a list of projects.
Generated from protobuf message google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions
Namespace
Google \ Cloud \ Eventarc \ V1 \ GoogleApiSourceMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ list |
array
Required. A list of projects to receive events from. All the projects must be in the same org. The listed projects should have the format project/{identifier} where identifier can be either the project id for project number. A single list may contain both formats. At most 100 projects can be listed. |
getList
Required. A list of projects to receive events from.
All the projects must be in the same org. The listed projects should have the format project/{identifier} where identifier can be either the project id for project number. A single list may contain both formats. At most 100 projects can be listed.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setList
Required. A list of projects to receive events from.
All the projects must be in the same org. The listed projects should have the format project/{identifier} where identifier can be either the project id for project number. A single list may contain both formats. At most 100 projects can be listed.
| Parameter | |
|---|---|
| Name | Description |
var |
string[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|