Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Datastore/MIGRATING.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ Update your `google/cloud-datastore` dependency to `^2.0`:

## Breaking Changes

### Version constant removed
Removed `DatastoreClient::VERSION`, use the `VERSION` file in the library root instead.

### EntityInterface changes

Types have been added to the methods in [`EntityInterface`](src/EntityInterface.php). This means that
Expand Down Expand Up @@ -148,4 +151,3 @@ to the namespaced version (replacing `_` with `\`) to upgrade.
- `Google\Cloud\Datastore\V1\ReadOptions_ReadConsistency` has been removed
- `Google\Cloud\Datastore\V1\Key_PathElement` has been removed
- `Google\Cloud\Datastore\V1\AggregationQuery_Aggregation_Count` has been removed

2 changes: 0 additions & 2 deletions Datastore/src/DatastoreClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@ class DatastoreClient
use ClientOptionsTrait;
use EmulatorTrait;

const VERSION = '2.0.0-RC1';

const FULL_CONTROL_SCOPE = 'https://www.googleapis.com/auth/datastore';

/**
Expand Down
3 changes: 3 additions & 0 deletions Firestore/MIGRATING.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,6 @@ $batch = new BulkWriter(...);
| Class Constructors | Accepted `ConnectionInterface` | Accept `V1\Client\FirestoreClient` | Update arguments passed to constructors. |

By addressing these key areas, you can successfully migrate your application to version 2 of the Firestore client library.

## 5. Version constant removed
Removed `FirestoreClient::VERSION`, use the `VERSION` file in the library root instead.
2 changes: 0 additions & 2 deletions Firestore/src/FirestoreClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ class FirestoreClient
use ClientOptionsTrait;
use RequestProcessorTrait;

const VERSION = '2.0.0-RC1';

const DEFAULT_DATABASE = '(default)';
const FULL_CONTROL_SCOPE = 'https://www.googleapis.com/auth/cloud-platform';
const MAX_RETRIES = 5;
Expand Down
5 changes: 3 additions & 2 deletions Logging/MIGRATING.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ Update your `google/cloud-logging` dependency to `^2.0`:

## Changes

### Version constant removed
Removed `LoggingClient::VERSION`, use the `VERSION` file in the library root instead.

### Client Options changes

The following client options are removed/replaced with other options present in
Expand Down Expand Up @@ -52,5 +55,3 @@ This is a major change, but one that we hope won't break any users. When the
The Rest and Grpc connection classes (along with the `ConnectionInterface`) have been
removed in favor of using the GAPIC generated clients directly. See `src/Connection/Gapic.php`
for an example.


2 changes: 0 additions & 2 deletions Logging/src/LoggingClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ class LoggingClient
use DetectProjectIdTrait;
use ClientOptionsTrait;

const VERSION = '2.0.0-RC1';

const FULL_CONTROL_SCOPE = 'https://www.googleapis.com/auth/logging.admin';
const READ_ONLY_SCOPE = 'https://www.googleapis.com/auth/logging.read';
const WRITE_ONLY_SCOPE = 'https://www.googleapis.com/auth/logging.write';
Expand Down
3 changes: 3 additions & 0 deletions PubSub/MIGRATING.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ Update your `google/cloud-pubsub` dependency to `^2.0`:

## Changes

### Version constant removed
Removed `PubSubClient::VERSION`, use the `VERSION` file in the library root instead.

### Client Options changes

The following client options are removed/replaced with other options present in
Expand Down
2 changes: 0 additions & 2 deletions PubSub/src/PubSubClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,6 @@ class PubSubClient
use ApiHelperTrait;
use ClientOptionsTrait;

const VERSION = '2.19.1';

const FULL_CONTROL_SCOPE = 'https://www.googleapis.com/auth/pubsub';

private const GAPIC_KEYS = [
Expand Down
4 changes: 3 additions & 1 deletion Spanner/MIGRATING.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ Update your `google/cloud-spanner` dependency to `^2.0`:

## Changes

### Version constant removed
Removed `SpannerClient::VERSION`, use the `VERSION` file in the library root instead.

### Client Options changes

The following client options are removed/replaced with other options present in
Expand Down Expand Up @@ -133,4 +136,3 @@ $lro->delete();
- `Session\CacheSessionPool` => removed in favor of `SessionCache`
- `Session\SessionPoolInterface` => removed in favor of `SessionCache`
- `Operation` - this class is marked `@internal`, and should not be used directly.

2 changes: 0 additions & 2 deletions Spanner/src/SpannerClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,6 @@ class SpannerClient
use ApiHelperTrait;
use RequestTrait;

const VERSION = '2.0.0-RC1';

const FULL_CONTROL_SCOPE = 'https://www.googleapis.com/auth/spanner.data';
const ADMIN_SCOPE = 'https://www.googleapis.com/auth/spanner.admin';
private const GRPC_KEEPALIVE_MILLISECONDS = 120 * 1000;
Expand Down
Loading