Client¶
- class ngcsdk.APIClient(*args, **kwargs)¶
Bases:
BaseClient
- property basecommand¶
BaseCommand.
- property cloud_function¶
Cloud Function.
- property organization¶
Organization.
- property registry¶
Registry.
- property storage¶
Storage.
- property users¶
Users.
- class ngcsdk.Client(api_key=None)¶
Bases:
APIClient
- clear_cache()¶
Clear the config cache.
- clear_config()¶
Clear the config.
- configure(
- api_key: str | None = None,
- org_name: str | None = None,
- team_name: str | None = None,
- ace_name: str | None = None,
Set the configuration for the current client.
To clear config, set the config attribute to "no-***".
Example
configure(api_key="no-apikey", org_name="no-org", team_name="no-team", ace_name="no-ace")
Should not be shared between different Client (i.e. not written to Disk).
- current_config()¶
Returns a list of the current configuration. Each item in the returned list is a dictionary with the keys "Key" (name of config attributes), "Value" (value of the config attribute), and "Source" (how the config attribute was set: environment variable, globally,).