Skip to content

Commit

Permalink
Fix client credentials being wrong for some reason
Browse files Browse the repository at this point in the history
  • Loading branch information
qTipTip authored and haakonvt committed Sep 5, 2024
1 parent 2cf17ec commit 81d58f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cognite/client/_api/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1220,21 +1220,21 @@ def list(
def create(
self,
name: str | FunctionScheduleWrite,
client_credentials: dict | ClientCredentials,
cron_expression: str | None = None,
function_id: int | None = None,
function_external_id: str | None = None,
client_credentials: dict | ClientCredentials | None = None,
description: str | None = None,
data: dict | None = None,
) -> FunctionSchedule:
"""`Create a schedule associated with a specific project. <https://developer.cognite.com/api#tag/Function-schedules/operation/postFunctionSchedules>`_
Args:
name (str | FunctionScheduleWrite): Name of the schedule or FunctionSchedule object. If a function schedule object is passed, the other arguments are ignored except for the client_credentials argument.
client_credentials (dict | ClientCredentials): Instance of ClientCredentials or a dictionary containing client credentials: 'client_id' and 'client_secret'.
cron_expression (str | None): Cron expression.
cron_expression (str | None): No description.
function_id (int | None): Id of the function to attach the schedule to.
function_external_id (str | None): External id of the function to attach the schedule to. Will be converted to (internal) ID before creating the schedule.
client_credentials (dict | ClientCredentials | None): Instance of ClientCredentials or a dictionary containing client credentials: 'client_id' and 'client_secret'. cron_expression (str | None): Cron expression.
description (str | None): Description of the schedule.
data (dict | None): Data to be passed to the scheduled run.
Expand Down

0 comments on commit 81d58f8

Please sign in to comment.