Skip to content

Adding a code snippet to the landing page.#669

Merged
dhermes merged 1 commit intogoogleapis:gh-pagesfrom
dhermes:gh-pages-fix-553
Feb 19, 2015
Merged

Adding a code snippet to the landing page.#669
dhermes merged 1 commit intogoogleapis:gh-pagesfrom
dhermes:gh-pages-fix-553

Conversation

@dhermes
Copy link
Contributor

@dhermes dhermes commented Feb 19, 2015

NOTE: Has #661 as a diffbase

Fixes #646 (originally I accidentally said #553).

Uses the Python snippet

from gcloud import datastore
datastore.set_defaults()

product_key = datastore.Key('Product', 123)
print datastore.get([product_key])

and

pygmentize -f html gcloud_landing_snippet.py

to create the highlighted HTML.

I initially tried to find a place to put these, but the nothing really felt appropriate since the main index.html is not part of any build stage.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Feb 19, 2015
@dhermes dhermes added the docs label Feb 19, 2015
@tseaver
Copy link
Contributor

tseaver commented Feb 19, 2015

c5935da LGTM

@dhermes
Copy link
Contributor Author

dhermes commented Feb 19, 2015

Rebased, merging now.

dhermes added a commit that referenced this pull request Feb 19, 2015
Adding a code snippet to the landing page.
@dhermes dhermes merged commit c54f70d into googleapis:gh-pages Feb 19, 2015
@dhermes dhermes deleted the gh-pages-fix-553 branch February 19, 2015 18:13
vchudnov-g pushed a commit that referenced this pull request Sep 20, 2023
* feat: added speech endpointing setting
feat: added Knowledge Search API

PiperOrigin-RevId: 561112943

Source-Link: googleapis/googleapis@6d69526

Source-Link: googleapis/googleapis-gen@5d3ab0d
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNWQzYWIwZDlmZmRhMjMyZDM2Y2IxNDhjZTE5MmVhODc3MTUxMDQwMiJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Sep 18, 2025
parthea pushed a commit that referenced this pull request Nov 22, 2025
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 473833416

Source-Link: googleapis/googleapis@565a550

Source-Link: googleapis/googleapis-gen@1ee1a06
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMWVlMWEwNmM2ZGUzY2E4Yjg0MzU3MmMxZmRlMDU0OGY4NDIzNjk4OSJ9
parthea pushed a commit that referenced this pull request Nov 24, 2025
…cp/templates/python_library/.kokoro (#669)

Source-Link: googleapis/synthtool@b4fe62e
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:3bf87e47c2173d7eed42714589dc4da2c07c3268610f1e47f8e1a30decbfc7f1

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Nov 24, 2025
…671)

In the legacy data format, the dotted properties stored in Datastore
were not properly padded for missing values.

Fixes #669
parthea pushed a commit that referenced this pull request Mar 2, 2026
In samples/snippets/noxfile.py, tests are run in parallel if pytest-parallel is installed.

This resulted in tests failing in CI that did not fail locally. Because of the use of shared subscription names across tests running in parallel, some tests were deleting a subscription, while others were attempting to receive messages.

This PR removes all subscription test fixtures that created and deleted subscriptions that were reused across tests in samples/snippets/subscriber_test.py, instead repeating the creation logic within each test, with a different subscription name per test, to allow tests to run in parallel without failures.

Also includes unrelated formatting changes due to linting changes.

Fixes #668🦕
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants