page_size (int) – Optional. The maximum number of variables in each page of results
from this request. Non-positive values are ignored. Defaults
to a sensible value set by the API.
page_token (str) – Optional. If present, return the next batch of variables, using
the value, which must correspond to the nextPageToken value
returned in the previous response. Deprecated: use the pages
property of the returned iterator instead of manually passing
the token.
client (Client) – (Optional) The client to use. If not passed, falls back to the
client stored on the current config.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["Version latestkeyboard_arrow_down\n\n- [0.35.0 (latest)](/python/docs/reference/runtimeconfig/latest/config)\n- [0.34.0](/python/docs/reference/runtimeconfig/0.34.0/config)\n- [0.33.3](/python/docs/reference/runtimeconfig/0.33.3/config)\n- [0.32.6](/python/docs/reference/runtimeconfig/0.32.6/config)\n- [0.31.0](/python/docs/reference/runtimeconfig/0.31.0/config)\n- [0.30.0](/python/docs/reference/runtimeconfig/0.30.0/config)\n- [0.29.2](/python/docs/reference/runtimeconfig/0.29.2/config) \n\nConfiguration\n=============\n\nCreate / interact with Google Cloud RuntimeConfig configs.\n\n### *class* google.cloud.runtimeconfig.config.Config(client, name)\n\nBases: [`object`](https://docs.python.org/3/library/functions.html#object)\n\nA Config resource in the Cloud RuntimeConfig service.\n\nThis consists of metadata and a hierarchy of variables.\n\nSee\n\u003chttps://cloud.google.com/deployment-manager/runtime-configurator/reference/rest/v1beta1/projects.configs\u003e\n\n- **Parameters**\n\n - **client** ([`google.cloud.runtimeconfig.client.Client`](/python/docs/reference/runtimeconfig/latest/client#google.cloud.runtimeconfig.client.Client)) -- A client which holds credentials and project configuration\n for the config (which requires a project).\n\n - **name** ([*str*](https://docs.python.org/3/library/stdtypes.html#str)) -- The name of the config.\n\n#### *property* client()\n\nThe client bound to this config.\n\n#### *property* description()\n\nDescription of the config object.\n\nSee\n\u003chttps://cloud.google.com/deployment-manager/runtime-configurator/reference/rest/v1beta1/projects.configs#resource-runtimeconfig\u003e\n\n- **Return type**\n\n str, or `NoneType`\n- **Returns**\n\n the description (None until set from the server).\n\n#### exists(client=None)\n\nDetermines whether or not this config exists.\n\n- **Parameters**\n\n **client** ([`Client`](/python/docs/reference/runtimeconfig/latest/client#google.cloud.runtimeconfig.client.Client)) -- (Optional) The client to use. If not passed, falls back to the\n `client` stored on the current config.\n- **Return type**\n\n [bool](https://docs.python.org/3/library/functions.html#bool)\n- **Returns**\n\n True if the config exists in Cloud Runtime Configurator.\n\n#### *property* full_name()\n\nFully-qualified name of this variable.\n\nExample:\n`projects/my-project/configs/my-config`\n\n- **Return type**\n\n [str](https://docs.python.org/3/library/stdtypes.html#str)\n- **Returns**\n\n The full name based on project and config names.\n- **Raises**\n\n [`ValueError`](https://docs.python.org/3/library/exceptions.html#ValueError) if the config is missing a name.\n\n#### get_variable(variable_name, client=None)\n\nAPI call: get a variable via a `GET` request.\n\nThis will return None if the variable doesn't exist: \n\n \u003e\u003e\u003e from google.cloud import https://cloud.google.com/python/docs/reference/runtimeconfig/latest/\n \u003e\u003e\u003e client = https://cloud.google.com/python/docs/reference/runtimeconfig/latest/.https://cloud.google.com/python/docs/reference/runtimeconfig/latest/google.cloud.runtimeconfig.client.Client.html()\n \u003e\u003e\u003e config = client.https://cloud.google.com/python/docs/reference/runtimeconfig/latest/google.cloud.runtimeconfig.client.Client.html('my-config')\n \u003e\u003e\u003e print(config.https://cloud.google.com/python/docs/reference/runtimeconfig/latest/google.cloud.runtimeconfig.config.Config.html#google_cloud_runtimeconfig_config_Config_get_variable('variable-name'))\n \u003cVariable: my-config, variable-name\u003e\n \u003e\u003e\u003e print(config.https://cloud.google.com/python/docs/reference/runtimeconfig/latest/google.cloud.runtimeconfig.config.Config.html#google_cloud_runtimeconfig_config_Config_get_variable('does-not-exist'))\n None\n\n- **Parameters**\n\n - **variable_name** ([*str*](https://docs.python.org/3/library/stdtypes.html#str)) -- The name of the variable to retrieve.\n\n - **client** ([`Client`](/python/docs/reference/runtimeconfig/latest/client#google.cloud.runtimeconfig.client.Client)) -- (Optional) The client to use. If not passed, falls back to the\n `client` stored on the current config.\n\n- **Return type**\n\n [`google.cloud.runtimeconfig.variable.Variable`](/python/docs/reference/runtimeconfig/latest/variable#google.cloud.runtimeconfig.variable.Variable) or None\n- **Returns**\n\n The variable object if it exists, otherwise None.\n\n#### list_variables(page_size=None, page_token=None, client=None)\n\nAPI call: list variables for this config.\n\nThis only lists variable names, not the values.\n\nSee\n\u003chttps://cloud.google.com/deployment-manager/runtime-configurator/reference/rest/v1beta1/projects.configs.variables/list\u003e\n\n- **Parameters**\n\n - **page_size** ([*int*](https://docs.python.org/3/library/functions.html#int)) -- Optional. The maximum number of variables in each page of results\n from this request. Non-positive values are ignored. Defaults\n to a sensible value set by the API.\n\n - **page_token** ([*str*](https://docs.python.org/3/library/stdtypes.html#str)) -- Optional. If present, return the next batch of variables, using\n the value, which must correspond to the `nextPageToken` value\n returned in the previous response. Deprecated: use the `pages`\n property of the returned iterator instead of manually passing\n the token.\n\n - **client** ([`Client`](/python/docs/reference/runtimeconfig/latest/client#google.cloud.runtimeconfig.client.Client)) -- (Optional) The client to use. If not passed, falls back to the\n `client` stored on the current config.\n\n- **Return type**\n\n [`Iterator`](https://googleapis.dev/python/google-api-core/latest/page_iterator.html#google.api_core.page_iterator.Iterator)\n- **Returns**\n\n Iterator of [`Variable`](/python/docs/reference/runtimeconfig/latest/variable#google.cloud.runtimeconfig.variable.Variable)\n belonging to this project.\n\n#### *property* path()\n\nURL path for the config's APIs.\n\n- **Return type**\n\n [str](https://docs.python.org/3/library/stdtypes.html#str)\n- **Returns**\n\n The URL path based on project and config names.\n\n#### *property* project()\n\nProject bound to the config.\n\n- **Return type**\n\n [str](https://docs.python.org/3/library/stdtypes.html#str)\n- **Returns**\n\n the project (derived from the client).\n\n#### reload(client=None)\n\nAPI call: reload the config via a `GET` request.\n\nThis method will reload the newest data for the config.\n\nSee\n\u003chttps://cloud.google.com/deployment-manager/runtime-configurator/reference/rest/v1beta1/projects.configs/get\u003e\n\n- **Parameters**\n\n **client** ([`google.cloud.runtimeconfig.client.Client`](/python/docs/reference/runtimeconfig/latest/client#google.cloud.runtimeconfig.client.Client)) -- (Optional) The client to use. If not passed, falls back to the\n client stored on the current config.\n\n#### variable(variable_name)\n\nFactory constructor for variable object.\n\n**NOTE**: This will not make an HTTP request; it simply instantiates\na variable object owned by this config.\n\n- **Parameters**\n\n **variable_name** ([*str*](https://docs.python.org/3/library/stdtypes.html#str)) -- The name of the variable to be instantiated.\n- **Return type**\n\n [`google.cloud.runtimeconfig.variable.Variable`](/python/docs/reference/runtimeconfig/latest/variable#google.cloud.runtimeconfig.variable.Variable)\n- **Returns**\n\n The variable object created."]]