Skip to content

Conversation

@renovate-bot
Copy link
Contributor

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
com.google.cloud:google-cloud-batch 0.3.2 -> 0.8.0 age adoption passing confidence

⚠ Dependency Lookup Warnings ⚠

Warnings were logged while processing this repo. Please check the Dependency Dashboard for more information.


Release Notes

googleapis/google-cloud-java

v0.8.0: 0.8.0

Compare Source

Select clients going from Alpha to Beta

In this release, clients for four APIs are moving to beta:

  • Google Cloud BigQuery
  • Stackdriver Logging
  • Google Cloud Datastore
  • Google Cloud Storage

Their versions will have “-beta” on the end call out that fact. All other clients are still Alpha.

Features
  • QueryParameter support added to BigQuery, DATE/TIME/DATETIME added to LegacySQLTypeName (#​1451)
Interface changes
  • Logging api layer: using resource name classes instead of strings where appropriate (#​1454)
Test improvements

Several tests were flaky on AppVeyor, so improvements were made to make them more reliable.

  • BlockingProcessStreamReader (#​1457)
  • BigQuery integration tests (#​1456)
  • PubSub integration tests (#​1453)
  • DNS tests: removed LocalDnsHelper and its test (#​1446)

Despite that, integration tests were still failing on AppVeyor, so they have been disabled until they can all run reliably - tracking issue: #​1429

Documentation, Snippets

v0.7.0: 0.7.0

Compare Source

Naming, interface changes
  • SPI classes ending in Api have been renamed so that they end in Client (#​1417)
  • Deleted the client for Natural Language v1beta1, added the client for Natural Language v1 (#​1417)
  • PubSub SPI classes now take resource name classes instead of strings (#​1403)
Features
  • Speech SPI layer: AsyncRecognize now returns a new OperationFuture type which enables an easier way to get the final result of the long-running operation. (#​1419)
Documentation, Snippets

v0.6.0: 0.6.0

Compare Source

Credentials changes

AuthCredentials classes have been deleted. Use classes from google-auth-library-java for authentication.

google-cloud will still try to infer credentials from the environment when no credentials are provided:

Storage storage = StorageOptions.getDefaultInstance().getService();

You can also explicitly provide credentials. For instance, to use a JSON credentials file try the following code:

Storage storage = StorageOptions.newBuilder() .setCredentials(ServiceAccountCredentials.fromStream(new FileInputStream("/path/to/my/key.json")) .build() .getService(); 

For more details see the Authentication section of the main README.

Features
PubSub
  • All pullAsync methods now use returnImmediately=false and are not subject to client-side timeouts (#​1387)
Translate
  • Add support for the TranslateOption.model(String) option which allows to set the language translation model used to translate text. This option is only available to whitelisted users (#​1393)
Fixes
Storage
  • Change BaseWriteChannel's position to long to fix integer overflow on big files (#​1390)

v0.5.0: 0.5.0

Compare Source

Naming changes
  • Getters and setters with the get and set prefix have been added to all classes/builders. Older getters/setters (without get/set prefix) have been deprecated
  • Builder factory methods builder() have been deprecated, you should use newBuilder() instead
  • defaultInstance() factory methods have been deprecated, you should use getDefaultInstance() instead

See the following example of using google-cloud-storage after the naming changes:

Storage storage = StorageOptions.getDefaultInstance().getService(); BlobId blobId = BlobId.of("bucket", "blob_name"); Blob blob = storage.get(blobId); if (blob != null) { byte[] prevContent = blob.getContent(); System.out.println(new String(prevContent, UTF_8)); WritableByteChannel channel = blob.writer(); channel.write(ByteBuffer.wrap("Updated content".getBytes(UTF_8))); channel.close(); }
Features
Datastore
  • Add support to LocalDatastoreHelper for more recent version of the Datastore emulator installed via gcloud (#​1303)
  • Add reset() method to LocalDatastoreHelper to clear the status of the Datastore emulator (#​1293)
PubSub
  • Add support for PubSub emulator host variable. If the PUBSUB_EMULATOR_HOST environment variable is set, the PubSub client uses it to locate the PubSub emulator. (#​1317)
Fixes
Datastore
  • Allow LocalDatastoreHelper to properly cache downloaded copies of the Datastore emulator (#​1302)
Storage
  • Fix regression in Storage.signUrl to support blob names containing / characters (#​1346)
  • Allow Storage.reader to read gzip blobs in compressed chunks. This prevents ReadChannel from trying (and failing) to uncompress gzipped chunks (#​1301)
Storage NIO
  • All dependencies are now shaded in the google-cloud-nio shaded jar (#​1327)

v0.4.0: 0.4.0

Features
BigQuery
  • Add of(String) factory method to DatasetInfo (#​1275)
bigquery.create(DatasetInfo.of("dataset-name"));
Core
  • google-cloud now depends on protobuf 3.0.0 and grpc 1.0.1 (#​1273)
PubSub
  • Add support for IAM methods for sinks and subscriptions (#​1231)
// Example of replacing a subscription policy Policy policy = pubsub.getSubscriptionPolicy(subscriptionName); Policy updatedPolicy = policy.toBuilder() .addIdentity(Role.viewer(), Identity.allAuthenticatedUsers()) .build(); updatedPolicy = pubsub.replaceSubscriptionPolicy(subscriptionName, updatedPolicy); // Example of asynchronously replacing a topic policy Policy policy = pubsub.getTopicPolicy(topicName); Policy updatedPolicy = policy.toBuilder() .addIdentity(Role.viewer(), Identity.allAuthenticatedUsers()) .build(); Future<Policy> future = pubsub.replaceTopicPolicyAsync(topicName, updatedPolicy); // ... updatedPolicy = future.get();
Storage
  • Add support for create/get/update/delete/list ACLs for blobs and buckets (#​1228)
// Example of updating the ACL for a blob BlobId blobId = BlobId.of(bucketName, blobName, blobGeneration); Acl acl = storage.updateAcl(blobId, Acl.of(User.ofAllAuthenticatedUsers(), Role.OWNER)); // Example of listing the ACL entries for a bucket List<Acl> acls = storage.listAcls(bucketName); for (Acl acl : acls) { // do something with ACL entry }
Key key = ...; String base64Key = ...; byte[] content = {0xD, 0xE, 0xA, 0xD}; BlobInfo blobInfo = BlobInfo.builder(bucketName, blobName).build(); // Example of creating a blob with a customer-supplied encryption key (as Key object) storage.create(blobInfo, content, Storage.BlobTargetOption.encryptionKey(key)); // Example of reading a blob with a customer-supplied decryption key (as base64 String) byte[] readBytes = storage.readAllBytes(bucketName, blobName, Storage.BlobSourceOption.decryptionKey(base64Key));
Fixes
BigQuery
  • Support operations on tables/datasets/jobs in projects other than the one set in BigQueryOptions (#​1217)
  • Allow constructing a RowToInsert using Map<Str, ? extends Object> rather than Map<Str, Object> (#​1259)
Datastore
  • Retry ABORTED Datastore commits only when the commit was NON_TRANSACTIONAL (#​1235)
Logging
  • Remove unnecessary MetricInfo parameter from Metric.updateAsync() (#​1221)
  • Remove unnecessary SinkInfo parameter from Sink.updateAsync() (#​1222)
  • Logging.deleteSink now returns false on NOT_FOUND (#​1222)
Storage
  • Retry calls that open a resumable upload session in WriteChannel, when they fail with a retryable error (#​1233)
  • Fix generation of signed URLs for blobs containing spaces and other special chars (#​1277 - thanks to @​ostronom)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Never, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate-bot renovate-bot requested review from a team and yoshi-approver as code owners January 20, 2023 23:23
@forking-renovate forking-renovate bot added the automerge Merge the pull request once unit tests and other checks pass. label Jan 20, 2023
@trusted-contributions-gcf trusted-contributions-gcf bot added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 20, 2023
@yoshi-approver yoshi-approver added the automerge: exact Summon MOG for automerging, but approvals need to be against the latest commit label Jan 20, 2023
@product-auto-label product-auto-label bot added samples Issues that are directly related to samples. api: batch Issues related to the Batch API. labels Jan 20, 2023
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 20, 2023
@gcf-merge-on-green gcf-merge-on-green bot merged commit edc5825 into GoogleCloudPlatform:main Jan 20, 2023
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Jan 20, 2023
@renovate-bot renovate-bot deleted the renovate/com.google.cloud-google-cloud-batch-0.x branch January 20, 2023 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: batch Issues related to the Batch API. automerge: exact Summon MOG for automerging, but approvals need to be against the latest commit samples Issues that are directly related to samples.

4 participants