From b2ea8deac69077a34f9e2e79f715cc367254cbd7 Mon Sep 17 00:00:00 2001 From: Marvin <41086007+marvin-robot@users.noreply.github.com> Date: Fri, 6 Oct 2023 07:13:19 -0400 Subject: [PATCH] Add `prefect-monte-carlo` `v0.3.0` to block records --- .../prefect-monte-carlo/blocks/v0.3.0.json | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 collections/prefect-monte-carlo/blocks/v0.3.0.json diff --git a/collections/prefect-monte-carlo/blocks/v0.3.0.json b/collections/prefect-monte-carlo/blocks/v0.3.0.json new file mode 100644 index 00000000..d4dbc553 --- /dev/null +++ b/collections/prefect-monte-carlo/blocks/v0.3.0.json @@ -0,0 +1,53 @@ +{ + "prefect-monte-carlo": { + "block_types": { + "monte-carlo-credentials": { + "name": "Monte Carlo Credentials", + "slug": "monte-carlo-credentials", + "logo_url": "https://images.ctfassets.net/gm98wzqotmnx/5OqrPNRdLMvqZzxo9f6Z25/f920dff0f1201fc014b0b083a6d2fdb1/image.png?h=250", + "documentation_url": "https://prefecthq.github.io/prefect-monte-carlo/credentials/#prefect_monte_carlo.credentials.MonteCarloCredentials", + "description": "Block used to manage Monte Carlo authentication. This block is part of the prefect-monte-carlo collection. Install prefect-monte-carlo with `pip install prefect-monte-carlo` to use this block.", + "code_example": "Load stored Monte Carlo credentials:\n```python\nfrom prefect_monte_carlo.credentials import MonteCarloCredentials\nmontecarlo_credentials_block = MonteCarloCredentials.load(\"BLOCK_NAME\")\n```", + "block_schema": { + "checksum": "sha256:f70c3146fd0e2dad64c8b2e89fa562c4e63d16268b61c4ba4917a88f14085df2", + "fields": { + "title": "MonteCarloCredentials", + "description": "Block used to manage Monte Carlo authentication.", + "type": "object", + "properties": { + "api_key": { + "title": "API Key", + "description": "The token to authenticate with Monte Carlo's GraphQL API.", + "type": "string", + "writeOnly": true, + "format": "password" + }, + "api_key_id": { + "title": "API Key ID", + "description": "The ID associated with the Monte Carlo API token.", + "type": "string" + }, + "catalog_url": { + "title": "Monte Carlo catalog URL", + "description": "The URL of the Monte Carlo catalog.", + "default": "https://getmontecarlo.com/catalog", + "type": "string" + } + }, + "required": [ + "api_key", + "api_key_id" + ], + "block_type_slug": "monte-carlo-credentials", + "secret_fields": [ + "api_key" + ], + "block_schema_references": {} + }, + "capabilities": [], + "version": "0.2.0" + } + } + } + } +} \ No newline at end of file