Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class SlackChannels.
SlackChannels contains the Slack channels and corresponding access token.
Generated from protobuf message google.cloud.aiplatform.v1.SlackSource.SlackChannels
Namespace
Google \ Cloud \ AIPlatform \ V1 \ SlackSourceMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ channels |
array<SlackChannels\SlackChannel>
Required. The Slack channel IDs. |
↳ api_key_config |
Google\Cloud\AIPlatform\V1\ApiAuth\ApiKeyConfig
Required. The SecretManager secret version resource name (e.g. projects/{project}/secrets/{secret}/versions/{version}) storing the Slack channel access token that has access to the slack channel IDs. See: https://api.slack.com/tutorials/tracks/getting-a-token. |
getChannels
Required. The Slack channel IDs.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setChannels
Required. The Slack channel IDs.
Parameter | |
---|---|
Name | Description |
var |
array<SlackChannels\SlackChannel>
|
Returns | |
---|---|
Type | Description |
$this |
getApiKeyConfig
Required. The SecretManager secret version resource name (e.g.
projects/{project}/secrets/{secret}/versions/{version}) storing the Slack channel access token that has access to the slack channel IDs. See: https://api.slack.com/tutorials/tracks/getting-a-token.
Returns | |
---|---|
Type | Description |
Google\Cloud\AIPlatform\V1\ApiAuth\ApiKeyConfig|null |
hasApiKeyConfig
clearApiKeyConfig
setApiKeyConfig
Required. The SecretManager secret version resource name (e.g.
projects/{project}/secrets/{secret}/versions/{version}) storing the Slack channel access token that has access to the slack channel IDs. See: https://api.slack.com/tutorials/tracks/getting-a-token.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\AIPlatform\V1\ApiAuth\ApiKeyConfig
|
Returns | |
---|---|
Type | Description |
$this |