Google Cloud Ai Platform V1 Client - Class SlackChannels (1.33.0)

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 \ SlackSource

Methods

__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

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月08日 UTC.