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 support for RuntimeConfig API. by tswast · Pull Request #2485 · googleapis/google-cloud-python

Conversation

@tswast

@tswast tswast commented Oct 3, 2016

Copy link
Copy Markdown
Contributor

Supports listing and getting variables, but not the other methods of the RuntimeConfig API, since
I didn't need those, yet.

First step of #2476

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 3, 2016
@tswast tswast mentioned this pull request Oct 3, 2016
Add support for RuntimeConfig API googleapis/google-cloud-java#1305
Closed
dhermes
dhermes suggested changes Oct 3, 2016
View reviewed changes
Comment thread runtimeconfig/README.rst Outdated
- `API Documentation`_

.. _Homepage: https://googlecloudplatform.github.io/google-cloud-python/
.. _API Documentation: http://googlecloudplatform.github.io/google-cloud-python/

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread runtimeconfig/README.rst Outdated
The Google Cloud `RuntimeConfig`_ (`RuntimeConfig API docs`_) API enables
developers to dynamically configure and expose variables through Google Cloud
Platform. In addition, you can also set Watchers and Waiters (not yet supported
by this client library) that will watch for changes to your data and return

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread runtimeconfig/google/cloud/__init__.py Outdated
@@ -0,0 +1,20 @@
# Copyright 2014 Google Inc.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread runtimeconfig/google/cloud/runtimeconfig/__init__.py
# limitations under the License.

"""Google Cloud Runtime Configurator API package."""
from google.cloud.runtimeconfig.client import Client

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread runtimeconfig/google/cloud/runtimeconfig/_helpers.py
"""Extract the config name from a full resource name.

>>> _config_name_from_full_name('projects/my-proj/configs/my-config')
"my-config"

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread runtimeconfig/unit_tests/test__helpers.py
config_name = self._callFUT(PATH)
self.assertEqual(config_name, CONFIG_NAME)

class Test_variable_name_from_full_name(unittest.TestCase):

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread runtimeconfig/unit_tests/test__helpers.py Outdated
CONFIG_NAME = 'CONFIG_NAME'
PROJECT = 'my-project-1234'
PATH = 'projects/%s/configs/%s/variables/%s' % (
PROJECT, CONFIG_NAME, VARIABLE_NAME)

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread runtimeconfig/unit_tests/test__helpers.py Outdated
CONFIG_NAME = 'CONFIG_NAME'
PROJECT = 'my-project-1234'
PATH = 'projects/%s/configs/%s/variables/%s' % (
PROJECT, CONFIG_NAME, VARIABLE_NAME)

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread runtimeconfig/google/cloud/runtimeconfig/variable.py Outdated

import httplib2
import six
from six.moves.urllib.parse import quote

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread runtimeconfig/unit_tests/test_config.py Outdated
def test_ctor(self):
client = _Client(project=self.PROJECT)
config = self._makeOne(name=self.CONFIG_NAME,
client=client)

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tswast

tswast commented Oct 3, 2016

Copy link
Copy Markdown
Contributor Author

Oops, looks like I mixed tabs and spaces and didn't reach 100% coverage on variable.py. Addressing now.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tswast

tswast commented Oct 3, 2016

Copy link
Copy Markdown
Contributor Author

Updated, please take a second look.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tswast

tswast commented Oct 3, 2016

Copy link
Copy Markdown
Contributor Author

I'm getting a lint error

************* Module google.cloud.runtimeconfig._helpers
C: 52, 0: Line too long (89/80) (line-too-long)

The line is

                      'projects/project-name/configs/config-name/variables/variable-name'

I don't think there's anything I can do to shrink it down.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tswast
tswast force-pushed the master branch from 6233948 to 69e1086 Compare October 4, 2016 00:49
@tswast

tswast commented Oct 4, 2016

Copy link
Copy Markdown
Contributor Author

Okay, I think I finally made the linter happy. I shrunk the problematic line down by changing the "names" project-name -> proj-name, config-name -> cfg-name

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

dhermes
dhermes reviewed Oct 4, 2016
View reviewed changes
Comment thread runtimeconfig/google/cloud/runtimeconfig/_helpers.py Outdated

# Variables are hierarchical. Each node in the hierarchy is separated by a
# / character.
return '/'.join(parts[5:])

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

dhermes
dhermes reviewed Oct 4, 2016
View reviewed changes
Comment thread runtimeconfig/google/cloud/runtimeconfig/config.py
:rtype: string
:returns: The full name based on project and config names.

:raises: :class:`ValueError` if the config is missing a name.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

dhermes
dhermes reviewed Oct 4, 2016
View reviewed changes
Comment thread runtimeconfig/google/cloud/runtimeconfig/variable.py Outdated
``None`` if the property is not set locally.
"""
value = self._properties.get('updateTime')
if value:

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes

dhermes commented Oct 4, 2016

Copy link
Copy Markdown
Contributor

@tswast RE: a line with a string that's too long (like 'projects/project-name/configs/config-name/variables/variable-name')

You can use an implicit strong concat in Python:

my_var = ('the beginning of the string '
          'and here is some more of it')

RE: Mixing tabs and spaces, please get rid of all tabs. You can check for them via git grep -l $'\t'. If any files have tabs other than

Makefile.bigtable_v2
Makefile.datastore
docs/Makefile
docs/_static/images/favicon.ico
docs/_static/images/gcp-logo-32x32.png
docs/_static/images/gcp-logo.png
system_tests/data/CloudPlatform_128px_Retina.png
system_tests/data/five-point-one-mb-file.zip
system_tests/key.json.enc

then you should find the offending lines via git grep -n $'\t' and get rid of the tabs

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

dhermes
dhermes reviewed Oct 4, 2016
View reviewed changes
Comment thread runtimeconfig/google/cloud/runtimeconfig/variable.py Outdated
except NotFound:
return False

def reload(self, client=None, fields=None):

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

dhermes
dhermes reviewed Oct 4, 2016
View reviewed changes
Comment thread runtimeconfig/unit_tests/test_config.py Outdated
def test_ctor_w_no_name(self):
client = _Client(project=self.PROJECT)
config = self._makeOne(name=None, client=client)
self.assertRaises(ValueError, lambda: config.full_name)

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

dhermes
dhermes reviewed Oct 4, 2016
View reviewed changes
Comment thread runtimeconfig/unit_tests/test_variable.py Outdated
client = _Client(project=self.PROJECT)
config = Config(name=self.CONFIG_NAME, client=client)
variable = self._makeOne(name=None, config=config)
self.assertRaises(ValueError, lambda: variable.full_name)

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

dhermes
dhermes reviewed Oct 4, 2016
View reviewed changes
Comment thread runtimeconfig/unit_tests/test_config.py Outdated
self.assertEqual(len(conn._requested), 1)
req = conn._requested[0]
self.assertEqual(req['method'], 'GET')
self.assertEqual(req['path'], '/%s' % self.CONFIG_PATH)

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tswast
tswast force-pushed the master branch from 40155ca to 602013d Compare October 4, 2016 16:56
@tswast

tswast commented Oct 5, 2016

Copy link
Copy Markdown
Contributor Author

Ping. Please take a second look. I believe I have addressed all open comments.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tswast
tswast force-pushed the master branch from 3e7772e to eed993b Compare October 6, 2016 22:33
@tswast tswast assigned theacodes and dhermes Oct 6, 2016
@tswast
tswast force-pushed the master branch from eed993b to 1f64cf5 Compare October 13, 2016 16:50
@tswast

tswast commented Oct 13, 2016

Copy link
Copy Markdown
Contributor Author

@dhermes @jonparrott Please review. Is this ready to merge? I just rebased against the latest master.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

theacodes
theacodes suggested changes Oct 13, 2016
View reviewed changes

@theacodes theacodes left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tswast there doesn't seem to be any way to create configs or variables, is this intentional because this is just the first step?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread runtimeconfig/README.rst Outdated
See the ``google-cloud-python`` API `RuntimeConfig documentation`_ to learn
how to analyze images using this library.

.. _Vision documentation: https://google-cloud-python.readthedocs.io/en/stable/runtimeconfig-usage.html

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread runtimeconfig/google/cloud/runtimeconfig/client.py Outdated
This will not make an HTTP request; it simply instantiates
a config object owned by this client.

:type config_name: string

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread runtimeconfig/google/cloud/runtimeconfig/config.py
self._properties = {}

def __repr__(self):
return '<Config: %s>' % (self.name,)

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread runtimeconfig/google/cloud/runtimeconfig/config.py
:rtype: string
:returns: The URL path based on project and config names.
"""
return '/%s' % (self.full_name,)

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread runtimeconfig/google/cloud/runtimeconfig/config.py Outdated
This will not make an HTTP request; it simply instantiates
a variable object owned by this config.

:type variable_name: string

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread runtimeconfig/google/cloud/runtimeconfig/variable.py
"""
if not self.name:
raise ValueError('Missing variable name.')
return '%s/variables/%s' % (self.config.full_name, self.name)

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread runtimeconfig/google/cloud/runtimeconfig/variable.py
:rtype: string
:returns: The URL path based on config and variable names.
"""
return '/%s' % (self.full_name,)

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread runtimeconfig/google/cloud/runtimeconfig/variable.py Outdated
def path(self):
"""URL path for the variable's APIs.

:rtype: string

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread runtimeconfig/google/cloud/runtimeconfig/variable.py Outdated
https://cloud.google.com/deployment-manager/runtime-configurator/reference/rest/v1beta1/projects.configs.variables#VariableState

:rtype: string or ``NoneType``
:returns: If set, one of "UPDATED", "DELETED", or

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread runtimeconfig/google/cloud/runtimeconfig/_helpers.py Outdated
"my-config"

:type full_name: string
:param full_name: the full resource name of a config. The full resource

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

tswast added a commit to tswast/google-cloud-python that referenced this pull request Oct 20, 2016
@tswast
Replace string with str in rtypes.
01b494c
Used the command:
ag -l 'rtype: string' | xargs sed -i .bak 's/rtype: string/rtype: str/g'

Based on this comment:
googleapis#2485 (comment)

`str` is a type, `string` is a module.
This was referenced Oct 20, 2016
Replace types string with str. #2579
Merged
Replaces integer with int in types and rtypes. #2580
Merged
@tswast
tswast force-pushed the master branch 2 times, most recently from fa518e1 to da5092b Compare October 24, 2016 16:11
@tswast
Add initial support for RuntimeConfig API.
119a43c
To keep the initial review small, this includes only a minimal set of
features. It supports listing and getting variables, but not the other
methods of the API.
@tswast
tswast force-pushed the master branch from da5092b to 119a43c Compare October 24, 2016 16:30
@tswast

tswast commented Oct 24, 2016

Copy link
Copy Markdown
Contributor Author

@jonparrott @dhermes Please take another look. I believe I have addressed all your comments.

@tswast there doesn't seem to be any way to create configs or variables, is this intentional because this is just the first step?

Yes. I wanted to keep the initial PR as small as possible to start. Plus, dpebot and the other samples I want to create will just need read access, not write access to RuntimeConfig. After this goes in, we can add creates in, if only so that we can create system tests for this. Right now I'm running the following snippets manually to verify that it does what I want:

$ gcloud config configurations activate kittenbot
export GOOGLE_CLOUD_PROJECT=my-project-name
$ python

from google.cloud import runtimeconfig
client = runtimeconfig.Client()
config = client.config('kittenbot')
iterator = config.list_variables()
iterator.update_page()
variables = list(iterator.page)
print(variables)
token = iterator.next_page_token
print(token)

v = config.get_variable('slack-token')
print(v)
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

theacodes
theacodes approved these changes Oct 25, 2016
View reviewed changes
dhermes
dhermes approved these changes Oct 25, 2016
View reviewed changes
@tswast
tswast merged commit a23ca8e into googleapis:master Oct 25, 2016
dhermes added a commit to dhermes/google-cloud-python that referenced this pull request Oct 25, 2016
@dhermes
Fixing b0rken runtimeconfig unit tests.
7f5ac7a
Broken by simultaneous merges of googleapis#2594 and googleapis#2485.
@dhermes dhermes mentioned this pull request Oct 25, 2016
Fixing b0rken runtimeconfig unit tests. #2612
Merged
@dhermes dhermes mentioned this pull request Nov 14, 2016
Upgrading core to version to 0.21.0. #2733
Merged
@dhermes dhermes mentioned this pull request Dec 9, 2016
Update versions for mega-release. #2846
Merged
richkadel pushed a commit to richkadel/google-cloud-python that referenced this pull request May 6, 2017
@tswast
Replace string with str in rtypes.
1d2204a
Used the command:
ag -l 'rtype: string' | xargs sed -i .bak 's/rtype: string/rtype: str/g'

Based on this comment:
googleapis#2485 (comment)

`str` is a type, `string` is a module.
richkadel pushed a commit to richkadel/google-cloud-python that referenced this pull request May 6, 2017
@tswast
Merge pull request googleapis#2485 from tswast/master
0258fb7
Add support for RuntimeConfig API.
richkadel pushed a commit to richkadel/google-cloud-python that referenced this pull request May 6, 2017
@dhermes
Fixing b0rken runtimeconfig unit tests.
e43dd61
Broken by simultaneous merges of googleapis#2594 and googleapis#2485.
@theacodes theacodes unassigned dhermes Sep 28, 2018
plamut pushed a commit to googleapis/python-pubsub that referenced this pull request Jan 31, 2020
@tswast
Replace string with str in rtypes.
d0a8a6d
Used the command:
ag -l 'rtype: string' | xargs sed -i .bak 's/rtype: string/rtype: str/g'

Based on this comment:
googleapis/google-cloud-python#2485 (comment)

`str` is a type, `string` is a module.
crwilcox pushed a commit to googleapis/python-storage that referenced this pull request Jan 31, 2020
@tswast
Replace string with str in rtypes.
3c59279
Used the command:
ag -l 'rtype: string' | xargs sed -i .bak 's/rtype: string/rtype: str/g'

Based on this comment:
googleapis/google-cloud-python#2485 (comment)

`str` is a type, `string` is a module.
busunkim96 pushed a commit to googleapis/python-dns that referenced this pull request Jan 31, 2020
@tswast
Replace string with str in rtypes.
b6b4d85
Used the command:
ag -l 'rtype: string' | xargs sed -i .bak 's/rtype: string/rtype: str/g'

Based on this comment:
googleapis/google-cloud-python#2485 (comment)

`str` is a type, `string` is a module.
plamut pushed a commit to googleapis/python-bigquery that referenced this pull request Feb 4, 2020
@tswast
Replace string with str in rtypes.
aeacebb
Used the command:
ag -l 'rtype: string' | xargs sed -i .bak 's/rtype: string/rtype: str/g'

Based on this comment:
googleapis/google-cloud-python#2485 (comment)

`str` is a type, `string` is a module.
plamut pushed a commit to googleapis/python-monitoring that referenced this pull request Feb 5, 2020
@tswast
Replace string with str in rtypes.
ba063b0
Used the command:
ag -l 'rtype: string' | xargs sed -i .bak 's/rtype: string/rtype: str/g'

Based on this comment:
googleapis/google-cloud-python#2485 (comment)

`str` is a type, `string` is a module.
crwilcox pushed a commit to googleapis/python-datastore that referenced this pull request Feb 6, 2020
@tswast
Replace string with str in rtypes.
b7aa63b
Used the command:
ag -l 'rtype: string' | xargs sed -i .bak 's/rtype: string/rtype: str/g'

Based on this comment:
googleapis/google-cloud-python#2485 (comment)

`str` is a type, `string` is a module.
busunkim96 pushed a commit to googleapis/python-cloud-core that referenced this pull request Feb 7, 2020
@tswast
Replace string with str in rtypes.
c53d8cf
Used the command:
ag -l 'rtype: string' | xargs sed -i .bak 's/rtype: string/rtype: str/g'

Based on this comment:
googleapis/google-cloud-python#2485 (comment)

`str` is a type, `string` is a module.
cojenco pushed a commit to cojenco/python-storage that referenced this pull request Oct 13, 2021
@tswast @cojenco
Replace string with str in rtypes.
07f801f
Used the command:
ag -l 'rtype: string' | xargs sed -i .bak 's/rtype: string/rtype: str/g'

Based on this comment:
googleapis/google-cloud-python#2485 (comment)

`str` is a type, `string` is a module.
cojenco pushed a commit to cojenco/python-storage that referenced this pull request Oct 13, 2021
@tswast @cojenco
Replace string with str in rtypes.
2371581
Used the command:
ag -l 'rtype: string' | xargs sed -i .bak 's/rtype: string/rtype: str/g'

Based on this comment:
googleapis/google-cloud-python#2485 (comment)

`str` is a type, `string` is a module.
parthea pushed a commit that referenced this pull request Oct 21, 2023
@tswast
Replace string with str in rtypes.
a6f94a7
Used the command:
ag -l 'rtype: string' | xargs sed -i .bak 's/rtype: string/rtype: str/g'

Based on this comment:
#2485 (comment)

`str` is a type, `string` is a module.
parthea pushed a commit that referenced this pull request Nov 24, 2025
@dhermes
Fixing b0rken runtimeconfig unit tests.
442751d
Broken by simultaneous merges of #2594 and #2485.
parthea pushed a commit that referenced this pull request Nov 24, 2025
@tswast
Replace string with str in rtypes.
8313472
Used the command:
ag -l 'rtype: string' | xargs sed -i .bak 's/rtype: string/rtype: str/g'

Based on this comment:
#2485 (comment)

`str` is a type, `string` is a module.
parthea pushed a commit that referenced this pull request Nov 24, 2025
@tswast
Replace string with str in rtypes.
fa50f63
Used the command:
ag -l 'rtype: string' | xargs sed -i .bak 's/rtype: string/rtype: str/g'

Based on this comment:
#2485 (comment)

`str` is a type, `string` is a module.
parthea pushed a commit that referenced this pull request Nov 24, 2025
@tswast
Replace string with str in rtypes.
c2bcd4e
Used the command:
ag -l 'rtype: string' | xargs sed -i .bak 's/rtype: string/rtype: str/g'

Based on this comment:
#2485 (comment)

`str` is a type, `string` is a module.
parthea pushed a commit that referenced this pull request Mar 2, 2026
@tswast
Replace string with str in rtypes.
53d4cff
Used the command:
ag -l 'rtype: string' | xargs sed -i .bak 's/rtype: string/rtype: str/g'

Based on this comment:
#2485 (comment)

`str` is a type, `string` is a module.
parthea pushed a commit that referenced this pull request Mar 9, 2026
@tswast
Replace string with str in rtypes.
52c7ffd
Used the command:
ag -l 'rtype: string' | xargs sed -i .bak 's/rtype: string/rtype: str/g'

Based on this comment:
#2485 (comment)

`str` is a type, `string` is a module.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

3 more reviewers
@tseaver tseaver tseaver left review comments
@theacodes theacodes theacodes approved these changes
@dhermes dhermes dhermes approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@theacodes theacodes

Labels

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

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@tswast @dhermes @tseaver @theacodes @googlebot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.