diff --git a/services/sfs/oas_commit b/services/sfs/oas_commit new file mode 100644 index 000000000..d1a2ca77e --- /dev/null +++ b/services/sfs/oas_commit @@ -0,0 +1 @@ +a49db732c7d696d5c651a2636a824315c1b0da22 diff --git a/services/sfs/src/stackit/sfs/__init__.py b/services/sfs/src/stackit/sfs/__init__.py index b0a80fc97..01434e11b 100644 --- a/services/sfs/src/stackit/sfs/__init__.py +++ b/services/sfs/src/stackit/sfs/__init__.py @@ -7,7 +7,7 @@ API used to create and manage NFS Shares. - The version of the OpenAPI document: 1beta.0.0 + The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -48,7 +48,6 @@ "ListResourcePoolsResponse", "ListShareExportPoliciesResponse", "ListSharesResponse", - "ListSnapshotSchedulesResponse", "PerformanceClass", "ResourcePool", "ResourcePoolPerformanceClass", @@ -57,7 +56,6 @@ "Share", "ShareExportPolicy", "ShareExportPolicyRule", - "SnapshotSchedule", "Status", "UpdateResourcePoolPayload", "UpdateResourcePoolResponse", @@ -141,9 +139,6 @@ from stackit.sfs.models.list_shares_response import ( ListSharesResponse as ListSharesResponse, ) -from stackit.sfs.models.list_snapshot_schedules_response import ( - ListSnapshotSchedulesResponse as ListSnapshotSchedulesResponse, -) from stackit.sfs.models.performance_class import PerformanceClass as PerformanceClass from stackit.sfs.models.resource_pool import ResourcePool as ResourcePool from stackit.sfs.models.resource_pool_performance_class import ( @@ -162,7 +157,6 @@ from stackit.sfs.models.share_export_policy_rule import ( ShareExportPolicyRule as ShareExportPolicyRule, ) -from stackit.sfs.models.snapshot_schedule import SnapshotSchedule as SnapshotSchedule from stackit.sfs.models.status import Status as Status from stackit.sfs.models.update_resource_pool_payload import ( UpdateResourcePoolPayload as UpdateResourcePoolPayload, diff --git a/services/sfs/src/stackit/sfs/api/default_api.py b/services/sfs/src/stackit/sfs/api/default_api.py index f972f47f3..5544d4eec 100644 --- a/services/sfs/src/stackit/sfs/api/default_api.py +++ b/services/sfs/src/stackit/sfs/api/default_api.py @@ -5,7 +5,7 @@ API used to create and manage NFS Shares. - The version of the OpenAPI document: 1beta.0.0 + The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -54,9 +54,6 @@ ListShareExportPoliciesResponse, ) from stackit.sfs.models.list_shares_response import ListSharesResponse -from stackit.sfs.models.list_snapshot_schedules_response import ( - ListSnapshotSchedulesResponse, -) from stackit.sfs.models.update_resource_pool_payload import UpdateResourcePoolPayload from stackit.sfs.models.update_resource_pool_response import UpdateResourcePoolResponse from stackit.sfs.models.update_share_export_policy_payload import ( @@ -345,7 +342,7 @@ def _create_resource_pool_serialize( return self.api_client.param_serialize( method="POST", - resource_path="/v1beta/projects/{projectId}/regions/{region}/resourcePools", + resource_path="/v1/projects/{projectId}/regions/{region}/resourcePools", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -635,7 +632,7 @@ def _create_resource_pool_snapshot_serialize( return self.api_client.param_serialize( method="POST", - resource_path="/v1beta/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/snapshots", + resource_path="/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/snapshots", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -925,7 +922,7 @@ def _create_share_serialize( return self.api_client.param_serialize( method="POST", - resource_path="/v1beta/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares", + resource_path="/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1200,7 +1197,7 @@ def _create_share_export_policy_serialize( return self.api_client.param_serialize( method="POST", - resource_path="/v1beta/projects/{projectId}/regions/{region}/shareExportPolicies", + resource_path="/v1/projects/{projectId}/regions/{region}/shareExportPolicies", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1467,7 +1464,7 @@ def _delete_resource_pool_serialize( return self.api_client.param_serialize( method="DELETE", - resource_path="/v1beta/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}", + resource_path="/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1749,7 +1746,7 @@ def _delete_resource_pool_snapshot_serialize( return self.api_client.param_serialize( method="DELETE", - resource_path="/v1beta/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/snapshots/{snapshotName}", + resource_path="/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/snapshots/{snapshotName}", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2031,7 +2028,7 @@ def _delete_share_serialize( return self.api_client.param_serialize( method="DELETE", - resource_path="/v1beta/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares/{shareId}", + resource_path="/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares/{shareId}", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2298,7 +2295,7 @@ def _delete_share_export_policy_serialize( return self.api_client.param_serialize( method="DELETE", - resource_path="/v1beta/projects/{projectId}/regions/{region}/shareExportPolicies/{policyId}", + resource_path="/v1/projects/{projectId}/regions/{region}/shareExportPolicies/{policyId}", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2565,7 +2562,7 @@ def _get_resource_pool_serialize( return self.api_client.param_serialize( method="GET", - resource_path="/v1beta/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}", + resource_path="/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2847,7 +2844,7 @@ def _get_resource_pool_snapshot_serialize( return self.api_client.param_serialize( method="GET", - resource_path="/v1beta/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/snapshots/{snapshotName}", + resource_path="/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/snapshots/{snapshotName}", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3129,7 +3126,7 @@ def _get_share_serialize( return self.api_client.param_serialize( method="GET", - resource_path="/v1beta/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares/{shareId}", + resource_path="/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares/{shareId}", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3396,7 +3393,7 @@ def _get_share_export_policy_serialize( return self.api_client.param_serialize( method="GET", - resource_path="/v1beta/projects/{projectId}/regions/{region}/shareExportPolicies/{policyId}", + resource_path="/v1/projects/{projectId}/regions/{region}/shareExportPolicies/{policyId}", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3422,7 +3419,7 @@ def list_performance_classes( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ListPerformanceClassesResponse: - """List Resource Performance Classes + """List Resource Pool Performance Classes Lists all performances classes available @@ -3478,7 +3475,7 @@ def list_performance_classes_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[ListPerformanceClassesResponse]: - """List Resource Performance Classes + """List Resource Pool Performance Classes Lists all performances classes available @@ -3534,7 +3531,7 @@ def list_performance_classes_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """List Resource Performance Classes + """List Resource Pool Performance Classes Lists all performances classes available @@ -3609,7 +3606,7 @@ def _list_performance_classes_serialize( return self.api_client.param_serialize( method="GET", - resource_path="/v1beta/resourcePoolPerformanceClasses", + resource_path="/v1/resourcePoolPerformanceClasses", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3876,7 +3873,7 @@ def _list_resource_pool_snapshots_serialize( return self.api_client.param_serialize( method="GET", - resource_path="/v1beta/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/snapshots", + resource_path="/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/snapshots", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4128,7 +4125,7 @@ def _list_resource_pools_serialize( return self.api_client.param_serialize( method="GET", - resource_path="/v1beta/projects/{projectId}/regions/{region}/resourcePools", + resource_path="/v1/projects/{projectId}/regions/{region}/resourcePools", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4380,7 +4377,7 @@ def _list_share_export_policies_serialize( return self.api_client.param_serialize( method="GET", - resource_path="/v1beta/projects/{projectId}/regions/{region}/shareExportPolicies", + resource_path="/v1/projects/{projectId}/regions/{region}/shareExportPolicies", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4647,244 +4644,7 @@ def _list_shares_serialize( return self.api_client.param_serialize( method="GET", - resource_path="/v1beta/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares", - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth, - ) - - @validate_call - def list_snapshot_schedules( - self, - project_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]], - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ListSnapshotSchedulesResponse: - """List Snapshot Schedules - - Lists snapshot schedules - - :param project_id: (required) - :type project_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._list_snapshot_schedules_serialize( - project_id=project_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index, - ) - - _response_types_map: Dict[str, Optional[str]] = { - "200": "ListSnapshotSchedulesResponse", - "400": "ValidationError", - "401": "str", - "500": "Error", - } - response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - @validate_call - def list_snapshot_schedules_with_http_info( - self, - project_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]], - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ListSnapshotSchedulesResponse]: - """List Snapshot Schedules - - Lists snapshot schedules - - :param project_id: (required) - :type project_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._list_snapshot_schedules_serialize( - project_id=project_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index, - ) - - _response_types_map: Dict[str, Optional[str]] = { - "200": "ListSnapshotSchedulesResponse", - "400": "ValidationError", - "401": "str", - "500": "Error", - } - response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - @validate_call - def list_snapshot_schedules_without_preload_content( - self, - project_id: StrictStr, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]], - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """List Snapshot Schedules - - Lists snapshot schedules - - :param project_id: (required) - :type project_id: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._list_snapshot_schedules_serialize( - project_id=project_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index, - ) - - _response_types_map: Dict[str, Optional[str]] = { - "200": "ListSnapshotSchedulesResponse", - "400": "ValidationError", - "401": "str", - "500": "Error", - } - response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) - return response_data.response - - def _list_snapshot_schedules_serialize( - self, - project_id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = {} - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if project_id is not None: - _path_params["projectId"] = project_id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - # set the HTTP header `Accept` - if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept( - ["application/json", "application/problem+json", "text/plain"] - ) - - # authentication setting - _auth_settings: List[str] = [] - - return self.api_client.param_serialize( - method="GET", - resource_path="/v1beta/projects/{projectId}/snapshotSchedules", + resource_path="/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5174,7 +4934,7 @@ def _update_resource_pool_serialize( return self.api_client.param_serialize( method="PATCH", - resource_path="/v1beta/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}", + resource_path="/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5479,7 +5239,7 @@ def _update_share_serialize( return self.api_client.param_serialize( method="PATCH", - resource_path="/v1beta/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares/{shareId}", + resource_path="/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares/{shareId}", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5769,7 +5529,7 @@ def _update_share_export_policy_serialize( return self.api_client.param_serialize( method="PATCH", - resource_path="/v1beta/projects/{projectId}/regions/{region}/shareExportPolicies/{policyId}", + resource_path="/v1/projects/{projectId}/regions/{region}/shareExportPolicies/{policyId}", path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/services/sfs/src/stackit/sfs/api_client.py b/services/sfs/src/stackit/sfs/api_client.py index a136cb798..d257a64bc 100644 --- a/services/sfs/src/stackit/sfs/api_client.py +++ b/services/sfs/src/stackit/sfs/api_client.py @@ -5,7 +5,7 @@ API used to create and manage NFS Shares. - The version of the OpenAPI document: 1beta.0.0 + The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/services/sfs/src/stackit/sfs/configuration.py b/services/sfs/src/stackit/sfs/configuration.py index cc41bbf36..46782a458 100644 --- a/services/sfs/src/stackit/sfs/configuration.py +++ b/services/sfs/src/stackit/sfs/configuration.py @@ -5,7 +5,7 @@ API used to create and manage NFS Shares. - The version of the OpenAPI document: 1beta.0.0 + The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/services/sfs/src/stackit/sfs/exceptions.py b/services/sfs/src/stackit/sfs/exceptions.py index e48ff1519..e87acd73d 100644 --- a/services/sfs/src/stackit/sfs/exceptions.py +++ b/services/sfs/src/stackit/sfs/exceptions.py @@ -5,7 +5,7 @@ API used to create and manage NFS Shares. - The version of the OpenAPI document: 1beta.0.0 + The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/services/sfs/src/stackit/sfs/models/__init__.py b/services/sfs/src/stackit/sfs/models/__init__.py index da17ecef0..9afc45cb8 100644 --- a/services/sfs/src/stackit/sfs/models/__init__.py +++ b/services/sfs/src/stackit/sfs/models/__init__.py @@ -6,7 +6,7 @@ API used to create and manage NFS Shares. - The version of the OpenAPI document: 1beta.0.0 + The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -54,9 +54,6 @@ ListShareExportPoliciesResponse, ) from stackit.sfs.models.list_shares_response import ListSharesResponse -from stackit.sfs.models.list_snapshot_schedules_response import ( - ListSnapshotSchedulesResponse, -) from stackit.sfs.models.performance_class import PerformanceClass from stackit.sfs.models.resource_pool import ResourcePool from stackit.sfs.models.resource_pool_performance_class import ( @@ -67,7 +64,6 @@ from stackit.sfs.models.share import Share from stackit.sfs.models.share_export_policy import ShareExportPolicy from stackit.sfs.models.share_export_policy_rule import ShareExportPolicyRule -from stackit.sfs.models.snapshot_schedule import SnapshotSchedule from stackit.sfs.models.status import Status from stackit.sfs.models.update_resource_pool_payload import UpdateResourcePoolPayload from stackit.sfs.models.update_resource_pool_response import UpdateResourcePoolResponse diff --git a/services/sfs/src/stackit/sfs/models/create_resource_pool_payload.py b/services/sfs/src/stackit/sfs/models/create_resource_pool_payload.py index bbc012ae8..6ed2010f8 100644 --- a/services/sfs/src/stackit/sfs/models/create_resource_pool_payload.py +++ b/services/sfs/src/stackit/sfs/models/create_resource_pool_payload.py @@ -5,7 +5,7 @@ API used to create and manage NFS Shares. - The version of the OpenAPI document: 1beta.0.0 + The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -33,11 +33,8 @@ class CreateResourcePoolPayload(BaseModel): CreateResourcePoolPayload """ # noqa: E501 - availability_zone: Optional[StrictStr] = Field( - default=None, description="Availability zone", alias="availabilityZone" - ) - ip_acl: Optional[List[StrictStr]] = Field( - default=None, + availability_zone: StrictStr = Field(description="Availability zone", alias="availabilityZone") + ip_acl: List[StrictStr] = Field( description='List of IPs that can mount the Resource Pool in read-only; IPs must have a subnet mask (e.g. "172.16.0.0/24" for a range of IPs, or "172.16.0.250/32" for a specific IP)', alias="ipAcl", ) @@ -45,15 +42,10 @@ class CreateResourcePoolPayload(BaseModel): default=None, description="An optional object that represents the labels associated with the resource pool keys are validated using the following regex '^[\\\\p{Ll}][\\\\p{Ll}\\\\p{N}_-]*$' and cannot be empty values are validated using the following regex '^[\\\\p{Ll}\\\\p{N}_-]*$'", ) - name: Optional[StrictStr] = Field(default=None, description="Name of the Resource Pool") - performance_class: Optional[StrictStr] = Field( - default=None, description="Name of the performance class", alias="performanceClass" - ) - size_gigabytes: Optional[StrictInt] = Field( - default=None, description="Size of the Resource Pool (unit: gibibytes)", alias="sizeGigabytes" - ) - snapshot_schedule_name: Optional[StrictStr] = Field( - default=None, description="(optional) Name of the Snapshot Schedule to use", alias="snapshotScheduleName" + name: StrictStr = Field(description="Name of the Resource Pool") + performance_class: StrictStr = Field(description="Name of the performance class", alias="performanceClass") + size_gigabytes: StrictInt = Field( + description="Size of the Resource Pool (unit: gibibytes)", alias="sizeGigabytes" ) snapshots_are_visible: Optional[StrictBool] = Field( default=None, @@ -67,7 +59,6 @@ class CreateResourcePoolPayload(BaseModel): "name", "performanceClass", "sizeGigabytes", - "snapshotScheduleName", "snapshotsAreVisible", ] @@ -127,7 +118,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "name": obj.get("name"), "performanceClass": obj.get("performanceClass"), "sizeGigabytes": obj.get("sizeGigabytes"), - "snapshotScheduleName": obj.get("snapshotScheduleName"), "snapshotsAreVisible": obj.get("snapshotsAreVisible"), } ) diff --git a/services/sfs/src/stackit/sfs/models/create_resource_pool_response.py b/services/sfs/src/stackit/sfs/models/create_resource_pool_response.py index b6fe72ef6..772dfc2ff 100644 --- a/services/sfs/src/stackit/sfs/models/create_resource_pool_response.py +++ b/services/sfs/src/stackit/sfs/models/create_resource_pool_response.py @@ -5,7 +5,7 @@ API used to create and manage NFS Shares. - The version of the OpenAPI document: 1beta.0.0 + The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/services/sfs/src/stackit/sfs/models/create_resource_pool_snapshot_payload.py b/services/sfs/src/stackit/sfs/models/create_resource_pool_snapshot_payload.py index db7f757d4..71f34a940 100644 --- a/services/sfs/src/stackit/sfs/models/create_resource_pool_snapshot_payload.py +++ b/services/sfs/src/stackit/sfs/models/create_resource_pool_snapshot_payload.py @@ -5,7 +5,7 @@ API used to create and manage NFS Shares. - The version of the OpenAPI document: 1beta.0.0 + The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/services/sfs/src/stackit/sfs/models/create_resource_pool_snapshot_response.py b/services/sfs/src/stackit/sfs/models/create_resource_pool_snapshot_response.py index e6d0e65b2..9eddbf977 100644 --- a/services/sfs/src/stackit/sfs/models/create_resource_pool_snapshot_response.py +++ b/services/sfs/src/stackit/sfs/models/create_resource_pool_snapshot_response.py @@ -5,7 +5,7 @@ API used to create and manage NFS Shares. - The version of the OpenAPI document: 1beta.0.0 + The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/services/sfs/src/stackit/sfs/models/create_share_export_policy_payload.py b/services/sfs/src/stackit/sfs/models/create_share_export_policy_payload.py index fd0641e4b..87277d660 100644 --- a/services/sfs/src/stackit/sfs/models/create_share_export_policy_payload.py +++ b/services/sfs/src/stackit/sfs/models/create_share_export_policy_payload.py @@ -5,7 +5,7 @@ API used to create and manage NFS Shares. - The version of the OpenAPI document: 1beta.0.0 + The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/services/sfs/src/stackit/sfs/models/create_share_export_policy_request_rule.py b/services/sfs/src/stackit/sfs/models/create_share_export_policy_request_rule.py index 41a10e5e6..7a60bf1fb 100644 --- a/services/sfs/src/stackit/sfs/models/create_share_export_policy_request_rule.py +++ b/services/sfs/src/stackit/sfs/models/create_share_export_policy_request_rule.py @@ -5,7 +5,7 @@ API used to create and manage NFS Shares. - The version of the OpenAPI document: 1beta.0.0 + The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/services/sfs/src/stackit/sfs/models/create_share_export_policy_response.py b/services/sfs/src/stackit/sfs/models/create_share_export_policy_response.py index edeabd7b5..8806c4571 100644 --- a/services/sfs/src/stackit/sfs/models/create_share_export_policy_response.py +++ b/services/sfs/src/stackit/sfs/models/create_share_export_policy_response.py @@ -5,7 +5,7 @@ API used to create and manage NFS Shares. - The version of the OpenAPI document: 1beta.0.0 + The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/services/sfs/src/stackit/sfs/models/create_share_payload.py b/services/sfs/src/stackit/sfs/models/create_share_payload.py index 2885c76d1..fd423c132 100644 --- a/services/sfs/src/stackit/sfs/models/create_share_payload.py +++ b/services/sfs/src/stackit/sfs/models/create_share_payload.py @@ -5,7 +5,7 @@ API used to create and manage NFS Shares. - The version of the OpenAPI document: 1beta.0.0 + The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/services/sfs/src/stackit/sfs/models/create_share_response.py b/services/sfs/src/stackit/sfs/models/create_share_response.py index 346a789ee..c1e797e7a 100644 --- a/services/sfs/src/stackit/sfs/models/create_share_response.py +++ b/services/sfs/src/stackit/sfs/models/create_share_response.py @@ -5,7 +5,7 @@ API used to create and manage NFS Shares. - The version of the OpenAPI document: 1beta.0.0 + The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/services/sfs/src/stackit/sfs/models/error.py b/services/sfs/src/stackit/sfs/models/error.py index 95ff8091d..5c10569ff 100644 --- a/services/sfs/src/stackit/sfs/models/error.py +++ b/services/sfs/src/stackit/sfs/models/error.py @@ -5,7 +5,7 @@ API used to create and manage NFS Shares. - The version of the OpenAPI document: 1beta.0.0 + The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/services/sfs/src/stackit/sfs/models/get_resource_pool_response.py b/services/sfs/src/stackit/sfs/models/get_resource_pool_response.py index 9dbf783c7..0752294f8 100644 --- a/services/sfs/src/stackit/sfs/models/get_resource_pool_response.py +++ b/services/sfs/src/stackit/sfs/models/get_resource_pool_response.py @@ -5,7 +5,7 @@ API used to create and manage NFS Shares. - The version of the OpenAPI document: 1beta.0.0 + The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/services/sfs/src/stackit/sfs/models/get_resource_pool_snapshot_response.py b/services/sfs/src/stackit/sfs/models/get_resource_pool_snapshot_response.py index be0e76530..f041cecb9 100644 --- a/services/sfs/src/stackit/sfs/models/get_resource_pool_snapshot_response.py +++ b/services/sfs/src/stackit/sfs/models/get_resource_pool_snapshot_response.py @@ -5,7 +5,7 @@ API used to create and manage NFS Shares. - The version of the OpenAPI document: 1beta.0.0 + The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/services/sfs/src/stackit/sfs/models/get_share_export_policy_response.py b/services/sfs/src/stackit/sfs/models/get_share_export_policy_response.py index 79c449727..0e87af86b 100644 --- a/services/sfs/src/stackit/sfs/models/get_share_export_policy_response.py +++ b/services/sfs/src/stackit/sfs/models/get_share_export_policy_response.py @@ -5,7 +5,7 @@ API used to create and manage NFS Shares. - The version of the OpenAPI document: 1beta.0.0 + The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/services/sfs/src/stackit/sfs/models/get_share_response.py b/services/sfs/src/stackit/sfs/models/get_share_response.py index 721ba774a..6df7c9fff 100644 --- a/services/sfs/src/stackit/sfs/models/get_share_response.py +++ b/services/sfs/src/stackit/sfs/models/get_share_response.py @@ -5,7 +5,7 @@ API used to create and manage NFS Shares. - The version of the OpenAPI document: 1beta.0.0 + The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/services/sfs/src/stackit/sfs/models/google_protobuf_any.py b/services/sfs/src/stackit/sfs/models/google_protobuf_any.py index 166a7be27..0e1fa318c 100644 --- a/services/sfs/src/stackit/sfs/models/google_protobuf_any.py +++ b/services/sfs/src/stackit/sfs/models/google_protobuf_any.py @@ -5,7 +5,7 @@ API used to create and manage NFS Shares. - The version of the OpenAPI document: 1beta.0.0 + The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/services/sfs/src/stackit/sfs/models/list_performance_classes_response.py b/services/sfs/src/stackit/sfs/models/list_performance_classes_response.py index dcacb3e7c..9cb93fdc1 100644 --- a/services/sfs/src/stackit/sfs/models/list_performance_classes_response.py +++ b/services/sfs/src/stackit/sfs/models/list_performance_classes_response.py @@ -5,7 +5,7 @@ API used to create and manage NFS Shares. - The version of the OpenAPI document: 1beta.0.0 + The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/services/sfs/src/stackit/sfs/models/list_resource_pool_snapshots_response.py b/services/sfs/src/stackit/sfs/models/list_resource_pool_snapshots_response.py index 380503545..056444937 100644 --- a/services/sfs/src/stackit/sfs/models/list_resource_pool_snapshots_response.py +++ b/services/sfs/src/stackit/sfs/models/list_resource_pool_snapshots_response.py @@ -5,7 +5,7 @@ API used to create and manage NFS Shares. - The version of the OpenAPI document: 1beta.0.0 + The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/services/sfs/src/stackit/sfs/models/list_resource_pools_response.py b/services/sfs/src/stackit/sfs/models/list_resource_pools_response.py index 4825c0851..8300e9e88 100644 --- a/services/sfs/src/stackit/sfs/models/list_resource_pools_response.py +++ b/services/sfs/src/stackit/sfs/models/list_resource_pools_response.py @@ -5,7 +5,7 @@ API used to create and manage NFS Shares. - The version of the OpenAPI document: 1beta.0.0 + The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/services/sfs/src/stackit/sfs/models/list_share_export_policies_response.py b/services/sfs/src/stackit/sfs/models/list_share_export_policies_response.py index 0e4910ebf..797e7f543 100644 --- a/services/sfs/src/stackit/sfs/models/list_share_export_policies_response.py +++ b/services/sfs/src/stackit/sfs/models/list_share_export_policies_response.py @@ -5,7 +5,7 @@ API used to create and manage NFS Shares. - The version of the OpenAPI document: 1beta.0.0 + The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/services/sfs/src/stackit/sfs/models/list_shares_response.py b/services/sfs/src/stackit/sfs/models/list_shares_response.py index 0b0529695..958716e6e 100644 --- a/services/sfs/src/stackit/sfs/models/list_shares_response.py +++ b/services/sfs/src/stackit/sfs/models/list_shares_response.py @@ -5,7 +5,7 @@ API used to create and manage NFS Shares. - The version of the OpenAPI document: 1beta.0.0 + The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/services/sfs/src/stackit/sfs/models/list_snapshot_schedules_response.py b/services/sfs/src/stackit/sfs/models/list_snapshot_schedules_response.py deleted file mode 100644 index 96a18b48e..000000000 --- a/services/sfs/src/stackit/sfs/models/list_snapshot_schedules_response.py +++ /dev/null @@ -1,100 +0,0 @@ -# coding: utf-8 - -""" - STACKIT File Storage (SFS) - - API used to create and manage NFS Shares. - - The version of the OpenAPI document: 1beta.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - -from __future__ import annotations - -import json -import pprint -from typing import Any, ClassVar, Dict, List, Optional, Set - -from pydantic import BaseModel, ConfigDict, Field -from typing_extensions import Self - -from stackit.sfs.models.snapshot_schedule import SnapshotSchedule - - -class ListSnapshotSchedulesResponse(BaseModel): - """ - ListSnapshotSchedulesResponse - """ # noqa: E501 - - snapshot_schedules: Optional[List[SnapshotSchedule]] = Field( - default=None, description="List of Snapshot Schedules", alias="snapshotSchedules" - ) - __properties: ClassVar[List[str]] = ["snapshotSchedules"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ListSnapshotSchedulesResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in snapshot_schedules (list) - _items = [] - if self.snapshot_schedules: - for _item in self.snapshot_schedules: - if _item: - _items.append(_item.to_dict()) - _dict["snapshotSchedules"] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ListSnapshotSchedulesResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate( - { - "snapshotSchedules": ( - [SnapshotSchedule.from_dict(_item) for _item in obj["snapshotSchedules"]] - if obj.get("snapshotSchedules") is not None - else None - ) - } - ) - return _obj diff --git a/services/sfs/src/stackit/sfs/models/performance_class.py b/services/sfs/src/stackit/sfs/models/performance_class.py index 5209423a5..0908a9dea 100644 --- a/services/sfs/src/stackit/sfs/models/performance_class.py +++ b/services/sfs/src/stackit/sfs/models/performance_class.py @@ -5,7 +5,7 @@ API used to create and manage NFS Shares. - The version of the OpenAPI document: 1beta.0.0 + The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/services/sfs/src/stackit/sfs/models/resource_pool.py b/services/sfs/src/stackit/sfs/models/resource_pool.py index 6f18c1754..c89b6af87 100644 --- a/services/sfs/src/stackit/sfs/models/resource_pool.py +++ b/services/sfs/src/stackit/sfs/models/resource_pool.py @@ -5,7 +5,7 @@ API used to create and manage NFS Shares. - The version of the OpenAPI document: 1beta.0.0 + The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -34,7 +34,6 @@ ResourcePoolPerformanceClass, ) from stackit.sfs.models.resource_pool_space import ResourcePoolSpace -from stackit.sfs.models.snapshot_schedule import SnapshotSchedule class ResourcePool(BaseModel): @@ -73,7 +72,6 @@ class ResourcePool(BaseModel): size_reducible_at: Optional[datetime] = Field( default=None, description="Time when the size can be reduced again.", alias="sizeReducibleAt" ) - snapshot_schedule: Optional[SnapshotSchedule] = Field(default=None, alias="snapshotSchedule") snapshots_are_visible: Optional[StrictBool] = Field( default=None, description="Whether the .snapshot directory is visible when mounting the resource pool. Setting this value to false might prevent you from accessing the snapshots (e.g. for security reasons). Additionally, the access to the snapshots is always controlled by the export policy of the resource pool. That means, if snapshots are visible and the export policy allows for reading the resource pool, then it also allows reading the snapshot of all shares.", @@ -96,7 +94,6 @@ class ResourcePool(BaseModel): "performanceClass", "performanceClassDowngradableAt", "sizeReducibleAt", - "snapshotSchedule", "snapshotsAreVisible", "space", "state", @@ -181,9 +178,6 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of performance_class if self.performance_class: _dict["performanceClass"] = self.performance_class.to_dict() - # override the default output from pydantic by calling `to_dict()` of snapshot_schedule - if self.snapshot_schedule: - _dict["snapshotSchedule"] = self.snapshot_schedule.to_dict() # override the default output from pydantic by calling `to_dict()` of space if self.space: _dict["space"] = self.space.to_dict() @@ -215,11 +209,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: ), "performanceClassDowngradableAt": obj.get("performanceClassDowngradableAt"), "sizeReducibleAt": obj.get("sizeReducibleAt"), - "snapshotSchedule": ( - SnapshotSchedule.from_dict(obj["snapshotSchedule"]) - if obj.get("snapshotSchedule") is not None - else None - ), "snapshotsAreVisible": obj.get("snapshotsAreVisible"), "space": ResourcePoolSpace.from_dict(obj["space"]) if obj.get("space") is not None else None, "state": obj.get("state"), diff --git a/services/sfs/src/stackit/sfs/models/resource_pool_performance_class.py b/services/sfs/src/stackit/sfs/models/resource_pool_performance_class.py index 635fbba83..1cd0e593a 100644 --- a/services/sfs/src/stackit/sfs/models/resource_pool_performance_class.py +++ b/services/sfs/src/stackit/sfs/models/resource_pool_performance_class.py @@ -5,7 +5,7 @@ API used to create and manage NFS Shares. - The version of the OpenAPI document: 1beta.0.0 + The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/services/sfs/src/stackit/sfs/models/resource_pool_snapshot.py b/services/sfs/src/stackit/sfs/models/resource_pool_snapshot.py index 47cafb08b..32920e169 100644 --- a/services/sfs/src/stackit/sfs/models/resource_pool_snapshot.py +++ b/services/sfs/src/stackit/sfs/models/resource_pool_snapshot.py @@ -5,7 +5,7 @@ API used to create and manage NFS Shares. - The version of the OpenAPI document: 1beta.0.0 + The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/services/sfs/src/stackit/sfs/models/resource_pool_space.py b/services/sfs/src/stackit/sfs/models/resource_pool_space.py index 05f03d8f4..85b67770e 100644 --- a/services/sfs/src/stackit/sfs/models/resource_pool_space.py +++ b/services/sfs/src/stackit/sfs/models/resource_pool_space.py @@ -5,7 +5,7 @@ API used to create and manage NFS Shares. - The version of the OpenAPI document: 1beta.0.0 + The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -40,12 +40,22 @@ class ResourcePoolSpace(BaseModel): size_gigabytes: Optional[StrictInt] = Field( default=None, description="Size of the Resource Pool in Gibibytes.", alias="sizeGigabytes" ) + used_by_snapshots_gigabytes: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, + description="Used space by snapshots (only available when retrieving a single Resource Pool by ID)", + alias="usedBySnapshotsGigabytes", + ) used_gigabytes: Optional[Union[StrictFloat, StrictInt]] = Field( default=None, description="Used space of the Resource Pool (only available when retrieving a single Resource Pool by ID)", alias="usedGigabytes", ) - __properties: ClassVar[List[str]] = ["availableGigabytes", "sizeGigabytes", "usedGigabytes"] + __properties: ClassVar[List[str]] = [ + "availableGigabytes", + "sizeGigabytes", + "usedBySnapshotsGigabytes", + "usedGigabytes", + ] model_config = ConfigDict( populate_by_name=True, @@ -89,6 +99,11 @@ def to_dict(self) -> Dict[str, Any]: if self.available_gigabytes is None and "available_gigabytes" in self.model_fields_set: _dict["availableGigabytes"] = None + # set to None if used_by_snapshots_gigabytes (nullable) is None + # and model_fields_set contains the field + if self.used_by_snapshots_gigabytes is None and "used_by_snapshots_gigabytes" in self.model_fields_set: + _dict["usedBySnapshotsGigabytes"] = None + # set to None if used_gigabytes (nullable) is None # and model_fields_set contains the field if self.used_gigabytes is None and "used_gigabytes" in self.model_fields_set: @@ -109,6 +124,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: { "availableGigabytes": obj.get("availableGigabytes"), "sizeGigabytes": obj.get("sizeGigabytes"), + "usedBySnapshotsGigabytes": obj.get("usedBySnapshotsGigabytes"), "usedGigabytes": obj.get("usedGigabytes"), } ) diff --git a/services/sfs/src/stackit/sfs/models/share.py b/services/sfs/src/stackit/sfs/models/share.py index 3230d3a7e..4ed6f38ad 100644 --- a/services/sfs/src/stackit/sfs/models/share.py +++ b/services/sfs/src/stackit/sfs/models/share.py @@ -5,7 +5,7 @@ API used to create and manage NFS Shares. - The version of the OpenAPI document: 1beta.0.0 + The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/services/sfs/src/stackit/sfs/models/share_export_policy.py b/services/sfs/src/stackit/sfs/models/share_export_policy.py index acf622f77..32fa3661b 100644 --- a/services/sfs/src/stackit/sfs/models/share_export_policy.py +++ b/services/sfs/src/stackit/sfs/models/share_export_policy.py @@ -5,7 +5,7 @@ API used to create and manage NFS Shares. - The version of the OpenAPI document: 1beta.0.0 + The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/services/sfs/src/stackit/sfs/models/share_export_policy_rule.py b/services/sfs/src/stackit/sfs/models/share_export_policy_rule.py index 0489dd4b9..63f7bbfac 100644 --- a/services/sfs/src/stackit/sfs/models/share_export_policy_rule.py +++ b/services/sfs/src/stackit/sfs/models/share_export_policy_rule.py @@ -5,7 +5,7 @@ API used to create and manage NFS Shares. - The version of the OpenAPI document: 1beta.0.0 + The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/services/sfs/src/stackit/sfs/models/snapshot_schedule.py b/services/sfs/src/stackit/sfs/models/snapshot_schedule.py deleted file mode 100644 index c39999338..000000000 --- a/services/sfs/src/stackit/sfs/models/snapshot_schedule.py +++ /dev/null @@ -1,85 +0,0 @@ -# coding: utf-8 - -""" - STACKIT File Storage (SFS) - - API used to create and manage NFS Shares. - - The version of the OpenAPI document: 1beta.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - -from __future__ import annotations - -import json -import pprint -from typing import Any, ClassVar, Dict, List, Optional, Set - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing_extensions import Self - - -class SnapshotSchedule(BaseModel): - """ - SnapshotSchedule - """ # noqa: E501 - - cron: Optional[StrictStr] = Field( - default=None, - description="Cron of the Snapshot Schedule (follows the cron schedule expression in Unix-like systems)", - ) - name: Optional[StrictStr] = Field(default=None, description="Name of the Snapshot Schedule") - __properties: ClassVar[List[str]] = ["cron", "name"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SnapshotSchedule from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SnapshotSchedule from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({"cron": obj.get("cron"), "name": obj.get("name")}) - return _obj diff --git a/services/sfs/src/stackit/sfs/models/status.py b/services/sfs/src/stackit/sfs/models/status.py index 42535aa38..512300c4c 100644 --- a/services/sfs/src/stackit/sfs/models/status.py +++ b/services/sfs/src/stackit/sfs/models/status.py @@ -5,7 +5,7 @@ API used to create and manage NFS Shares. - The version of the OpenAPI document: 1beta.0.0 + The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/services/sfs/src/stackit/sfs/models/update_resource_pool_payload.py b/services/sfs/src/stackit/sfs/models/update_resource_pool_payload.py index 2e259d654..809a42f9b 100644 --- a/services/sfs/src/stackit/sfs/models/update_resource_pool_payload.py +++ b/services/sfs/src/stackit/sfs/models/update_resource_pool_payload.py @@ -5,7 +5,7 @@ API used to create and manage NFS Shares. - The version of the OpenAPI document: 1beta.0.0 + The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -48,10 +48,10 @@ class UpdateResourcePoolPayload(BaseModel): size_gigabytes: Optional[StrictInt] = Field( default=None, description="(optional) Size of the Resource Pool (unit: gigabytes)", alias="sizeGigabytes" ) - snapshot_schedule_name: Optional[StrictStr] = Field( + snapshot_policy_id: Optional[StrictStr] = Field( default=None, - description="(optional) Name of the Snapshot Schedule to use If not set, the Snapshot Schedule is not updated If set to an empty string, the Snapshot Schedule is removed", - alias="snapshotScheduleName", + description="(optional) ID of the Snapshot Policy to use If not set, the Snapshot Policy is not updated If set to an empty string, the Snapshot Policy is removed", + alias="snapshotPolicyId", ) snapshots_are_visible: Optional[StrictBool] = Field( default=None, @@ -63,7 +63,7 @@ class UpdateResourcePoolPayload(BaseModel): "labels", "performanceClass", "sizeGigabytes", - "snapshotScheduleName", + "snapshotPolicyId", "snapshotsAreVisible", ] @@ -126,7 +126,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "labels": obj.get("labels"), "performanceClass": obj.get("performanceClass"), "sizeGigabytes": obj.get("sizeGigabytes"), - "snapshotScheduleName": obj.get("snapshotScheduleName"), + "snapshotPolicyId": obj.get("snapshotPolicyId"), "snapshotsAreVisible": obj.get("snapshotsAreVisible"), } ) diff --git a/services/sfs/src/stackit/sfs/models/update_resource_pool_response.py b/services/sfs/src/stackit/sfs/models/update_resource_pool_response.py index 6cdf251fa..455bea7aa 100644 --- a/services/sfs/src/stackit/sfs/models/update_resource_pool_response.py +++ b/services/sfs/src/stackit/sfs/models/update_resource_pool_response.py @@ -5,7 +5,7 @@ API used to create and manage NFS Shares. - The version of the OpenAPI document: 1beta.0.0 + The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/services/sfs/src/stackit/sfs/models/update_share_export_policy_body_rule.py b/services/sfs/src/stackit/sfs/models/update_share_export_policy_body_rule.py index 8c63fb20e..d9bf536c0 100644 --- a/services/sfs/src/stackit/sfs/models/update_share_export_policy_body_rule.py +++ b/services/sfs/src/stackit/sfs/models/update_share_export_policy_body_rule.py @@ -5,7 +5,7 @@ API used to create and manage NFS Shares. - The version of the OpenAPI document: 1beta.0.0 + The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/services/sfs/src/stackit/sfs/models/update_share_export_policy_payload.py b/services/sfs/src/stackit/sfs/models/update_share_export_policy_payload.py index 0c3c02c64..b201be55e 100644 --- a/services/sfs/src/stackit/sfs/models/update_share_export_policy_payload.py +++ b/services/sfs/src/stackit/sfs/models/update_share_export_policy_payload.py @@ -5,7 +5,7 @@ API used to create and manage NFS Shares. - The version of the OpenAPI document: 1beta.0.0 + The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/services/sfs/src/stackit/sfs/models/update_share_export_policy_response.py b/services/sfs/src/stackit/sfs/models/update_share_export_policy_response.py index 050e91358..985c3e745 100644 --- a/services/sfs/src/stackit/sfs/models/update_share_export_policy_response.py +++ b/services/sfs/src/stackit/sfs/models/update_share_export_policy_response.py @@ -5,7 +5,7 @@ API used to create and manage NFS Shares. - The version of the OpenAPI document: 1beta.0.0 + The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/services/sfs/src/stackit/sfs/models/update_share_payload.py b/services/sfs/src/stackit/sfs/models/update_share_payload.py index 4f5c21059..e4a42f90c 100644 --- a/services/sfs/src/stackit/sfs/models/update_share_payload.py +++ b/services/sfs/src/stackit/sfs/models/update_share_payload.py @@ -5,7 +5,7 @@ API used to create and manage NFS Shares. - The version of the OpenAPI document: 1beta.0.0 + The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/services/sfs/src/stackit/sfs/models/update_share_response.py b/services/sfs/src/stackit/sfs/models/update_share_response.py index 24dbfa501..f11f12a56 100644 --- a/services/sfs/src/stackit/sfs/models/update_share_response.py +++ b/services/sfs/src/stackit/sfs/models/update_share_response.py @@ -5,7 +5,7 @@ API used to create and manage NFS Shares. - The version of the OpenAPI document: 1beta.0.0 + The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/services/sfs/src/stackit/sfs/models/validation_error.py b/services/sfs/src/stackit/sfs/models/validation_error.py index 215f2cba2..84496136b 100644 --- a/services/sfs/src/stackit/sfs/models/validation_error.py +++ b/services/sfs/src/stackit/sfs/models/validation_error.py @@ -5,7 +5,7 @@ API used to create and manage NFS Shares. - The version of the OpenAPI document: 1beta.0.0 + The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/services/sfs/src/stackit/sfs/models/validation_error_field.py b/services/sfs/src/stackit/sfs/models/validation_error_field.py index daf2e1f0c..d4fde9a32 100644 --- a/services/sfs/src/stackit/sfs/models/validation_error_field.py +++ b/services/sfs/src/stackit/sfs/models/validation_error_field.py @@ -5,7 +5,7 @@ API used to create and manage NFS Shares. - The version of the OpenAPI document: 1beta.0.0 + The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/services/sfs/src/stackit/sfs/rest.py b/services/sfs/src/stackit/sfs/rest.py index ae68b45bc..731213af1 100644 --- a/services/sfs/src/stackit/sfs/rest.py +++ b/services/sfs/src/stackit/sfs/rest.py @@ -5,7 +5,7 @@ API used to create and manage NFS Shares. - The version of the OpenAPI document: 1beta.0.0 + The version of the OpenAPI document: 1.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually.