GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [Documentation Issue] Public properties are not listed in documentation · Issue #1835 · googleapis/google-cloud-python

[Documentation Issue] Public properties are not listed in documentation #1835

New issue
Copy link
New issue
Copy link
Closed
Closed
[Documentation Issue] Public properties are not listed in documentation#1835
Copy link
Assignees
lukesneeringer
Labels
api: pubsubIssues related to the Pub/Sub API.

Description

@ngelinas
ngelinas
opened on May 30, 2016
Issue body actions

Page Name: pubsub-subscription
Release: 0.14.0

Though the name, topic, ack_deadline and push_endpoint properties are public properties of the subscription object, this is not shown anywhere in the documentation. It is very _Pythonic_ to expose constructor properties as public properties but notating as such in the documentation would be helpful.

The same can be said for topic objects.

Reacted by Tim Sweña (Swast)

Activity

  1. tseaver
    added
    api: pubsubIssues related to the Pub/Sub API.
    docs
    on May 30, 2016
  2. dhermes commented on Jun 7, 2016

    @dhermes
    dhermes
    on Jun 7, 2016
    Contributor
    More actions

    @tseaver What's the cause here? Are these properties just data attributes, or do they have @property? Also, if they are just data attributes, does Sphinx have an Attributes section we could use in the class doc?

  3. tseaver commented on Jun 7, 2016

    @tseaver
    tseaver
    on Jun 7, 2016
    Contributor
    More actions

    Defined via @property: the docstrings for the resulting descriptors are copied from their getters.

  4. tseaver commented on Jun 7, 2016

    @tseaver
    tseaver
    on Jun 7, 2016
    Contributor
    More actions

    Oops, I spoke in haste/error: name, topic, ack_deadline, and push_endpoint are not properties. To fix this, we would need to do one of two things:

    • Make them properties, backed by private attributes.
    • Give them class-level default values with their own docstrings.
  5. dhermes commented on Jun 7, 2016

    @dhermes
    dhermes
    on Jun 7, 2016
    Contributor
    More actions

    Sphinx provides a directive for instance attributes as well: http://stackoverflow.com/a/8659919/1068170

  6. tseaver commented on Jun 7, 2016

    @tseaver
    tseaver
    on Jun 7, 2016
    Contributor
    More actions

    There is also auto-attribute syntax, which feels nicer than embedding it in the class' docstring.

  7. dhermes commented on Jun 7, 2016

    @dhermes
    dhermes
    on Jun 7, 2016
    Contributor
    More actions

    Wow I didn't realize we could even provide instance attribute docstrings in __init__!

  8. ensonic commented on Feb 21, 2017

    @ensonic
    ensonic
    on Feb 21, 2017
    More actions

    Friendly ping.

    dir(topic)
    ['__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_client', '_require_client', '_timestamp_message', 'batch', 'check_iam_permissions', 'create', 'delete', 'exists', 'from_api_repr', 'full_name', 'get_iam_policy', 'list_subscriptions', 'name', 'project', 'publish', 'set_iam_policy', 'subscription', 'timestamp_messages']

    but still not covered in https://googlecloudplatform.github.io/google-cloud-python/stable/pubsub-topic.html

  9. lukesneeringer
    closed this as completedon Apr 19, 2017
  10. lukesneeringer commented on Apr 19, 2017

    @lukesneeringer
    lukesneeringer
    on Apr 19, 2017
    Contributor
    More actions

    We are in the process of working on a pretty significant change to this API, so for now I would prefer not shore up docs that we are about to need to change anyway.

    I will ensure that the documentation is complete in the rehash.

  11. dhermes commented on Apr 19, 2017

    @dhermes
    dhermes
    on Apr 19, 2017
    Contributor
    More actions

    @lukesneeringer We should probably re-open a "sub-issue" here, namely the idea that class attributes should be documented (especially if they aren't @property-s or constructor arguments)

  12. JustinBeckwith
    assigned
    lukesneeringer
    on Feb 1, 2021
  13. parthea
    added a commit that references this issue on Mar 6, 2026

    chore(deps): update all dependencies (#1835)

    eccc105
  14. parthea
    added a commit that references this issue on Apr 1, 2026

    chore: move `_read_gbq_colab` to top-level `bigframes.pandas` (#1835)

    360f4e2
  15. parthea
    added a commit that references this issue on Sep 8, 2026

    docs: migrate code from googleapis/python-bigquery (#18303)

    23f9a74
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @lukesneeringer
    lukesneeringer

Labels

api: pubsubIssues related to the Pub/Sub API.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.