From ae50a4d28e17015dca82e9517a9b409e5ef821af Mon Sep 17 00:00:00 2001 From: Adam Fiedler Date: Mon, 14 Apr 2025 16:39:32 +0200 Subject: [PATCH] feat: api risk: low --- gooddata-api-client/docs/AutomationSchedule.md | 2 +- .../docs/JsonApiAutomationInAttributesSchedule.md | 2 +- .../model/automation_schedule.py | 14 ++++++++------ .../json_api_automation_in_attributes_schedule.py | 14 ++++++++------ schemas/gooddata-api-client.json | 12 ++++++++---- schemas/gooddata-metadata-client.json | 12 ++++++++---- 6 files changed, 34 insertions(+), 22 deletions(-) diff --git a/gooddata-api-client/docs/AutomationSchedule.md b/gooddata-api-client/docs/AutomationSchedule.md index 495ba7fa8..4046aaba8 100644 --- a/gooddata-api-client/docs/AutomationSchedule.md +++ b/gooddata-api-client/docs/AutomationSchedule.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cron** | **str** | Cron expression defining the schedule of the automation. The format is SECOND MINUTE HOUR DAY-OF-MONTH MONTH DAY-OF-WEEK (YEAR). The example expression signifies an action every 30 minutes from 9:00 to 17:00 on workdays. | +**timezone** | **str** | Timezone in which the schedule is defined. | **cron_description** | **str** | Human-readable description of the cron expression. | [optional] [readonly] **first_run** | **datetime** | Timestamp of the first scheduled action. If not provided default to the next scheduled time. | [optional] -**timezone** | **str** | Timezone in which the schedule is defined. | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/gooddata-api-client/docs/JsonApiAutomationInAttributesSchedule.md b/gooddata-api-client/docs/JsonApiAutomationInAttributesSchedule.md index adc7a2027..a4a998524 100644 --- a/gooddata-api-client/docs/JsonApiAutomationInAttributesSchedule.md +++ b/gooddata-api-client/docs/JsonApiAutomationInAttributesSchedule.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cron** | **str** | Cron expression defining the schedule of the automation. The format is SECOND MINUTE HOUR DAY-OF-MONTH MONTH DAY-OF-WEEK (YEAR). The example expression signifies an action every 30 minutes from 9:00 to 17:00 on workdays. | +**timezone** | **str** | Timezone in which the schedule is defined. | **cron_description** | **str** | Human-readable description of the cron expression. | [optional] [readonly] **first_run** | **datetime** | Timestamp of the first scheduled action. If not provided default to the next scheduled time. | [optional] -**timezone** | **str** | Timezone in which the schedule is defined. | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/gooddata-api-client/gooddata_api_client/model/automation_schedule.py b/gooddata-api-client/gooddata_api_client/model/automation_schedule.py index fc1589514..391cbce13 100644 --- a/gooddata-api-client/gooddata_api_client/model/automation_schedule.py +++ b/gooddata-api-client/gooddata_api_client/model/automation_schedule.py @@ -89,9 +89,9 @@ def openapi_types(): """ return { 'cron': (str,), # noqa: E501 + 'timezone': (str,), # noqa: E501 'cron_description': (str,), # noqa: E501 'first_run': (datetime,), # noqa: E501 - 'timezone': (str,), # noqa: E501 } @cached_property @@ -101,9 +101,9 @@ def discriminator(): attribute_map = { 'cron': 'cron', # noqa: E501 + 'timezone': 'timezone', # noqa: E501 'cron_description': 'cronDescription', # noqa: E501 'first_run': 'firstRun', # noqa: E501 - 'timezone': 'timezone', # noqa: E501 } read_only_vars = { @@ -114,11 +114,12 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, cron, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, cron, timezone, *args, **kwargs): # noqa: E501 """AutomationSchedule - a model defined in OpenAPI Args: cron (str): Cron expression defining the schedule of the automation. The format is SECOND MINUTE HOUR DAY-OF-MONTH MONTH DAY-OF-WEEK (YEAR). The example expression signifies an action every 30 minutes from 9:00 to 17:00 on workdays. + timezone (str): Timezone in which the schedule is defined. Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -153,7 +154,6 @@ def _from_openapi_data(cls, cron, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) cron_description (str): Human-readable description of the cron expression.. [optional] # noqa: E501 first_run (datetime): Timestamp of the first scheduled action. If not provided default to the next scheduled time.. [optional] # noqa: E501 - timezone (str): Timezone in which the schedule is defined.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -186,6 +186,7 @@ def _from_openapi_data(cls, cron, *args, **kwargs): # noqa: E501 self._visited_composed_classes = _visited_composed_classes + (self.__class__,) self.cron = cron + self.timezone = timezone for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -206,11 +207,12 @@ def _from_openapi_data(cls, cron, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, cron, *args, **kwargs): # noqa: E501 + def __init__(self, cron, timezone, *args, **kwargs): # noqa: E501 """AutomationSchedule - a model defined in OpenAPI Args: cron (str): Cron expression defining the schedule of the automation. The format is SECOND MINUTE HOUR DAY-OF-MONTH MONTH DAY-OF-WEEK (YEAR). The example expression signifies an action every 30 minutes from 9:00 to 17:00 on workdays. + timezone (str): Timezone in which the schedule is defined. Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -245,7 +247,6 @@ def __init__(self, cron, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) cron_description (str): Human-readable description of the cron expression.. [optional] # noqa: E501 first_run (datetime): Timestamp of the first scheduled action. If not provided default to the next scheduled time.. [optional] # noqa: E501 - timezone (str): Timezone in which the schedule is defined.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -276,6 +277,7 @@ def __init__(self, cron, *args, **kwargs): # noqa: E501 self._visited_composed_classes = _visited_composed_classes + (self.__class__,) self.cron = cron + self.timezone = timezone for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/gooddata-api-client/gooddata_api_client/model/json_api_automation_in_attributes_schedule.py b/gooddata-api-client/gooddata_api_client/model/json_api_automation_in_attributes_schedule.py index 0d40d0e9c..d7a62d544 100644 --- a/gooddata-api-client/gooddata_api_client/model/json_api_automation_in_attributes_schedule.py +++ b/gooddata-api-client/gooddata_api_client/model/json_api_automation_in_attributes_schedule.py @@ -89,9 +89,9 @@ def openapi_types(): """ return { 'cron': (str,), # noqa: E501 + 'timezone': (str,), # noqa: E501 'cron_description': (str,), # noqa: E501 'first_run': (datetime,), # noqa: E501 - 'timezone': (str,), # noqa: E501 } @cached_property @@ -101,9 +101,9 @@ def discriminator(): attribute_map = { 'cron': 'cron', # noqa: E501 + 'timezone': 'timezone', # noqa: E501 'cron_description': 'cronDescription', # noqa: E501 'first_run': 'firstRun', # noqa: E501 - 'timezone': 'timezone', # noqa: E501 } read_only_vars = { @@ -114,11 +114,12 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, cron, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, cron, timezone, *args, **kwargs): # noqa: E501 """JsonApiAutomationInAttributesSchedule - a model defined in OpenAPI Args: cron (str): Cron expression defining the schedule of the automation. The format is SECOND MINUTE HOUR DAY-OF-MONTH MONTH DAY-OF-WEEK (YEAR). The example expression signifies an action every 30 minutes from 9:00 to 17:00 on workdays. + timezone (str): Timezone in which the schedule is defined. Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -153,7 +154,6 @@ def _from_openapi_data(cls, cron, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) cron_description (str): Human-readable description of the cron expression.. [optional] # noqa: E501 first_run (datetime): Timestamp of the first scheduled action. If not provided default to the next scheduled time.. [optional] # noqa: E501 - timezone (str): Timezone in which the schedule is defined.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -186,6 +186,7 @@ def _from_openapi_data(cls, cron, *args, **kwargs): # noqa: E501 self._visited_composed_classes = _visited_composed_classes + (self.__class__,) self.cron = cron + self.timezone = timezone for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -206,11 +207,12 @@ def _from_openapi_data(cls, cron, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, cron, *args, **kwargs): # noqa: E501 + def __init__(self, cron, timezone, *args, **kwargs): # noqa: E501 """JsonApiAutomationInAttributesSchedule - a model defined in OpenAPI Args: cron (str): Cron expression defining the schedule of the automation. The format is SECOND MINUTE HOUR DAY-OF-MONTH MONTH DAY-OF-WEEK (YEAR). The example expression signifies an action every 30 minutes from 9:00 to 17:00 on workdays. + timezone (str): Timezone in which the schedule is defined. Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -245,7 +247,6 @@ def __init__(self, cron, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) cron_description (str): Human-readable description of the cron expression.. [optional] # noqa: E501 first_run (datetime): Timestamp of the first scheduled action. If not provided default to the next scheduled time.. [optional] # noqa: E501 - timezone (str): Timezone in which the schedule is defined.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -276,6 +277,7 @@ def __init__(self, cron, *args, **kwargs): # noqa: E501 self._visited_composed_classes = _visited_composed_classes + (self.__class__,) self.cron = cron + self.timezone = timezone for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/schemas/gooddata-api-client.json b/schemas/gooddata-api-client.json index cdbc8c4c5..666f0f8e9 100644 --- a/schemas/gooddata-api-client.json +++ b/schemas/gooddata-api-client.json @@ -1225,7 +1225,8 @@ } }, "required": [ - "cron" + "cron", + "timezone" ], "type": "object" }, @@ -8353,7 +8354,8 @@ } }, "required": [ - "cron" + "cron", + "timezone" ], "type": "object" }, @@ -8615,7 +8617,8 @@ } }, "required": [ - "cron" + "cron", + "timezone" ], "type": "object" }, @@ -8973,7 +8976,8 @@ } }, "required": [ - "cron" + "cron", + "timezone" ], "type": "object" }, diff --git a/schemas/gooddata-metadata-client.json b/schemas/gooddata-metadata-client.json index d8c7f9305..2a05cb305 100644 --- a/schemas/gooddata-metadata-client.json +++ b/schemas/gooddata-metadata-client.json @@ -637,7 +637,8 @@ } }, "required": [ - "cron" + "cron", + "timezone" ], "type": "object" }, @@ -6310,7 +6311,8 @@ } }, "required": [ - "cron" + "cron", + "timezone" ], "type": "object" }, @@ -6572,7 +6574,8 @@ } }, "required": [ - "cron" + "cron", + "timezone" ], "type": "object" }, @@ -6930,7 +6933,8 @@ } }, "required": [ - "cron" + "cron", + "timezone" ], "type": "object" },