8000 How to create new Configs & Variables ? · Issue #3897 · googleapis/google-cloud-python · GitHub
[go: up one dir, main page]

Skip to content
How to create new Configs & Variables ? #3897
@DazWilkin

Description

@DazWilkin

The service supports and the documentation suggests that Configs and Variables resources creates methods (should) exist. Reviewing the documentation, I'm unable to find (expected?) create methods for these and reviewing the sources, it's unclear how these could be constructed.

Is it me? Or, are these methods missing?

"Create / interact with ... configs"
https://googlecloudplatform.github.io/google-cloud-python/latest/runtimeconfig/config.html

"Create / interact with ... variables"
https://googlecloudplatform.github.io/google-cloud-python/latest/runtimeconfig/variable.html

Confirm

gcloud beta runtime-config configs list \
--project=${PROJECT}
NAME      DESCRIPTION
exists    Description
gcloud beta runtime-config configs variables list \
--config-name=exists \
--project=${PROJECT}
NAME       UPDATE_TIME
exists     2017-08-29T15:03:26.359064036Z

Getters

from google.cloud import runtimeconfig
client = runtimeconfig.Client()

config = client.config("exists")
print (config.exists())
print (config.get_variable("exists").exists())

Results:

True
True

Setters?

config = client.config("create")
print (config.exists())
config.create()
print (config.exists())

Results:

    config.create()
AttributeError: 'Config' object has no attribute 'create'
print (config.exists())
variable = config.variable("test")
variable.create()

Results:

    variable.create()
AttributeError: 'Variable' object has no attribute 'create'

Metadata

Metadata

Assignees

Labels

api: runtimeconfigIssues related to the Cloud Runtime Config API API.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

    0