Skip to content

Commit

Permalink
chore: mark connection classes and ConnectionInterface as deprecated …
Browse files Browse the repository at this point in the history
…(#6616)
  • Loading branch information
saranshdhingra authored Sep 15, 2023
1 parent 2ebaa46 commit 50abef1
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 5 deletions.
2 changes: 2 additions & 0 deletions src/Connection/ConnectionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
/**
* Represents a connection to
* [Stackdriver Logging](https://cloud.google.com/logging/).
*
* @internal
*/
interface ConnectionInterface
{
Expand Down
2 changes: 2 additions & 0 deletions src/Connection/Grpc.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
/**
* Implementation of the
* [Google Stackdriver Logging gRPC API](https://cloud.google.com/logging/docs/).
*
* @internal
*/
class Grpc implements ConnectionInterface
{
Expand Down
2 changes: 2 additions & 0 deletions src/Connection/Rest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
/**
* Implementation of the
* [Google Stackdriver Logging JSON API](https://cloud.google.com/logging/docs/api/reference/rest/).
*
* @internal
*/
class Rest implements ConnectionInterface
{
Expand Down
2 changes: 0 additions & 2 deletions src/Entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@

namespace Google\Cloud\Logging;

use Google\Cloud\Logging\Connection\ConnectionInterface;

/**
* An individual entry in a log.
*
Expand Down
4 changes: 3 additions & 1 deletion src/Logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class Logger

/**
* @var ConnectionInterface Represents a connection to Stackdriver Logging.
* @internal
*/
protected $connection;

Expand Down Expand Up @@ -114,7 +115,8 @@ class Logger

/**
* @param ConnectionInterface $connection Represents a connection to
* Stackdriver Logging.
* Stackdriver Logging. This object is created by LoggingClient,
* and should not be instantiated outside of this client.
* @param string $name The name of the log to write entries to.
* @param string $projectId The project's ID.
* @param array $resource [optional] The
Expand Down
1 change: 1 addition & 0 deletions src/LoggingClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ class LoggingClient

/**
* @var ConnectionInterface Represents a connection to Stackdriver Logging.
* @internal
*/
protected $connection;

Expand Down
4 changes: 3 additions & 1 deletion src/Metric.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class Metric
{
/**
* @var ConnectionInterface Represents a connection to Stackdriver Logging.
* @internal
*/
protected $connection;

Expand All @@ -58,7 +59,8 @@ class Metric

/**
* @param ConnectionInterface $connection Represents a connection to Cloud
* Logging.
* Logging. This object is created by LoggingClient,
* and should not be instantiated outside of this client.
* @param string $name The metric's name.
* @param string $projectId The project's ID.
* @param array $info [optional] The metric's metadata.
Expand Down
4 changes: 3 additions & 1 deletion src/Sink.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class Sink
{
/**
* @var ConnectionInterface Represents a connection to Stackdriver Logging.
* @internal
*/
protected $connection;

Expand All @@ -56,7 +57,8 @@ class Sink

/**
* @param ConnectionInterface $connection Represents a connection to Cloud
* Logging.
* Logging. This object is created by LoggingClient,
* and should not be instantiated outside of this client.
* @param string $name The sink's name.
* @param string $projectId The project's ID.
* @param array $info [optional] The sink's metadata.
Expand Down

0 comments on commit 50abef1

Please sign in to comment.