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 — Add 'from_service_account_info' classmethod factory to clients. · Issue #705 · googleapis/gapic-generator-python

This repository was archived by the owner on Aug 25, 2026. It is now read-only.
This repository was archived by the owner on Aug 25, 2026. It is now read-only.

Add 'from_service_account_info' classmethod factory to clients. #705

Copy link
Copy link
Closed
#1133
#706
Closed
Add 'from_service_account_info' classmethod factory to clients.#705
#1133
#706
Copy link
Assignees
tseaver
Labels
type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Description

@tseaver
tseaver
opened on Dec 10, 2020
Issue body actions

Follow-on to #244.

See discussion in googleapis/python-cloud-core#8

The rationale is that some users prefer not to store service account credentials on the filesystem, but instead pass them in via e.g. the environment.

    @classmethod
    def from_service_account_file(cls, info: dict, *args, **kwargs):
        """Creates an instance of this client using the provided credentials info.

        Args:
            info (dict): The service account private key info.
            args: Additional arguments to pass to the constructor.
            kwargs: Additional arguments to pass to the constructor.

        Returns:
            {@api.name}: The constructed client.
        """
        credentials = service_account.Credentials.from_service_account_info(info)
        kwargs["credentials"] = credentials
        return cls(*args, **kwargs)

Activity

  1. tseaver
    added
    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
    on Dec 10, 2020
  2. tseaver
    self-assigned this
    on Dec 10, 2020
  3. tseaver
    added a commit that references this issue on Dec 10, 2020

    feat: add 'from_service_account_info' factory to clients

    This issue will close once commit 6558b6f is merged into the 'main' branch.
    6558b6f
  4. gcf-merge-on-green
    closed this as completedin #706on Dec 16, 2020
  5. gcf-merge-on-green
    added 2 commits that reference this issue on Dec 16, 2020

    feat: add 'from_service_account_info' factory to clients (#706)

    This issue will close once commit 94d5f0c is merged into the 'main' branch.
    94d5f0c

    chore: release 0.38.0 (#710)

    This issue will close once commit edadb22 is merged into the 'main' branch.
    edadb22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @tseaver
    tseaver

Labels

type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

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.