-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
api: runtimeconfigIssues related to the Cloud Runtime Config API API.Issues related to the Cloud Runtime Config API API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.
Description
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.Issues related to the Cloud Runtime Config API API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.