From cc997aa37fe0d7a6a1e0d72f7145f0a26dca7329 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Mon, 2 Feb 2026 18:43:42 +0000 Subject: [PATCH 1/2] Generate sfs --- services/sfs/api_default.go | 221 ++---------------- services/sfs/api_default_test.go | 92 ++------ services/sfs/client.go | 4 +- services/sfs/configuration.go | 2 +- .../sfs/model_create_resource_pool_payload.go | 165 ++++--------- ...model_create_resource_pool_payload_test.go | 2 +- .../model_create_resource_pool_response.go | 2 +- ...te_resource_pool_response_resource_pool.go | 51 +--- ...source_pool_response_resource_pool_test.go | 2 +- ...odel_create_resource_pool_response_test.go | 2 +- ...l_create_resource_pool_snapshot_payload.go | 2 +- ...ate_resource_pool_snapshot_payload_test.go | 2 +- ..._create_resource_pool_snapshot_response.go | 2 +- ...napshot_response_resource_pool_snapshot.go | 2 +- ...ot_response_resource_pool_snapshot_test.go | 2 +- ...te_resource_pool_snapshot_response_test.go | 2 +- ...odel_create_share_export_policy_payload.go | 2 +- ...create_share_export_policy_payload_test.go | 2 +- ...create_share_export_policy_request_rule.go | 2 +- ...e_share_export_policy_request_rule_test.go | 2 +- ...del_create_share_export_policy_response.go | 2 +- ...ort_policy_response_share_export_policy.go | 2 +- ...olicy_response_share_export_policy_test.go | 2 +- ...reate_share_export_policy_response_test.go | 2 +- services/sfs/model_create_share_payload.go | 2 +- .../sfs/model_create_share_payload_test.go | 2 +- services/sfs/model_create_share_response.go | 2 +- .../sfs/model_create_share_response_share.go | 2 +- .../model_create_share_response_share_test.go | 2 +- .../sfs/model_create_share_response_test.go | 2 +- services/sfs/model_error.go | 2 +- services/sfs/model_error_test.go | 2 +- .../sfs/model_get_resource_pool_response.go | 2 +- ...et_resource_pool_response_resource_pool.go | 51 +--- ...source_pool_response_resource_pool_test.go | 2 +- .../model_get_resource_pool_response_test.go | 2 +- ...del_get_resource_pool_snapshot_response.go | 2 +- ...napshot_response_resource_pool_snapshot.go | 2 +- ...ot_response_resource_pool_snapshot_test.go | 2 +- ...et_resource_pool_snapshot_response_test.go | 2 +- .../model_get_share_export_policy_response.go | 2 +- ...ort_policy_response_share_export_policy.go | 2 +- ...olicy_response_share_export_policy_test.go | 2 +- ...l_get_share_export_policy_response_test.go | 2 +- services/sfs/model_get_share_response.go | 2 +- .../sfs/model_get_share_response_share.go | 2 +- .../model_get_share_response_share_test.go | 2 +- services/sfs/model_get_share_response_test.go | 2 +- services/sfs/model_google_protobuf_any.go | 2 +- .../sfs/model_google_protobuf_any_test.go | 2 +- ...model_list_performance_classes_response.go | 2 +- ..._list_performance_classes_response_test.go | 2 +- ...l_list_resource_pool_snapshots_response.go | 2 +- ...t_resource_pool_snapshots_response_test.go | 2 +- .../sfs/model_list_resource_pools_response.go | 2 +- ...model_list_resource_pools_response_test.go | 2 +- ...del_list_share_export_policies_response.go | 2 +- ...ist_share_export_policies_response_test.go | 2 +- services/sfs/model_list_shares_response.go | 2 +- .../sfs/model_list_shares_response_test.go | 2 +- .../model_list_snapshot_schedules_response.go | 128 ---------- ...l_list_snapshot_schedules_response_test.go | 11 - services/sfs/model_performance_class.go | 2 +- services/sfs/model_performance_class_test.go | 2 +- services/sfs/model_resource_pool.go | 51 +--- .../model_resource_pool_performance_class.go | 2 +- ...el_resource_pool_performance_class_test.go | 2 +- services/sfs/model_resource_pool_snapshot.go | 2 +- .../sfs/model_resource_pool_snapshot_test.go | 2 +- services/sfs/model_resource_pool_space.go | 2 +- .../sfs/model_resource_pool_space_test.go | 2 +- services/sfs/model_resource_pool_test.go | 2 +- services/sfs/model_share.go | 2 +- services/sfs/model_share_export_policy.go | 2 +- .../sfs/model_share_export_policy_rule.go | 2 +- .../model_share_export_policy_rule_test.go | 2 +- .../sfs/model_share_export_policy_test.go | 2 +- services/sfs/model_share_test.go | 2 +- services/sfs/model_snapshot_schedule.go | 178 -------------- services/sfs/model_snapshot_schedule_test.go | 11 - services/sfs/model_status.go | 2 +- services/sfs/model_status_test.go | 2 +- .../sfs/model_update_resource_pool_payload.go | 51 +--- ...model_update_resource_pool_payload_test.go | 2 +- .../model_update_resource_pool_response.go | 2 +- ...te_resource_pool_response_resource_pool.go | 51 +--- ...source_pool_response_resource_pool_test.go | 2 +- ...odel_update_resource_pool_response_test.go | 2 +- ...el_update_share_export_policy_body_rule.go | 2 +- ...date_share_export_policy_body_rule_test.go | 2 +- ...odel_update_share_export_policy_payload.go | 2 +- ...update_share_export_policy_payload_test.go | 2 +- ...del_update_share_export_policy_response.go | 2 +- ...pdate_share_export_policy_response_test.go | 2 +- services/sfs/model_update_share_payload.go | 2 +- .../sfs/model_update_share_payload_test.go | 2 +- services/sfs/model_update_share_response.go | 2 +- .../sfs/model_update_share_response_share.go | 2 +- .../model_update_share_response_share_test.go | 2 +- .../sfs/model_update_share_response_test.go | 2 +- services/sfs/model_validation_error.go | 2 +- services/sfs/model_validation_error_all_of.go | 2 +- .../sfs/model_validation_error_all_of_test.go | 2 +- services/sfs/model_validation_error_field.go | 2 +- .../sfs/model_validation_error_field_test.go | 2 +- services/sfs/model_validation_error_test.go | 2 +- services/sfs/oas_commit | 2 +- services/sfs/utils.go | 2 +- 108 files changed, 198 insertions(+), 1057 deletions(-) delete mode 100644 services/sfs/model_list_snapshot_schedules_response.go delete mode 100644 services/sfs/model_list_snapshot_schedules_response_test.go delete mode 100644 services/sfs/model_snapshot_schedule.go delete mode 100644 services/sfs/model_snapshot_schedule_test.go diff --git a/services/sfs/api_default.go b/services/sfs/api_default.go index d416d8812..d4c7e6c13 100644 --- a/services/sfs/api_default.go +++ b/services/sfs/api_default.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -293,7 +293,7 @@ type DefaultApi interface { */ GetShareExportPolicyExecute(ctx context.Context, projectId string, region string, policyId string) (*GetShareExportPolicyResponse, error) /* - ListPerformanceClasses List Resource Performance Classes + ListPerformanceClasses List Resource Pool Performance Classes Lists all performances classes available @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @@ -392,24 +392,6 @@ type DefaultApi interface { */ ListSharesExecute(ctx context.Context, projectId string, region string, resourcePoolId string) (*ListSharesResponse, error) - /* - ListSnapshotSchedules List Snapshot Schedules - Lists snapshot schedules - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId - @return ApiListSnapshotSchedulesRequest - */ - ListSnapshotSchedules(ctx context.Context, projectId string) ApiListSnapshotSchedulesRequest - /* - ListSnapshotSchedulesExecute executes the request - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId - @return ListSnapshotSchedulesResponse - - */ - ListSnapshotSchedulesExecute(ctx context.Context, projectId string) (*ListSnapshotSchedulesResponse, error) /* UpdateResourcePool Update Resource Pool Updates a Resource Pool in a project. @@ -552,10 +534,6 @@ type ApiListSharesRequest interface { Execute() (*ListSharesResponse, error) } -type ApiListSnapshotSchedulesRequest interface { - Execute() (*ListSnapshotSchedulesResponse, error) -} - type ApiUpdateResourcePoolRequest interface { UpdateResourcePoolPayload(updateResourcePoolPayload UpdateResourcePoolPayload) ApiUpdateResourcePoolRequest Execute() (*UpdateResourcePoolResponse, error) @@ -604,7 +582,7 @@ func (r CreateResourcePoolRequest) Execute() (*CreateResourcePoolResponse, error return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{region}/resourcePools" + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{region}/resourcePools" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) @@ -774,7 +752,7 @@ func (r CreateResourcePoolSnapshotRequest) Execute() (*CreateResourcePoolSnapsho return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/snapshots" + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/snapshots" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) localVarPath = strings.Replace(localVarPath, "{"+"resourcePoolId"+"}", url.PathEscape(ParameterValueToString(r.resourcePoolId, "resourcePoolId")), -1) @@ -948,7 +926,7 @@ func (r CreateShareRequest) Execute() (*CreateShareResponse, error) { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares" + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) localVarPath = strings.Replace(localVarPath, "{"+"resourcePoolId"+"}", url.PathEscape(ParameterValueToString(r.resourcePoolId, "resourcePoolId")), -1) @@ -1121,7 +1099,7 @@ func (r CreateShareExportPolicyRequest) Execute() (*CreateShareExportPolicyRespo return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{region}/shareExportPolicies" + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{region}/shareExportPolicies" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) @@ -1285,7 +1263,7 @@ func (r DeleteResourcePoolRequest) Execute() (map[string]interface{}, error) { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}" + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) localVarPath = strings.Replace(localVarPath, "{"+"resourcePoolId"+"}", url.PathEscape(ParameterValueToString(r.resourcePoolId, "resourcePoolId")), -1) @@ -1449,7 +1427,7 @@ func (r DeleteResourcePoolSnapshotRequest) Execute() (map[string]interface{}, er return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/snapshots/{snapshotName}" + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/snapshots/{snapshotName}" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) localVarPath = strings.Replace(localVarPath, "{"+"resourcePoolId"+"}", url.PathEscape(ParameterValueToString(r.resourcePoolId, "resourcePoolId")), -1) @@ -1617,7 +1595,7 @@ func (r DeleteShareRequest) Execute() (map[string]interface{}, error) { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares/{shareId}" + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares/{shareId}" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) localVarPath = strings.Replace(localVarPath, "{"+"resourcePoolId"+"}", url.PathEscape(ParameterValueToString(r.resourcePoolId, "resourcePoolId")), -1) @@ -1784,7 +1762,7 @@ func (r DeleteShareExportPolicyRequest) Execute() (map[string]interface{}, error return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{region}/shareExportPolicies/{policyId}" + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{region}/shareExportPolicies/{policyId}" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) localVarPath = strings.Replace(localVarPath, "{"+"policyId"+"}", url.PathEscape(ParameterValueToString(r.policyId, "policyId")), -1) @@ -1947,7 +1925,7 @@ func (r GetResourcePoolRequest) Execute() (*GetResourcePoolResponse, error) { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}" + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) localVarPath = strings.Replace(localVarPath, "{"+"resourcePoolId"+"}", url.PathEscape(ParameterValueToString(r.resourcePoolId, "resourcePoolId")), -1) @@ -2111,7 +2089,7 @@ func (r GetResourcePoolSnapshotRequest) Execute() (*GetResourcePoolSnapshotRespo return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/snapshots/{snapshotName}" + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/snapshots/{snapshotName}" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) localVarPath = strings.Replace(localVarPath, "{"+"resourcePoolId"+"}", url.PathEscape(ParameterValueToString(r.resourcePoolId, "resourcePoolId")), -1) @@ -2279,7 +2257,7 @@ func (r GetShareRequest) Execute() (*GetShareResponse, error) { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares/{shareId}" + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares/{shareId}" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) localVarPath = strings.Replace(localVarPath, "{"+"resourcePoolId"+"}", url.PathEscape(ParameterValueToString(r.resourcePoolId, "resourcePoolId")), -1) @@ -2446,7 +2424,7 @@ func (r GetShareExportPolicyRequest) Execute() (*GetShareExportPolicyResponse, e return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{region}/shareExportPolicies/{policyId}" + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{region}/shareExportPolicies/{policyId}" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) localVarPath = strings.Replace(localVarPath, "{"+"policyId"+"}", url.PathEscape(ParameterValueToString(r.policyId, "policyId")), -1) @@ -2606,7 +2584,7 @@ func (r ListPerformanceClassesRequest) Execute() (*ListPerformanceClassesRespons return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v1beta/resourcePoolPerformanceClasses" + localVarPath := localBasePath + "/v1/resourcePoolPerformanceClasses" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2710,7 +2688,7 @@ func (r ListPerformanceClassesRequest) Execute() (*ListPerformanceClassesRespons } /* -ListPerformanceClasses: List Resource Performance Classes +ListPerformanceClasses: List Resource Pool Performance Classes Lists all performances classes available @@ -2757,7 +2735,7 @@ func (r ListResourcePoolSnapshotsRequest) Execute() (*ListResourcePoolSnapshotsR return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/snapshots" + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/snapshots" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) localVarPath = strings.Replace(localVarPath, "{"+"resourcePoolId"+"}", url.PathEscape(ParameterValueToString(r.resourcePoolId, "resourcePoolId")), -1) @@ -2919,7 +2897,7 @@ func (r ListResourcePoolsRequest) Execute() (*ListResourcePoolsResponse, error) return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{region}/resourcePools" + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{region}/resourcePools" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) @@ -3077,7 +3055,7 @@ func (r ListShareExportPoliciesRequest) Execute() (*ListShareExportPoliciesRespo return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{region}/shareExportPolicies" + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{region}/shareExportPolicies" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) @@ -3236,7 +3214,7 @@ func (r ListSharesRequest) Execute() (*ListSharesResponse, error) { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares" + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) localVarPath = strings.Replace(localVarPath, "{"+"resourcePoolId"+"}", url.PathEscape(ParameterValueToString(r.resourcePoolId, "resourcePoolId")), -1) @@ -3374,159 +3352,6 @@ func (a *APIClient) ListSharesExecute(ctx context.Context, projectId string, reg return r.Execute() } -type ListSnapshotSchedulesRequest struct { - ctx context.Context - apiService *DefaultApiService - projectId string -} - -func (r ListSnapshotSchedulesRequest) Execute() (*ListSnapshotSchedulesResponse, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ListSnapshotSchedulesResponse - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ListSnapshotSchedules") - if err != nil { - return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} - } - - localVarPath := localBasePath + "/v1beta/projects/{projectId}/snapshotSchedules" - localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json", "application/problem+json", "text/plain"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, err - } - - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - - localVarHTTPResponse, err := client.callAPI(req) - contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) - if ok { - *contextHTTPResponse = localVarHTTPResponse - } - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v ValidationError - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v string - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - } - return localVarReturnValue, newErr - } - - err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: err.Error(), - } - return localVarReturnValue, newErr - } - - return localVarReturnValue, nil -} - -/* -ListSnapshotSchedules: List Snapshot Schedules - -Lists snapshot schedules - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId - @return ApiListSnapshotSchedulesRequest -*/ -func (a *APIClient) ListSnapshotSchedules(ctx context.Context, projectId string) ApiListSnapshotSchedulesRequest { - return ListSnapshotSchedulesRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - } -} - -func (a *APIClient) ListSnapshotSchedulesExecute(ctx context.Context, projectId string) (*ListSnapshotSchedulesResponse, error) { - r := ListSnapshotSchedulesRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - } - return r.Execute() -} - type UpdateResourcePoolRequest struct { ctx context.Context apiService *DefaultApiService @@ -3558,7 +3383,7 @@ func (r UpdateResourcePoolRequest) Execute() (*UpdateResourcePoolResponse, error return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}" + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) localVarPath = strings.Replace(localVarPath, "{"+"resourcePoolId"+"}", url.PathEscape(ParameterValueToString(r.resourcePoolId, "resourcePoolId")), -1) @@ -3733,7 +3558,7 @@ func (r UpdateShareRequest) Execute() (*UpdateShareResponse, error) { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares/{shareId}" + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares/{shareId}" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) localVarPath = strings.Replace(localVarPath, "{"+"resourcePoolId"+"}", url.PathEscape(ParameterValueToString(r.resourcePoolId, "resourcePoolId")), -1) @@ -3911,7 +3736,7 @@ func (r UpdateShareExportPolicyRequest) Execute() (*UpdateShareExportPolicyRespo return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v1beta/projects/{projectId}/regions/{region}/shareExportPolicies/{policyId}" + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{region}/shareExportPolicies/{policyId}" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) localVarPath = strings.Replace(localVarPath, "{"+"policyId"+"}", url.PathEscape(ParameterValueToString(r.policyId, "policyId")), -1) diff --git a/services/sfs/api_default_test.go b/services/sfs/api_default_test.go index 301404d24..09473a60d 100644 --- a/services/sfs/api_default_test.go +++ b/services/sfs/api_default_test.go @@ -24,7 +24,7 @@ import ( func Test_sfs_DefaultApiService(t *testing.T) { t.Run("Test DefaultApiService CreateResourcePool", func(t *testing.T) { - _apiUrlPath := "/v1beta/projects/{projectId}/regions/{region}/resourcePools" + _apiUrlPath := "/v1/projects/{projectId}/regions/{region}/resourcePools" projectIdValue := "projectId-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) regionValue := "region-value" @@ -80,7 +80,7 @@ func Test_sfs_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService CreateResourcePoolSnapshot", func(t *testing.T) { - _apiUrlPath := "/v1beta/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/snapshots" + _apiUrlPath := "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/snapshots" projectIdValue := "projectId-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) regionValue := "region-value" @@ -139,7 +139,7 @@ func Test_sfs_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService CreateShare", func(t *testing.T) { - _apiUrlPath := "/v1beta/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares" + _apiUrlPath := "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares" projectIdValue := "projectId-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) regionValue := "region-value" @@ -198,7 +198,7 @@ func Test_sfs_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService CreateShareExportPolicy", func(t *testing.T) { - _apiUrlPath := "/v1beta/projects/{projectId}/regions/{region}/shareExportPolicies" + _apiUrlPath := "/v1/projects/{projectId}/regions/{region}/shareExportPolicies" projectIdValue := "projectId-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) regionValue := "region-value" @@ -254,7 +254,7 @@ func Test_sfs_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService DeleteResourcePool", func(t *testing.T) { - _apiUrlPath := "/v1beta/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}" + _apiUrlPath := "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}" projectIdValue := "projectId-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) regionValue := "region-value" @@ -312,7 +312,7 @@ func Test_sfs_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService DeleteResourcePoolSnapshot", func(t *testing.T) { - _apiUrlPath := "/v1beta/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/snapshots/{snapshotName}" + _apiUrlPath := "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/snapshots/{snapshotName}" projectIdValue := "projectId-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) regionValue := "region-value" @@ -373,7 +373,7 @@ func Test_sfs_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService DeleteShare", func(t *testing.T) { - _apiUrlPath := "/v1beta/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares/{shareId}" + _apiUrlPath := "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares/{shareId}" projectIdValue := "projectId-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) regionValue := "region-value" @@ -434,7 +434,7 @@ func Test_sfs_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService DeleteShareExportPolicy", func(t *testing.T) { - _apiUrlPath := "/v1beta/projects/{projectId}/regions/{region}/shareExportPolicies/{policyId}" + _apiUrlPath := "/v1/projects/{projectId}/regions/{region}/shareExportPolicies/{policyId}" projectIdValue := "projectId-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) regionValue := "region-value" @@ -492,7 +492,7 @@ func Test_sfs_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService GetResourcePool", func(t *testing.T) { - _apiUrlPath := "/v1beta/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}" + _apiUrlPath := "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}" projectIdValue := "projectId-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) regionValue := "region-value" @@ -550,7 +550,7 @@ func Test_sfs_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService GetResourcePoolSnapshot", func(t *testing.T) { - _apiUrlPath := "/v1beta/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/snapshots/{snapshotName}" + _apiUrlPath := "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/snapshots/{snapshotName}" projectIdValue := "projectId-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) regionValue := "region-value" @@ -611,7 +611,7 @@ func Test_sfs_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService GetShare", func(t *testing.T) { - _apiUrlPath := "/v1beta/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares/{shareId}" + _apiUrlPath := "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares/{shareId}" projectIdValue := "projectId-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) regionValue := "region-value" @@ -672,7 +672,7 @@ func Test_sfs_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService GetShareExportPolicy", func(t *testing.T) { - _apiUrlPath := "/v1beta/projects/{projectId}/regions/{region}/shareExportPolicies/{policyId}" + _apiUrlPath := "/v1/projects/{projectId}/regions/{region}/shareExportPolicies/{policyId}" projectIdValue := "projectId-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) regionValue := "region-value" @@ -730,7 +730,7 @@ func Test_sfs_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService ListPerformanceClasses", func(t *testing.T) { - _apiUrlPath := "/v1beta/resourcePoolPerformanceClasses" + _apiUrlPath := "/v1/resourcePoolPerformanceClasses" testDefaultApiServeMux := http.NewServeMux() testDefaultApiServeMux.HandleFunc(_apiUrlPath, func(w http.ResponseWriter, req *http.Request) { @@ -778,7 +778,7 @@ func Test_sfs_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService ListResourcePoolSnapshots", func(t *testing.T) { - _apiUrlPath := "/v1beta/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/snapshots" + _apiUrlPath := "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/snapshots" projectIdValue := "projectId-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) regionValue := "region-value" @@ -836,7 +836,7 @@ func Test_sfs_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService ListResourcePools", func(t *testing.T) { - _apiUrlPath := "/v1beta/projects/{projectId}/regions/{region}/resourcePools" + _apiUrlPath := "/v1/projects/{projectId}/regions/{region}/resourcePools" projectIdValue := "projectId-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) regionValue := "region-value" @@ -891,7 +891,7 @@ func Test_sfs_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService ListShareExportPolicies", func(t *testing.T) { - _apiUrlPath := "/v1beta/projects/{projectId}/regions/{region}/shareExportPolicies" + _apiUrlPath := "/v1/projects/{projectId}/regions/{region}/shareExportPolicies" projectIdValue := "projectId-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) regionValue := "region-value" @@ -946,7 +946,7 @@ func Test_sfs_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService ListShares", func(t *testing.T) { - _apiUrlPath := "/v1beta/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares" + _apiUrlPath := "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares" projectIdValue := "projectId-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) regionValue := "region-value" @@ -1003,60 +1003,8 @@ func Test_sfs_DefaultApiService(t *testing.T) { } }) - t.Run("Test DefaultApiService ListSnapshotSchedules", func(t *testing.T) { - _apiUrlPath := "/v1beta/projects/{projectId}/snapshotSchedules" - projectIdValue := "projectId-value" - _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) - - testDefaultApiServeMux := http.NewServeMux() - testDefaultApiServeMux.HandleFunc(_apiUrlPath, func(w http.ResponseWriter, req *http.Request) { - data := ListSnapshotSchedulesResponse{} - w.Header().Add("Content-Type", "application/json") - json.NewEncoder(w).Encode(data) - }) - testServer := httptest.NewServer(testDefaultApiServeMux) - defer testServer.Close() - - configuration := &config.Configuration{ - DefaultHeader: make(map[string]string), - UserAgent: "OpenAPI-Generator/1.0.0/go", - Debug: false, - Region: "test_region", - Servers: config.ServerConfigurations{ - { - URL: testServer.URL, - Description: "Localhost for sfs_DefaultApi", - Variables: map[string]config.ServerVariable{ - "region": { - DefaultValue: "test_region.", - EnumValues: []string{ - "test_region.", - }, - }, - }, - }, - }, - OperationServers: map[string]config.ServerConfigurations{}, - } - apiClient, err := NewAPIClient(config.WithCustomConfiguration(configuration), config.WithoutAuthentication()) - if err != nil { - t.Fatalf("creating API client: %v", err) - } - - projectId := projectIdValue - - resp, reqErr := apiClient.ListSnapshotSchedules(context.Background(), projectId).Execute() - - if reqErr != nil { - t.Fatalf("error in call: %v", reqErr) - } - if IsNil(resp) { - t.Fatalf("response not present") - } - }) - t.Run("Test DefaultApiService UpdateResourcePool", func(t *testing.T) { - _apiUrlPath := "/v1beta/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}" + _apiUrlPath := "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}" projectIdValue := "projectId-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) regionValue := "region-value" @@ -1115,7 +1063,7 @@ func Test_sfs_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService UpdateShare", func(t *testing.T) { - _apiUrlPath := "/v1beta/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares/{shareId}" + _apiUrlPath := "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares/{shareId}" projectIdValue := "projectId-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) regionValue := "region-value" @@ -1177,7 +1125,7 @@ func Test_sfs_DefaultApiService(t *testing.T) { }) t.Run("Test DefaultApiService UpdateShareExportPolicy", func(t *testing.T) { - _apiUrlPath := "/v1beta/projects/{projectId}/regions/{region}/shareExportPolicies/{policyId}" + _apiUrlPath := "/v1/projects/{projectId}/regions/{region}/shareExportPolicies/{policyId}" projectIdValue := "projectId-value" _apiUrlPath = strings.Replace(_apiUrlPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(projectIdValue, "projectId")), -1) regionValue := "region-value" diff --git a/services/sfs/client.go b/services/sfs/client.go index 297132f0f..3e977cce2 100644 --- a/services/sfs/client.go +++ b/services/sfs/client.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -42,7 +42,7 @@ var ( queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") ) -// APIClient manages communication with the STACKIT File Storage (SFS) API v1beta.0.0 +// APIClient manages communication with the STACKIT File Storage (SFS) API v1.0.0 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *config.Configuration diff --git a/services/sfs/configuration.go b/services/sfs/configuration.go index 4e9c7595c..aa30a5002 100644 --- a/services/sfs/configuration.go +++ b/services/sfs/configuration.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_create_resource_pool_payload.go b/services/sfs/model_create_resource_pool_payload.go index 165f54d23..24a729eac 100644 --- a/services/sfs/model_create_resource_pool_payload.go +++ b/services/sfs/model_create_resource_pool_payload.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -140,27 +140,6 @@ func setCreateResourcePoolPayloadGetSizeGigabytesAttributeType(arg *CreateResour *arg = &val } -/* - types and functions for snapshotScheduleName -*/ - -// isNotNullableString -type CreateResourcePoolPayloadGetSnapshotScheduleNameAttributeType = *string - -func getCreateResourcePoolPayloadGetSnapshotScheduleNameAttributeTypeOk(arg CreateResourcePoolPayloadGetSnapshotScheduleNameAttributeType) (ret CreateResourcePoolPayloadGetSnapshotScheduleNameRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -func setCreateResourcePoolPayloadGetSnapshotScheduleNameAttributeType(arg *CreateResourcePoolPayloadGetSnapshotScheduleNameAttributeType, val CreateResourcePoolPayloadGetSnapshotScheduleNameRetType) { - *arg = &val -} - -type CreateResourcePoolPayloadGetSnapshotScheduleNameArgType = string -type CreateResourcePoolPayloadGetSnapshotScheduleNameRetType = string - /* types and functions for snapshotsAreVisible */ @@ -184,30 +163,40 @@ func setCreateResourcePoolPayloadgetSnapshotsAreVisibleAttributeType(arg *Create // CreateResourcePoolPayload struct for CreateResourcePoolPayload type CreateResourcePoolPayload struct { // Availability zone - AvailabilityZone CreateResourcePoolPayloadGetAvailabilityZoneAttributeType `json:"availabilityZone,omitempty"` + // REQUIRED + AvailabilityZone CreateResourcePoolPayloadGetAvailabilityZoneAttributeType `json:"availabilityZone" required:"true"` // 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) - IpAcl CreateResourcePoolPayloadGetIpAclAttributeType `json:"ipAcl,omitempty"` + // REQUIRED + IpAcl CreateResourcePoolPayloadGetIpAclAttributeType `json:"ipAcl" required:"true"` // 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}_-]*$' Labels CreateResourcePoolPayloadGetLabelsAttributeType `json:"labels,omitempty"` // Name of the Resource Pool - Name CreateResourcePoolPayloadGetNameAttributeType `json:"name,omitempty"` + // REQUIRED + Name CreateResourcePoolPayloadGetNameAttributeType `json:"name" required:"true"` // Name of the performance class - PerformanceClass CreateResourcePoolPayloadGetPerformanceClassAttributeType `json:"performanceClass,omitempty"` + // REQUIRED + PerformanceClass CreateResourcePoolPayloadGetPerformanceClassAttributeType `json:"performanceClass" required:"true"` // Size of the Resource Pool (unit: gibibytes) // Can be cast to int32 without loss of precision. - SizeGigabytes CreateResourcePoolPayloadGetSizeGigabytesAttributeType `json:"sizeGigabytes,omitempty"` - // (optional) Name of the Snapshot Schedule to use - SnapshotScheduleName CreateResourcePoolPayloadGetSnapshotScheduleNameAttributeType `json:"snapshotScheduleName,omitempty"` + // REQUIRED + SizeGigabytes CreateResourcePoolPayloadGetSizeGigabytesAttributeType `json:"sizeGigabytes" required:"true"` // 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. SnapshotsAreVisible CreateResourcePoolPayloadgetSnapshotsAreVisibleAttributeType `json:"snapshotsAreVisible,omitempty"` } +type _CreateResourcePoolPayload CreateResourcePoolPayload + // NewCreateResourcePoolPayload instantiates a new CreateResourcePoolPayload object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCreateResourcePoolPayload() *CreateResourcePoolPayload { +func NewCreateResourcePoolPayload(availabilityZone CreateResourcePoolPayloadGetAvailabilityZoneArgType, ipAcl CreateResourcePoolPayloadGetIpAclArgType, name CreateResourcePoolPayloadGetNameArgType, performanceClass CreateResourcePoolPayloadGetPerformanceClassArgType, sizeGigabytes CreateResourcePoolPayloadGetSizeGigabytesArgType) *CreateResourcePoolPayload { this := CreateResourcePoolPayload{} + setCreateResourcePoolPayloadGetAvailabilityZoneAttributeType(&this.AvailabilityZone, availabilityZone) + setCreateResourcePoolPayloadGetIpAclAttributeType(&this.IpAcl, ipAcl) + setCreateResourcePoolPayloadGetNameAttributeType(&this.Name, name) + setCreateResourcePoolPayloadGetPerformanceClassAttributeType(&this.PerformanceClass, performanceClass) + setCreateResourcePoolPayloadGetSizeGigabytesAttributeType(&this.SizeGigabytes, sizeGigabytes) return &this } @@ -219,48 +208,36 @@ func NewCreateResourcePoolPayloadWithDefaults() *CreateResourcePoolPayload { return &this } -// GetAvailabilityZone returns the AvailabilityZone field value if set, zero value otherwise. -func (o *CreateResourcePoolPayload) GetAvailabilityZone() (res CreateResourcePoolPayloadGetAvailabilityZoneRetType) { - res, _ = o.GetAvailabilityZoneOk() - return +// GetAvailabilityZone returns the AvailabilityZone field value +func (o *CreateResourcePoolPayload) GetAvailabilityZone() (ret CreateResourcePoolPayloadGetAvailabilityZoneRetType) { + ret, _ = o.GetAvailabilityZoneOk() + return ret } -// GetAvailabilityZoneOk returns a tuple with the AvailabilityZone field value if set, nil otherwise +// GetAvailabilityZoneOk returns a tuple with the AvailabilityZone field value // and a boolean to check if the value has been set. func (o *CreateResourcePoolPayload) GetAvailabilityZoneOk() (ret CreateResourcePoolPayloadGetAvailabilityZoneRetType, ok bool) { return getCreateResourcePoolPayloadGetAvailabilityZoneAttributeTypeOk(o.AvailabilityZone) } -// HasAvailabilityZone returns a boolean if a field has been set. -func (o *CreateResourcePoolPayload) HasAvailabilityZone() bool { - _, ok := o.GetAvailabilityZoneOk() - return ok -} - -// SetAvailabilityZone gets a reference to the given string and assigns it to the AvailabilityZone field. +// SetAvailabilityZone sets field value func (o *CreateResourcePoolPayload) SetAvailabilityZone(v CreateResourcePoolPayloadGetAvailabilityZoneRetType) { setCreateResourcePoolPayloadGetAvailabilityZoneAttributeType(&o.AvailabilityZone, v) } -// GetIpAcl returns the IpAcl field value if set, zero value otherwise. -func (o *CreateResourcePoolPayload) GetIpAcl() (res CreateResourcePoolPayloadGetIpAclRetType) { - res, _ = o.GetIpAclOk() - return +// GetIpAcl returns the IpAcl field value +func (o *CreateResourcePoolPayload) GetIpAcl() (ret CreateResourcePoolPayloadGetIpAclRetType) { + ret, _ = o.GetIpAclOk() + return ret } -// GetIpAclOk returns a tuple with the IpAcl field value if set, nil otherwise +// GetIpAclOk returns a tuple with the IpAcl field value // and a boolean to check if the value has been set. func (o *CreateResourcePoolPayload) GetIpAclOk() (ret CreateResourcePoolPayloadGetIpAclRetType, ok bool) { return getCreateResourcePoolPayloadGetIpAclAttributeTypeOk(o.IpAcl) } -// HasIpAcl returns a boolean if a field has been set. -func (o *CreateResourcePoolPayload) HasIpAcl() bool { - _, ok := o.GetIpAclOk() - return ok -} - -// SetIpAcl gets a reference to the given []string and assigns it to the IpAcl field. +// SetIpAcl sets field value func (o *CreateResourcePoolPayload) SetIpAcl(v CreateResourcePoolPayloadGetIpAclRetType) { setCreateResourcePoolPayloadGetIpAclAttributeType(&o.IpAcl, v) } @@ -288,98 +265,57 @@ func (o *CreateResourcePoolPayload) SetLabels(v CreateResourcePoolPayloadGetLabe setCreateResourcePoolPayloadGetLabelsAttributeType(&o.Labels, v) } -// GetName returns the Name field value if set, zero value otherwise. -func (o *CreateResourcePoolPayload) GetName() (res CreateResourcePoolPayloadGetNameRetType) { - res, _ = o.GetNameOk() - return +// GetName returns the Name field value +func (o *CreateResourcePoolPayload) GetName() (ret CreateResourcePoolPayloadGetNameRetType) { + ret, _ = o.GetNameOk() + return ret } -// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. func (o *CreateResourcePoolPayload) GetNameOk() (ret CreateResourcePoolPayloadGetNameRetType, ok bool) { return getCreateResourcePoolPayloadGetNameAttributeTypeOk(o.Name) } -// HasName returns a boolean if a field has been set. -func (o *CreateResourcePoolPayload) HasName() bool { - _, ok := o.GetNameOk() - return ok -} - -// SetName gets a reference to the given string and assigns it to the Name field. +// SetName sets field value func (o *CreateResourcePoolPayload) SetName(v CreateResourcePoolPayloadGetNameRetType) { setCreateResourcePoolPayloadGetNameAttributeType(&o.Name, v) } -// GetPerformanceClass returns the PerformanceClass field value if set, zero value otherwise. -func (o *CreateResourcePoolPayload) GetPerformanceClass() (res CreateResourcePoolPayloadGetPerformanceClassRetType) { - res, _ = o.GetPerformanceClassOk() - return +// GetPerformanceClass returns the PerformanceClass field value +func (o *CreateResourcePoolPayload) GetPerformanceClass() (ret CreateResourcePoolPayloadGetPerformanceClassRetType) { + ret, _ = o.GetPerformanceClassOk() + return ret } -// GetPerformanceClassOk returns a tuple with the PerformanceClass field value if set, nil otherwise +// GetPerformanceClassOk returns a tuple with the PerformanceClass field value // and a boolean to check if the value has been set. func (o *CreateResourcePoolPayload) GetPerformanceClassOk() (ret CreateResourcePoolPayloadGetPerformanceClassRetType, ok bool) { return getCreateResourcePoolPayloadGetPerformanceClassAttributeTypeOk(o.PerformanceClass) } -// HasPerformanceClass returns a boolean if a field has been set. -func (o *CreateResourcePoolPayload) HasPerformanceClass() bool { - _, ok := o.GetPerformanceClassOk() - return ok -} - -// SetPerformanceClass gets a reference to the given string and assigns it to the PerformanceClass field. +// SetPerformanceClass sets field value func (o *CreateResourcePoolPayload) SetPerformanceClass(v CreateResourcePoolPayloadGetPerformanceClassRetType) { setCreateResourcePoolPayloadGetPerformanceClassAttributeType(&o.PerformanceClass, v) } -// GetSizeGigabytes returns the SizeGigabytes field value if set, zero value otherwise. -func (o *CreateResourcePoolPayload) GetSizeGigabytes() (res CreateResourcePoolPayloadGetSizeGigabytesRetType) { - res, _ = o.GetSizeGigabytesOk() - return +// GetSizeGigabytes returns the SizeGigabytes field value +func (o *CreateResourcePoolPayload) GetSizeGigabytes() (ret CreateResourcePoolPayloadGetSizeGigabytesRetType) { + ret, _ = o.GetSizeGigabytesOk() + return ret } -// GetSizeGigabytesOk returns a tuple with the SizeGigabytes field value if set, nil otherwise +// GetSizeGigabytesOk returns a tuple with the SizeGigabytes field value // and a boolean to check if the value has been set. func (o *CreateResourcePoolPayload) GetSizeGigabytesOk() (ret CreateResourcePoolPayloadGetSizeGigabytesRetType, ok bool) { return getCreateResourcePoolPayloadGetSizeGigabytesAttributeTypeOk(o.SizeGigabytes) } -// HasSizeGigabytes returns a boolean if a field has been set. -func (o *CreateResourcePoolPayload) HasSizeGigabytes() bool { - _, ok := o.GetSizeGigabytesOk() - return ok -} - -// SetSizeGigabytes gets a reference to the given int64 and assigns it to the SizeGigabytes field. +// SetSizeGigabytes sets field value func (o *CreateResourcePoolPayload) SetSizeGigabytes(v CreateResourcePoolPayloadGetSizeGigabytesRetType) { setCreateResourcePoolPayloadGetSizeGigabytesAttributeType(&o.SizeGigabytes, v) } -// GetSnapshotScheduleName returns the SnapshotScheduleName field value if set, zero value otherwise. -func (o *CreateResourcePoolPayload) GetSnapshotScheduleName() (res CreateResourcePoolPayloadGetSnapshotScheduleNameRetType) { - res, _ = o.GetSnapshotScheduleNameOk() - return -} - -// GetSnapshotScheduleNameOk returns a tuple with the SnapshotScheduleName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateResourcePoolPayload) GetSnapshotScheduleNameOk() (ret CreateResourcePoolPayloadGetSnapshotScheduleNameRetType, ok bool) { - return getCreateResourcePoolPayloadGetSnapshotScheduleNameAttributeTypeOk(o.SnapshotScheduleName) -} - -// HasSnapshotScheduleName returns a boolean if a field has been set. -func (o *CreateResourcePoolPayload) HasSnapshotScheduleName() bool { - _, ok := o.GetSnapshotScheduleNameOk() - return ok -} - -// SetSnapshotScheduleName gets a reference to the given string and assigns it to the SnapshotScheduleName field. -func (o *CreateResourcePoolPayload) SetSnapshotScheduleName(v CreateResourcePoolPayloadGetSnapshotScheduleNameRetType) { - setCreateResourcePoolPayloadGetSnapshotScheduleNameAttributeType(&o.SnapshotScheduleName, v) -} - // GetSnapshotsAreVisible returns the SnapshotsAreVisible field value if set, zero value otherwise. func (o *CreateResourcePoolPayload) GetSnapshotsAreVisible() (res CreateResourcePoolPayloadgetSnapshotsAreVisibleRetType) { res, _ = o.GetSnapshotsAreVisibleOk() @@ -423,9 +359,6 @@ func (o CreateResourcePoolPayload) ToMap() (map[string]interface{}, error) { if val, ok := getCreateResourcePoolPayloadGetSizeGigabytesAttributeTypeOk(o.SizeGigabytes); ok { toSerialize["SizeGigabytes"] = val } - if val, ok := getCreateResourcePoolPayloadGetSnapshotScheduleNameAttributeTypeOk(o.SnapshotScheduleName); ok { - toSerialize["SnapshotScheduleName"] = val - } if val, ok := getCreateResourcePoolPayloadgetSnapshotsAreVisibleAttributeTypeOk(o.SnapshotsAreVisible); ok { toSerialize["SnapshotsAreVisible"] = val } diff --git a/services/sfs/model_create_resource_pool_payload_test.go b/services/sfs/model_create_resource_pool_payload_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_create_resource_pool_payload_test.go +++ b/services/sfs/model_create_resource_pool_payload_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_create_resource_pool_response.go b/services/sfs/model_create_resource_pool_response.go index 67746b7b3..222a9e2bd 100644 --- a/services/sfs/model_create_resource_pool_response.go +++ b/services/sfs/model_create_resource_pool_response.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_create_resource_pool_response_resource_pool.go b/services/sfs/model_create_resource_pool_response_resource_pool.go index 00419b2cd..30960bfd8 100644 --- a/services/sfs/model_create_resource_pool_response_resource_pool.go +++ b/services/sfs/model_create_resource_pool_response_resource_pool.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -242,26 +242,6 @@ func setCreateResourcePoolResponseResourcePoolGetSizeReducibleAtAttributeType(ar *arg = &val } -/* - types and functions for snapshotSchedule -*/ - -// isModel -type CreateResourcePoolResponseResourcePoolGetSnapshotScheduleAttributeType = *SnapshotSchedule -type CreateResourcePoolResponseResourcePoolGetSnapshotScheduleArgType = SnapshotSchedule -type CreateResourcePoolResponseResourcePoolGetSnapshotScheduleRetType = SnapshotSchedule - -func getCreateResourcePoolResponseResourcePoolGetSnapshotScheduleAttributeTypeOk(arg CreateResourcePoolResponseResourcePoolGetSnapshotScheduleAttributeType) (ret CreateResourcePoolResponseResourcePoolGetSnapshotScheduleRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -func setCreateResourcePoolResponseResourcePoolGetSnapshotScheduleAttributeType(arg *CreateResourcePoolResponseResourcePoolGetSnapshotScheduleAttributeType, val CreateResourcePoolResponseResourcePoolGetSnapshotScheduleRetType) { - *arg = &val -} - /* types and functions for snapshotsAreVisible */ @@ -344,8 +324,7 @@ type CreateResourcePoolResponseResourcePool struct { // Time when the performance class can be downgraded again. PerformanceClassDowngradableAt CreateResourcePoolResponseResourcePoolGetPerformanceClassDowngradableAtAttributeType `json:"performanceClassDowngradableAt,omitempty"` // Time when the size can be reduced again. - SizeReducibleAt CreateResourcePoolResponseResourcePoolGetSizeReducibleAtAttributeType `json:"sizeReducibleAt,omitempty"` - SnapshotSchedule CreateResourcePoolResponseResourcePoolGetSnapshotScheduleAttributeType `json:"snapshotSchedule,omitempty"` + SizeReducibleAt CreateResourcePoolResponseResourcePoolGetSizeReducibleAtAttributeType `json:"sizeReducibleAt,omitempty"` // 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. SnapshotsAreVisible CreateResourcePoolResponseResourcePoolgetSnapshotsAreVisibleAttributeType `json:"snapshotsAreVisible,omitempty"` Space CreateResourcePoolResponseResourcePoolGetSpaceAttributeType `json:"space,omitempty"` @@ -623,29 +602,6 @@ func (o *CreateResourcePoolResponseResourcePool) SetSizeReducibleAt(v CreateReso setCreateResourcePoolResponseResourcePoolGetSizeReducibleAtAttributeType(&o.SizeReducibleAt, v) } -// GetSnapshotSchedule returns the SnapshotSchedule field value if set, zero value otherwise. -func (o *CreateResourcePoolResponseResourcePool) GetSnapshotSchedule() (res CreateResourcePoolResponseResourcePoolGetSnapshotScheduleRetType) { - res, _ = o.GetSnapshotScheduleOk() - return -} - -// GetSnapshotScheduleOk returns a tuple with the SnapshotSchedule field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CreateResourcePoolResponseResourcePool) GetSnapshotScheduleOk() (ret CreateResourcePoolResponseResourcePoolGetSnapshotScheduleRetType, ok bool) { - return getCreateResourcePoolResponseResourcePoolGetSnapshotScheduleAttributeTypeOk(o.SnapshotSchedule) -} - -// HasSnapshotSchedule returns a boolean if a field has been set. -func (o *CreateResourcePoolResponseResourcePool) HasSnapshotSchedule() bool { - _, ok := o.GetSnapshotScheduleOk() - return ok -} - -// SetSnapshotSchedule gets a reference to the given SnapshotSchedule and assigns it to the SnapshotSchedule field. -func (o *CreateResourcePoolResponseResourcePool) SetSnapshotSchedule(v CreateResourcePoolResponseResourcePoolGetSnapshotScheduleRetType) { - setCreateResourcePoolResponseResourcePoolGetSnapshotScheduleAttributeType(&o.SnapshotSchedule, v) -} - // GetSnapshotsAreVisible returns the SnapshotsAreVisible field value if set, zero value otherwise. func (o *CreateResourcePoolResponseResourcePool) GetSnapshotsAreVisible() (res CreateResourcePoolResponseResourcePoolgetSnapshotsAreVisibleRetType) { res, _ = o.GetSnapshotsAreVisibleOk() @@ -750,9 +706,6 @@ func (o CreateResourcePoolResponseResourcePool) ToMap() (map[string]interface{}, if val, ok := getCreateResourcePoolResponseResourcePoolGetSizeReducibleAtAttributeTypeOk(o.SizeReducibleAt); ok { toSerialize["SizeReducibleAt"] = val } - if val, ok := getCreateResourcePoolResponseResourcePoolGetSnapshotScheduleAttributeTypeOk(o.SnapshotSchedule); ok { - toSerialize["SnapshotSchedule"] = val - } if val, ok := getCreateResourcePoolResponseResourcePoolgetSnapshotsAreVisibleAttributeTypeOk(o.SnapshotsAreVisible); ok { toSerialize["SnapshotsAreVisible"] = val } diff --git a/services/sfs/model_create_resource_pool_response_resource_pool_test.go b/services/sfs/model_create_resource_pool_response_resource_pool_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_create_resource_pool_response_resource_pool_test.go +++ b/services/sfs/model_create_resource_pool_response_resource_pool_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_create_resource_pool_response_test.go b/services/sfs/model_create_resource_pool_response_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_create_resource_pool_response_test.go +++ b/services/sfs/model_create_resource_pool_response_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_create_resource_pool_snapshot_payload.go b/services/sfs/model_create_resource_pool_snapshot_payload.go index 8d1891c0d..76fa7a810 100644 --- a/services/sfs/model_create_resource_pool_snapshot_payload.go +++ b/services/sfs/model_create_resource_pool_snapshot_payload.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_create_resource_pool_snapshot_payload_test.go b/services/sfs/model_create_resource_pool_snapshot_payload_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_create_resource_pool_snapshot_payload_test.go +++ b/services/sfs/model_create_resource_pool_snapshot_payload_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_create_resource_pool_snapshot_response.go b/services/sfs/model_create_resource_pool_snapshot_response.go index 76bd724dd..31f0b42eb 100644 --- a/services/sfs/model_create_resource_pool_snapshot_response.go +++ b/services/sfs/model_create_resource_pool_snapshot_response.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_create_resource_pool_snapshot_response_resource_pool_snapshot.go b/services/sfs/model_create_resource_pool_snapshot_response_resource_pool_snapshot.go index d1e16f475..45960c687 100644 --- a/services/sfs/model_create_resource_pool_snapshot_response_resource_pool_snapshot.go +++ b/services/sfs/model_create_resource_pool_snapshot_response_resource_pool_snapshot.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_create_resource_pool_snapshot_response_resource_pool_snapshot_test.go b/services/sfs/model_create_resource_pool_snapshot_response_resource_pool_snapshot_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_create_resource_pool_snapshot_response_resource_pool_snapshot_test.go +++ b/services/sfs/model_create_resource_pool_snapshot_response_resource_pool_snapshot_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_create_resource_pool_snapshot_response_test.go b/services/sfs/model_create_resource_pool_snapshot_response_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_create_resource_pool_snapshot_response_test.go +++ b/services/sfs/model_create_resource_pool_snapshot_response_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_create_share_export_policy_payload.go b/services/sfs/model_create_share_export_policy_payload.go index a56d58276..86172737a 100644 --- a/services/sfs/model_create_share_export_policy_payload.go +++ b/services/sfs/model_create_share_export_policy_payload.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_create_share_export_policy_payload_test.go b/services/sfs/model_create_share_export_policy_payload_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_create_share_export_policy_payload_test.go +++ b/services/sfs/model_create_share_export_policy_payload_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_create_share_export_policy_request_rule.go b/services/sfs/model_create_share_export_policy_request_rule.go index 2e06972dd..a0cfd1c69 100644 --- a/services/sfs/model_create_share_export_policy_request_rule.go +++ b/services/sfs/model_create_share_export_policy_request_rule.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_create_share_export_policy_request_rule_test.go b/services/sfs/model_create_share_export_policy_request_rule_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_create_share_export_policy_request_rule_test.go +++ b/services/sfs/model_create_share_export_policy_request_rule_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_create_share_export_policy_response.go b/services/sfs/model_create_share_export_policy_response.go index 8294cfc58..7e6104d57 100644 --- a/services/sfs/model_create_share_export_policy_response.go +++ b/services/sfs/model_create_share_export_policy_response.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_create_share_export_policy_response_share_export_policy.go b/services/sfs/model_create_share_export_policy_response_share_export_policy.go index b81720ceb..e026d843c 100644 --- a/services/sfs/model_create_share_export_policy_response_share_export_policy.go +++ b/services/sfs/model_create_share_export_policy_response_share_export_policy.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_create_share_export_policy_response_share_export_policy_test.go b/services/sfs/model_create_share_export_policy_response_share_export_policy_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_create_share_export_policy_response_share_export_policy_test.go +++ b/services/sfs/model_create_share_export_policy_response_share_export_policy_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_create_share_export_policy_response_test.go b/services/sfs/model_create_share_export_policy_response_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_create_share_export_policy_response_test.go +++ b/services/sfs/model_create_share_export_policy_response_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_create_share_payload.go b/services/sfs/model_create_share_payload.go index c28f818d5..1dfdd7b68 100644 --- a/services/sfs/model_create_share_payload.go +++ b/services/sfs/model_create_share_payload.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_create_share_payload_test.go b/services/sfs/model_create_share_payload_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_create_share_payload_test.go +++ b/services/sfs/model_create_share_payload_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_create_share_response.go b/services/sfs/model_create_share_response.go index 85dd13c5f..bc8d95a7c 100644 --- a/services/sfs/model_create_share_response.go +++ b/services/sfs/model_create_share_response.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_create_share_response_share.go b/services/sfs/model_create_share_response_share.go index eeba96d6c..d97668c01 100644 --- a/services/sfs/model_create_share_response_share.go +++ b/services/sfs/model_create_share_response_share.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_create_share_response_share_test.go b/services/sfs/model_create_share_response_share_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_create_share_response_share_test.go +++ b/services/sfs/model_create_share_response_share_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_create_share_response_test.go b/services/sfs/model_create_share_response_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_create_share_response_test.go +++ b/services/sfs/model_create_share_response_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_error.go b/services/sfs/model_error.go index 92723b7a0..189e32d8e 100644 --- a/services/sfs/model_error.go +++ b/services/sfs/model_error.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_error_test.go b/services/sfs/model_error_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_error_test.go +++ b/services/sfs/model_error_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_get_resource_pool_response.go b/services/sfs/model_get_resource_pool_response.go index a391950d0..73aaf255b 100644 --- a/services/sfs/model_get_resource_pool_response.go +++ b/services/sfs/model_get_resource_pool_response.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_get_resource_pool_response_resource_pool.go b/services/sfs/model_get_resource_pool_response_resource_pool.go index 1578ef3ee..f05300d74 100644 --- a/services/sfs/model_get_resource_pool_response_resource_pool.go +++ b/services/sfs/model_get_resource_pool_response_resource_pool.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -242,26 +242,6 @@ func setGetResourcePoolResponseResourcePoolGetSizeReducibleAtAttributeType(arg * *arg = &val } -/* - types and functions for snapshotSchedule -*/ - -// isModel -type GetResourcePoolResponseResourcePoolGetSnapshotScheduleAttributeType = *SnapshotSchedule -type GetResourcePoolResponseResourcePoolGetSnapshotScheduleArgType = SnapshotSchedule -type GetResourcePoolResponseResourcePoolGetSnapshotScheduleRetType = SnapshotSchedule - -func getGetResourcePoolResponseResourcePoolGetSnapshotScheduleAttributeTypeOk(arg GetResourcePoolResponseResourcePoolGetSnapshotScheduleAttributeType) (ret GetResourcePoolResponseResourcePoolGetSnapshotScheduleRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -func setGetResourcePoolResponseResourcePoolGetSnapshotScheduleAttributeType(arg *GetResourcePoolResponseResourcePoolGetSnapshotScheduleAttributeType, val GetResourcePoolResponseResourcePoolGetSnapshotScheduleRetType) { - *arg = &val -} - /* types and functions for snapshotsAreVisible */ @@ -344,8 +324,7 @@ type GetResourcePoolResponseResourcePool struct { // Time when the performance class can be downgraded again. PerformanceClassDowngradableAt GetResourcePoolResponseResourcePoolGetPerformanceClassDowngradableAtAttributeType `json:"performanceClassDowngradableAt,omitempty"` // Time when the size can be reduced again. - SizeReducibleAt GetResourcePoolResponseResourcePoolGetSizeReducibleAtAttributeType `json:"sizeReducibleAt,omitempty"` - SnapshotSchedule GetResourcePoolResponseResourcePoolGetSnapshotScheduleAttributeType `json:"snapshotSchedule,omitempty"` + SizeReducibleAt GetResourcePoolResponseResourcePoolGetSizeReducibleAtAttributeType `json:"sizeReducibleAt,omitempty"` // 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. SnapshotsAreVisible GetResourcePoolResponseResourcePoolgetSnapshotsAreVisibleAttributeType `json:"snapshotsAreVisible,omitempty"` Space GetResourcePoolResponseResourcePoolGetSpaceAttributeType `json:"space,omitempty"` @@ -623,29 +602,6 @@ func (o *GetResourcePoolResponseResourcePool) SetSizeReducibleAt(v GetResourcePo setGetResourcePoolResponseResourcePoolGetSizeReducibleAtAttributeType(&o.SizeReducibleAt, v) } -// GetSnapshotSchedule returns the SnapshotSchedule field value if set, zero value otherwise. -func (o *GetResourcePoolResponseResourcePool) GetSnapshotSchedule() (res GetResourcePoolResponseResourcePoolGetSnapshotScheduleRetType) { - res, _ = o.GetSnapshotScheduleOk() - return -} - -// GetSnapshotScheduleOk returns a tuple with the SnapshotSchedule field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GetResourcePoolResponseResourcePool) GetSnapshotScheduleOk() (ret GetResourcePoolResponseResourcePoolGetSnapshotScheduleRetType, ok bool) { - return getGetResourcePoolResponseResourcePoolGetSnapshotScheduleAttributeTypeOk(o.SnapshotSchedule) -} - -// HasSnapshotSchedule returns a boolean if a field has been set. -func (o *GetResourcePoolResponseResourcePool) HasSnapshotSchedule() bool { - _, ok := o.GetSnapshotScheduleOk() - return ok -} - -// SetSnapshotSchedule gets a reference to the given SnapshotSchedule and assigns it to the SnapshotSchedule field. -func (o *GetResourcePoolResponseResourcePool) SetSnapshotSchedule(v GetResourcePoolResponseResourcePoolGetSnapshotScheduleRetType) { - setGetResourcePoolResponseResourcePoolGetSnapshotScheduleAttributeType(&o.SnapshotSchedule, v) -} - // GetSnapshotsAreVisible returns the SnapshotsAreVisible field value if set, zero value otherwise. func (o *GetResourcePoolResponseResourcePool) GetSnapshotsAreVisible() (res GetResourcePoolResponseResourcePoolgetSnapshotsAreVisibleRetType) { res, _ = o.GetSnapshotsAreVisibleOk() @@ -750,9 +706,6 @@ func (o GetResourcePoolResponseResourcePool) ToMap() (map[string]interface{}, er if val, ok := getGetResourcePoolResponseResourcePoolGetSizeReducibleAtAttributeTypeOk(o.SizeReducibleAt); ok { toSerialize["SizeReducibleAt"] = val } - if val, ok := getGetResourcePoolResponseResourcePoolGetSnapshotScheduleAttributeTypeOk(o.SnapshotSchedule); ok { - toSerialize["SnapshotSchedule"] = val - } if val, ok := getGetResourcePoolResponseResourcePoolgetSnapshotsAreVisibleAttributeTypeOk(o.SnapshotsAreVisible); ok { toSerialize["SnapshotsAreVisible"] = val } diff --git a/services/sfs/model_get_resource_pool_response_resource_pool_test.go b/services/sfs/model_get_resource_pool_response_resource_pool_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_get_resource_pool_response_resource_pool_test.go +++ b/services/sfs/model_get_resource_pool_response_resource_pool_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_get_resource_pool_response_test.go b/services/sfs/model_get_resource_pool_response_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_get_resource_pool_response_test.go +++ b/services/sfs/model_get_resource_pool_response_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_get_resource_pool_snapshot_response.go b/services/sfs/model_get_resource_pool_snapshot_response.go index 5a307c545..06c531f6d 100644 --- a/services/sfs/model_get_resource_pool_snapshot_response.go +++ b/services/sfs/model_get_resource_pool_snapshot_response.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_get_resource_pool_snapshot_response_resource_pool_snapshot.go b/services/sfs/model_get_resource_pool_snapshot_response_resource_pool_snapshot.go index 8dd7f99e7..3a50954b6 100644 --- a/services/sfs/model_get_resource_pool_snapshot_response_resource_pool_snapshot.go +++ b/services/sfs/model_get_resource_pool_snapshot_response_resource_pool_snapshot.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_get_resource_pool_snapshot_response_resource_pool_snapshot_test.go b/services/sfs/model_get_resource_pool_snapshot_response_resource_pool_snapshot_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_get_resource_pool_snapshot_response_resource_pool_snapshot_test.go +++ b/services/sfs/model_get_resource_pool_snapshot_response_resource_pool_snapshot_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_get_resource_pool_snapshot_response_test.go b/services/sfs/model_get_resource_pool_snapshot_response_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_get_resource_pool_snapshot_response_test.go +++ b/services/sfs/model_get_resource_pool_snapshot_response_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_get_share_export_policy_response.go b/services/sfs/model_get_share_export_policy_response.go index 3beb62a99..b42fb12c4 100644 --- a/services/sfs/model_get_share_export_policy_response.go +++ b/services/sfs/model_get_share_export_policy_response.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_get_share_export_policy_response_share_export_policy.go b/services/sfs/model_get_share_export_policy_response_share_export_policy.go index ea854f30e..75a26e9a9 100644 --- a/services/sfs/model_get_share_export_policy_response_share_export_policy.go +++ b/services/sfs/model_get_share_export_policy_response_share_export_policy.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_get_share_export_policy_response_share_export_policy_test.go b/services/sfs/model_get_share_export_policy_response_share_export_policy_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_get_share_export_policy_response_share_export_policy_test.go +++ b/services/sfs/model_get_share_export_policy_response_share_export_policy_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_get_share_export_policy_response_test.go b/services/sfs/model_get_share_export_policy_response_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_get_share_export_policy_response_test.go +++ b/services/sfs/model_get_share_export_policy_response_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_get_share_response.go b/services/sfs/model_get_share_response.go index c3ee6cf6c..974a845e4 100644 --- a/services/sfs/model_get_share_response.go +++ b/services/sfs/model_get_share_response.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_get_share_response_share.go b/services/sfs/model_get_share_response_share.go index 735f5d0f7..6a9eeb23d 100644 --- a/services/sfs/model_get_share_response_share.go +++ b/services/sfs/model_get_share_response_share.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_get_share_response_share_test.go b/services/sfs/model_get_share_response_share_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_get_share_response_share_test.go +++ b/services/sfs/model_get_share_response_share_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_get_share_response_test.go b/services/sfs/model_get_share_response_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_get_share_response_test.go +++ b/services/sfs/model_get_share_response_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_google_protobuf_any.go b/services/sfs/model_google_protobuf_any.go index fafe640f7..c34a3edc3 100644 --- a/services/sfs/model_google_protobuf_any.go +++ b/services/sfs/model_google_protobuf_any.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_google_protobuf_any_test.go b/services/sfs/model_google_protobuf_any_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_google_protobuf_any_test.go +++ b/services/sfs/model_google_protobuf_any_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_list_performance_classes_response.go b/services/sfs/model_list_performance_classes_response.go index 22cec1e32..1e619c27a 100644 --- a/services/sfs/model_list_performance_classes_response.go +++ b/services/sfs/model_list_performance_classes_response.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_list_performance_classes_response_test.go b/services/sfs/model_list_performance_classes_response_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_list_performance_classes_response_test.go +++ b/services/sfs/model_list_performance_classes_response_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_list_resource_pool_snapshots_response.go b/services/sfs/model_list_resource_pool_snapshots_response.go index 7ce52212f..5a11e755f 100644 --- a/services/sfs/model_list_resource_pool_snapshots_response.go +++ b/services/sfs/model_list_resource_pool_snapshots_response.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_list_resource_pool_snapshots_response_test.go b/services/sfs/model_list_resource_pool_snapshots_response_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_list_resource_pool_snapshots_response_test.go +++ b/services/sfs/model_list_resource_pool_snapshots_response_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_list_resource_pools_response.go b/services/sfs/model_list_resource_pools_response.go index def39a1c1..2778b407c 100644 --- a/services/sfs/model_list_resource_pools_response.go +++ b/services/sfs/model_list_resource_pools_response.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_list_resource_pools_response_test.go b/services/sfs/model_list_resource_pools_response_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_list_resource_pools_response_test.go +++ b/services/sfs/model_list_resource_pools_response_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_list_share_export_policies_response.go b/services/sfs/model_list_share_export_policies_response.go index 793a52f2a..4d17d9cda 100644 --- a/services/sfs/model_list_share_export_policies_response.go +++ b/services/sfs/model_list_share_export_policies_response.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_list_share_export_policies_response_test.go b/services/sfs/model_list_share_export_policies_response_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_list_share_export_policies_response_test.go +++ b/services/sfs/model_list_share_export_policies_response_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_list_shares_response.go b/services/sfs/model_list_shares_response.go index c1e127fd2..e564bf3f4 100644 --- a/services/sfs/model_list_shares_response.go +++ b/services/sfs/model_list_shares_response.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_list_shares_response_test.go b/services/sfs/model_list_shares_response_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_list_shares_response_test.go +++ b/services/sfs/model_list_shares_response_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_list_snapshot_schedules_response.go b/services/sfs/model_list_snapshot_schedules_response.go deleted file mode 100644 index c0977b14e..000000000 --- a/services/sfs/model_list_snapshot_schedules_response.go +++ /dev/null @@ -1,128 +0,0 @@ -/* -STACKIT File Storage (SFS) - -API used to create and manage NFS Shares. - -API version: 1beta.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package sfs - -import ( - "encoding/json" -) - -// checks if the ListSnapshotSchedulesResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ListSnapshotSchedulesResponse{} - -/* - types and functions for snapshotSchedules -*/ - -// isArray -type ListSnapshotSchedulesResponseGetSnapshotSchedulesAttributeType = *[]SnapshotSchedule -type ListSnapshotSchedulesResponseGetSnapshotSchedulesArgType = []SnapshotSchedule -type ListSnapshotSchedulesResponseGetSnapshotSchedulesRetType = []SnapshotSchedule - -func getListSnapshotSchedulesResponseGetSnapshotSchedulesAttributeTypeOk(arg ListSnapshotSchedulesResponseGetSnapshotSchedulesAttributeType) (ret ListSnapshotSchedulesResponseGetSnapshotSchedulesRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -func setListSnapshotSchedulesResponseGetSnapshotSchedulesAttributeType(arg *ListSnapshotSchedulesResponseGetSnapshotSchedulesAttributeType, val ListSnapshotSchedulesResponseGetSnapshotSchedulesRetType) { - *arg = &val -} - -// ListSnapshotSchedulesResponse struct for ListSnapshotSchedulesResponse -type ListSnapshotSchedulesResponse struct { - // List of Snapshot Schedules - SnapshotSchedules ListSnapshotSchedulesResponseGetSnapshotSchedulesAttributeType `json:"snapshotSchedules,omitempty"` -} - -// NewListSnapshotSchedulesResponse instantiates a new ListSnapshotSchedulesResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewListSnapshotSchedulesResponse() *ListSnapshotSchedulesResponse { - this := ListSnapshotSchedulesResponse{} - return &this -} - -// NewListSnapshotSchedulesResponseWithDefaults instantiates a new ListSnapshotSchedulesResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewListSnapshotSchedulesResponseWithDefaults() *ListSnapshotSchedulesResponse { - this := ListSnapshotSchedulesResponse{} - return &this -} - -// GetSnapshotSchedules returns the SnapshotSchedules field value if set, zero value otherwise. -func (o *ListSnapshotSchedulesResponse) GetSnapshotSchedules() (res ListSnapshotSchedulesResponseGetSnapshotSchedulesRetType) { - res, _ = o.GetSnapshotSchedulesOk() - return -} - -// GetSnapshotSchedulesOk returns a tuple with the SnapshotSchedules field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ListSnapshotSchedulesResponse) GetSnapshotSchedulesOk() (ret ListSnapshotSchedulesResponseGetSnapshotSchedulesRetType, ok bool) { - return getListSnapshotSchedulesResponseGetSnapshotSchedulesAttributeTypeOk(o.SnapshotSchedules) -} - -// HasSnapshotSchedules returns a boolean if a field has been set. -func (o *ListSnapshotSchedulesResponse) HasSnapshotSchedules() bool { - _, ok := o.GetSnapshotSchedulesOk() - return ok -} - -// SetSnapshotSchedules gets a reference to the given []SnapshotSchedule and assigns it to the SnapshotSchedules field. -func (o *ListSnapshotSchedulesResponse) SetSnapshotSchedules(v ListSnapshotSchedulesResponseGetSnapshotSchedulesRetType) { - setListSnapshotSchedulesResponseGetSnapshotSchedulesAttributeType(&o.SnapshotSchedules, v) -} - -func (o ListSnapshotSchedulesResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getListSnapshotSchedulesResponseGetSnapshotSchedulesAttributeTypeOk(o.SnapshotSchedules); ok { - toSerialize["SnapshotSchedules"] = val - } - return toSerialize, nil -} - -type NullableListSnapshotSchedulesResponse struct { - value *ListSnapshotSchedulesResponse - isSet bool -} - -func (v NullableListSnapshotSchedulesResponse) Get() *ListSnapshotSchedulesResponse { - return v.value -} - -func (v *NullableListSnapshotSchedulesResponse) Set(val *ListSnapshotSchedulesResponse) { - v.value = val - v.isSet = true -} - -func (v NullableListSnapshotSchedulesResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableListSnapshotSchedulesResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableListSnapshotSchedulesResponse(val *ListSnapshotSchedulesResponse) *NullableListSnapshotSchedulesResponse { - return &NullableListSnapshotSchedulesResponse{value: val, isSet: true} -} - -func (v NullableListSnapshotSchedulesResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableListSnapshotSchedulesResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/sfs/model_list_snapshot_schedules_response_test.go b/services/sfs/model_list_snapshot_schedules_response_test.go deleted file mode 100644 index 808482bcc..000000000 --- a/services/sfs/model_list_snapshot_schedules_response_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT File Storage (SFS) - -API used to create and manage NFS Shares. - -API version: 1beta.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package sfs diff --git a/services/sfs/model_performance_class.go b/services/sfs/model_performance_class.go index 6741d0199..b6ec47248 100644 --- a/services/sfs/model_performance_class.go +++ b/services/sfs/model_performance_class.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_performance_class_test.go b/services/sfs/model_performance_class_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_performance_class_test.go +++ b/services/sfs/model_performance_class_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_resource_pool.go b/services/sfs/model_resource_pool.go index 1a3ebf5b1..8c2ad9740 100644 --- a/services/sfs/model_resource_pool.go +++ b/services/sfs/model_resource_pool.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -242,26 +242,6 @@ func setResourcePoolGetSizeReducibleAtAttributeType(arg *ResourcePoolGetSizeRedu *arg = &val } -/* - types and functions for snapshotSchedule -*/ - -// isModel -type ResourcePoolGetSnapshotScheduleAttributeType = *SnapshotSchedule -type ResourcePoolGetSnapshotScheduleArgType = SnapshotSchedule -type ResourcePoolGetSnapshotScheduleRetType = SnapshotSchedule - -func getResourcePoolGetSnapshotScheduleAttributeTypeOk(arg ResourcePoolGetSnapshotScheduleAttributeType) (ret ResourcePoolGetSnapshotScheduleRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -func setResourcePoolGetSnapshotScheduleAttributeType(arg *ResourcePoolGetSnapshotScheduleAttributeType, val ResourcePoolGetSnapshotScheduleRetType) { - *arg = &val -} - /* types and functions for snapshotsAreVisible */ @@ -344,8 +324,7 @@ type ResourcePool struct { // Time when the performance class can be downgraded again. PerformanceClassDowngradableAt ResourcePoolGetPerformanceClassDowngradableAtAttributeType `json:"performanceClassDowngradableAt,omitempty"` // Time when the size can be reduced again. - SizeReducibleAt ResourcePoolGetSizeReducibleAtAttributeType `json:"sizeReducibleAt,omitempty"` - SnapshotSchedule ResourcePoolGetSnapshotScheduleAttributeType `json:"snapshotSchedule,omitempty"` + SizeReducibleAt ResourcePoolGetSizeReducibleAtAttributeType `json:"sizeReducibleAt,omitempty"` // 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. SnapshotsAreVisible ResourcePoolgetSnapshotsAreVisibleAttributeType `json:"snapshotsAreVisible,omitempty"` Space ResourcePoolGetSpaceAttributeType `json:"space,omitempty"` @@ -623,29 +602,6 @@ func (o *ResourcePool) SetSizeReducibleAt(v ResourcePoolGetSizeReducibleAtRetTyp setResourcePoolGetSizeReducibleAtAttributeType(&o.SizeReducibleAt, v) } -// GetSnapshotSchedule returns the SnapshotSchedule field value if set, zero value otherwise. -func (o *ResourcePool) GetSnapshotSchedule() (res ResourcePoolGetSnapshotScheduleRetType) { - res, _ = o.GetSnapshotScheduleOk() - return -} - -// GetSnapshotScheduleOk returns a tuple with the SnapshotSchedule field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ResourcePool) GetSnapshotScheduleOk() (ret ResourcePoolGetSnapshotScheduleRetType, ok bool) { - return getResourcePoolGetSnapshotScheduleAttributeTypeOk(o.SnapshotSchedule) -} - -// HasSnapshotSchedule returns a boolean if a field has been set. -func (o *ResourcePool) HasSnapshotSchedule() bool { - _, ok := o.GetSnapshotScheduleOk() - return ok -} - -// SetSnapshotSchedule gets a reference to the given SnapshotSchedule and assigns it to the SnapshotSchedule field. -func (o *ResourcePool) SetSnapshotSchedule(v ResourcePoolGetSnapshotScheduleRetType) { - setResourcePoolGetSnapshotScheduleAttributeType(&o.SnapshotSchedule, v) -} - // GetSnapshotsAreVisible returns the SnapshotsAreVisible field value if set, zero value otherwise. func (o *ResourcePool) GetSnapshotsAreVisible() (res ResourcePoolgetSnapshotsAreVisibleRetType) { res, _ = o.GetSnapshotsAreVisibleOk() @@ -750,9 +706,6 @@ func (o ResourcePool) ToMap() (map[string]interface{}, error) { if val, ok := getResourcePoolGetSizeReducibleAtAttributeTypeOk(o.SizeReducibleAt); ok { toSerialize["SizeReducibleAt"] = val } - if val, ok := getResourcePoolGetSnapshotScheduleAttributeTypeOk(o.SnapshotSchedule); ok { - toSerialize["SnapshotSchedule"] = val - } if val, ok := getResourcePoolgetSnapshotsAreVisibleAttributeTypeOk(o.SnapshotsAreVisible); ok { toSerialize["SnapshotsAreVisible"] = val } diff --git a/services/sfs/model_resource_pool_performance_class.go b/services/sfs/model_resource_pool_performance_class.go index b03fdc829..9886af6f5 100644 --- a/services/sfs/model_resource_pool_performance_class.go +++ b/services/sfs/model_resource_pool_performance_class.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_resource_pool_performance_class_test.go b/services/sfs/model_resource_pool_performance_class_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_resource_pool_performance_class_test.go +++ b/services/sfs/model_resource_pool_performance_class_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_resource_pool_snapshot.go b/services/sfs/model_resource_pool_snapshot.go index 0484b7152..0ced29207 100644 --- a/services/sfs/model_resource_pool_snapshot.go +++ b/services/sfs/model_resource_pool_snapshot.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_resource_pool_snapshot_test.go b/services/sfs/model_resource_pool_snapshot_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_resource_pool_snapshot_test.go +++ b/services/sfs/model_resource_pool_snapshot_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_resource_pool_space.go b/services/sfs/model_resource_pool_space.go index 0df5ae97e..71e46d52f 100644 --- a/services/sfs/model_resource_pool_space.go +++ b/services/sfs/model_resource_pool_space.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_resource_pool_space_test.go b/services/sfs/model_resource_pool_space_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_resource_pool_space_test.go +++ b/services/sfs/model_resource_pool_space_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_resource_pool_test.go b/services/sfs/model_resource_pool_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_resource_pool_test.go +++ b/services/sfs/model_resource_pool_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_share.go b/services/sfs/model_share.go index 5bad3879d..acf07c5f0 100644 --- a/services/sfs/model_share.go +++ b/services/sfs/model_share.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_share_export_policy.go b/services/sfs/model_share_export_policy.go index daf589c7a..0cb949a30 100644 --- a/services/sfs/model_share_export_policy.go +++ b/services/sfs/model_share_export_policy.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_share_export_policy_rule.go b/services/sfs/model_share_export_policy_rule.go index 98b650648..b0b32f433 100644 --- a/services/sfs/model_share_export_policy_rule.go +++ b/services/sfs/model_share_export_policy_rule.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_share_export_policy_rule_test.go b/services/sfs/model_share_export_policy_rule_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_share_export_policy_rule_test.go +++ b/services/sfs/model_share_export_policy_rule_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_share_export_policy_test.go b/services/sfs/model_share_export_policy_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_share_export_policy_test.go +++ b/services/sfs/model_share_export_policy_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_share_test.go b/services/sfs/model_share_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_share_test.go +++ b/services/sfs/model_share_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_snapshot_schedule.go b/services/sfs/model_snapshot_schedule.go deleted file mode 100644 index 652dedbb2..000000000 --- a/services/sfs/model_snapshot_schedule.go +++ /dev/null @@ -1,178 +0,0 @@ -/* -STACKIT File Storage (SFS) - -API used to create and manage NFS Shares. - -API version: 1beta.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package sfs - -import ( - "encoding/json" -) - -// checks if the SnapshotSchedule type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SnapshotSchedule{} - -/* - types and functions for cron -*/ - -// isNotNullableString -type SnapshotScheduleGetCronAttributeType = *string - -func getSnapshotScheduleGetCronAttributeTypeOk(arg SnapshotScheduleGetCronAttributeType) (ret SnapshotScheduleGetCronRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -func setSnapshotScheduleGetCronAttributeType(arg *SnapshotScheduleGetCronAttributeType, val SnapshotScheduleGetCronRetType) { - *arg = &val -} - -type SnapshotScheduleGetCronArgType = string -type SnapshotScheduleGetCronRetType = string - -/* - types and functions for name -*/ - -// isNotNullableString -type SnapshotScheduleGetNameAttributeType = *string - -func getSnapshotScheduleGetNameAttributeTypeOk(arg SnapshotScheduleGetNameAttributeType) (ret SnapshotScheduleGetNameRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -func setSnapshotScheduleGetNameAttributeType(arg *SnapshotScheduleGetNameAttributeType, val SnapshotScheduleGetNameRetType) { - *arg = &val -} - -type SnapshotScheduleGetNameArgType = string -type SnapshotScheduleGetNameRetType = string - -// SnapshotSchedule struct for SnapshotSchedule -type SnapshotSchedule struct { - // Cron of the Snapshot Schedule (follows the cron schedule expression in Unix-like systems) - Cron SnapshotScheduleGetCronAttributeType `json:"cron,omitempty"` - // Name of the Snapshot Schedule - Name SnapshotScheduleGetNameAttributeType `json:"name,omitempty"` -} - -// NewSnapshotSchedule instantiates a new SnapshotSchedule object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSnapshotSchedule() *SnapshotSchedule { - this := SnapshotSchedule{} - return &this -} - -// NewSnapshotScheduleWithDefaults instantiates a new SnapshotSchedule object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSnapshotScheduleWithDefaults() *SnapshotSchedule { - this := SnapshotSchedule{} - return &this -} - -// GetCron returns the Cron field value if set, zero value otherwise. -func (o *SnapshotSchedule) GetCron() (res SnapshotScheduleGetCronRetType) { - res, _ = o.GetCronOk() - return -} - -// GetCronOk returns a tuple with the Cron field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SnapshotSchedule) GetCronOk() (ret SnapshotScheduleGetCronRetType, ok bool) { - return getSnapshotScheduleGetCronAttributeTypeOk(o.Cron) -} - -// HasCron returns a boolean if a field has been set. -func (o *SnapshotSchedule) HasCron() bool { - _, ok := o.GetCronOk() - return ok -} - -// SetCron gets a reference to the given string and assigns it to the Cron field. -func (o *SnapshotSchedule) SetCron(v SnapshotScheduleGetCronRetType) { - setSnapshotScheduleGetCronAttributeType(&o.Cron, v) -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *SnapshotSchedule) GetName() (res SnapshotScheduleGetNameRetType) { - res, _ = o.GetNameOk() - return -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SnapshotSchedule) GetNameOk() (ret SnapshotScheduleGetNameRetType, ok bool) { - return getSnapshotScheduleGetNameAttributeTypeOk(o.Name) -} - -// HasName returns a boolean if a field has been set. -func (o *SnapshotSchedule) HasName() bool { - _, ok := o.GetNameOk() - return ok -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *SnapshotSchedule) SetName(v SnapshotScheduleGetNameRetType) { - setSnapshotScheduleGetNameAttributeType(&o.Name, v) -} - -func (o SnapshotSchedule) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getSnapshotScheduleGetCronAttributeTypeOk(o.Cron); ok { - toSerialize["Cron"] = val - } - if val, ok := getSnapshotScheduleGetNameAttributeTypeOk(o.Name); ok { - toSerialize["Name"] = val - } - return toSerialize, nil -} - -type NullableSnapshotSchedule struct { - value *SnapshotSchedule - isSet bool -} - -func (v NullableSnapshotSchedule) Get() *SnapshotSchedule { - return v.value -} - -func (v *NullableSnapshotSchedule) Set(val *SnapshotSchedule) { - v.value = val - v.isSet = true -} - -func (v NullableSnapshotSchedule) IsSet() bool { - return v.isSet -} - -func (v *NullableSnapshotSchedule) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSnapshotSchedule(val *SnapshotSchedule) *NullableSnapshotSchedule { - return &NullableSnapshotSchedule{value: val, isSet: true} -} - -func (v NullableSnapshotSchedule) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSnapshotSchedule) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/sfs/model_snapshot_schedule_test.go b/services/sfs/model_snapshot_schedule_test.go deleted file mode 100644 index 808482bcc..000000000 --- a/services/sfs/model_snapshot_schedule_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT File Storage (SFS) - -API used to create and manage NFS Shares. - -API version: 1beta.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package sfs diff --git a/services/sfs/model_status.go b/services/sfs/model_status.go index c948781eb..48f4d3db7 100644 --- a/services/sfs/model_status.go +++ b/services/sfs/model_status.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_status_test.go b/services/sfs/model_status_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_status_test.go +++ b/services/sfs/model_status_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_update_resource_pool_payload.go b/services/sfs/model_update_resource_pool_payload.go index 8020f1a26..44706e3bb 100644 --- a/services/sfs/model_update_resource_pool_payload.go +++ b/services/sfs/model_update_resource_pool_payload.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -98,27 +98,6 @@ func setUpdateResourcePoolPayloadGetSizeGigabytesAttributeType(arg *UpdateResour *arg = val } -/* - types and functions for snapshotScheduleName -*/ - -// isNotNullableString -type UpdateResourcePoolPayloadGetSnapshotScheduleNameAttributeType = *string - -func getUpdateResourcePoolPayloadGetSnapshotScheduleNameAttributeTypeOk(arg UpdateResourcePoolPayloadGetSnapshotScheduleNameAttributeType) (ret UpdateResourcePoolPayloadGetSnapshotScheduleNameRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -func setUpdateResourcePoolPayloadGetSnapshotScheduleNameAttributeType(arg *UpdateResourcePoolPayloadGetSnapshotScheduleNameAttributeType, val UpdateResourcePoolPayloadGetSnapshotScheduleNameRetType) { - *arg = &val -} - -type UpdateResourcePoolPayloadGetSnapshotScheduleNameArgType = string -type UpdateResourcePoolPayloadGetSnapshotScheduleNameRetType = string - /* types and functions for snapshotsAreVisible */ @@ -150,8 +129,6 @@ type UpdateResourcePoolPayload struct { // (optional) Size of the Resource Pool (unit: gigabytes) // Can be cast to int32 without loss of precision. SizeGigabytes UpdateResourcePoolPayloadGetSizeGigabytesAttributeType `json:"sizeGigabytes,omitempty"` - // (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 - SnapshotScheduleName UpdateResourcePoolPayloadGetSnapshotScheduleNameAttributeType `json:"snapshotScheduleName,omitempty"` // 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. SnapshotsAreVisible UpdateResourcePoolPayloadgetSnapshotsAreVisibleAttributeType `json:"snapshotsAreVisible,omitempty"` } @@ -276,29 +253,6 @@ func (o *UpdateResourcePoolPayload) UnsetSizeGigabytes() { o.SizeGigabytes = nil } -// GetSnapshotScheduleName returns the SnapshotScheduleName field value if set, zero value otherwise. -func (o *UpdateResourcePoolPayload) GetSnapshotScheduleName() (res UpdateResourcePoolPayloadGetSnapshotScheduleNameRetType) { - res, _ = o.GetSnapshotScheduleNameOk() - return -} - -// GetSnapshotScheduleNameOk returns a tuple with the SnapshotScheduleName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *UpdateResourcePoolPayload) GetSnapshotScheduleNameOk() (ret UpdateResourcePoolPayloadGetSnapshotScheduleNameRetType, ok bool) { - return getUpdateResourcePoolPayloadGetSnapshotScheduleNameAttributeTypeOk(o.SnapshotScheduleName) -} - -// HasSnapshotScheduleName returns a boolean if a field has been set. -func (o *UpdateResourcePoolPayload) HasSnapshotScheduleName() bool { - _, ok := o.GetSnapshotScheduleNameOk() - return ok -} - -// SetSnapshotScheduleName gets a reference to the given string and assigns it to the SnapshotScheduleName field. -func (o *UpdateResourcePoolPayload) SetSnapshotScheduleName(v UpdateResourcePoolPayloadGetSnapshotScheduleNameRetType) { - setUpdateResourcePoolPayloadGetSnapshotScheduleNameAttributeType(&o.SnapshotScheduleName, v) -} - // GetSnapshotsAreVisible returns the SnapshotsAreVisible field value if set, zero value otherwise. func (o *UpdateResourcePoolPayload) GetSnapshotsAreVisible() (res UpdateResourcePoolPayloadgetSnapshotsAreVisibleRetType) { res, _ = o.GetSnapshotsAreVisibleOk() @@ -336,9 +290,6 @@ func (o UpdateResourcePoolPayload) ToMap() (map[string]interface{}, error) { if val, ok := getUpdateResourcePoolPayloadGetSizeGigabytesAttributeTypeOk(o.SizeGigabytes); ok { toSerialize["SizeGigabytes"] = val } - if val, ok := getUpdateResourcePoolPayloadGetSnapshotScheduleNameAttributeTypeOk(o.SnapshotScheduleName); ok { - toSerialize["SnapshotScheduleName"] = val - } if val, ok := getUpdateResourcePoolPayloadgetSnapshotsAreVisibleAttributeTypeOk(o.SnapshotsAreVisible); ok { toSerialize["SnapshotsAreVisible"] = val } diff --git a/services/sfs/model_update_resource_pool_payload_test.go b/services/sfs/model_update_resource_pool_payload_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_update_resource_pool_payload_test.go +++ b/services/sfs/model_update_resource_pool_payload_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_update_resource_pool_response.go b/services/sfs/model_update_resource_pool_response.go index d1cacfa07..c270f21e9 100644 --- a/services/sfs/model_update_resource_pool_response.go +++ b/services/sfs/model_update_resource_pool_response.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_update_resource_pool_response_resource_pool.go b/services/sfs/model_update_resource_pool_response_resource_pool.go index 710bfb7ae..da7f2ba77 100644 --- a/services/sfs/model_update_resource_pool_response_resource_pool.go +++ b/services/sfs/model_update_resource_pool_response_resource_pool.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -242,26 +242,6 @@ func setUpdateResourcePoolResponseResourcePoolGetSizeReducibleAtAttributeType(ar *arg = &val } -/* - types and functions for snapshotSchedule -*/ - -// isModel -type UpdateResourcePoolResponseResourcePoolGetSnapshotScheduleAttributeType = *SnapshotSchedule -type UpdateResourcePoolResponseResourcePoolGetSnapshotScheduleArgType = SnapshotSchedule -type UpdateResourcePoolResponseResourcePoolGetSnapshotScheduleRetType = SnapshotSchedule - -func getUpdateResourcePoolResponseResourcePoolGetSnapshotScheduleAttributeTypeOk(arg UpdateResourcePoolResponseResourcePoolGetSnapshotScheduleAttributeType) (ret UpdateResourcePoolResponseResourcePoolGetSnapshotScheduleRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -func setUpdateResourcePoolResponseResourcePoolGetSnapshotScheduleAttributeType(arg *UpdateResourcePoolResponseResourcePoolGetSnapshotScheduleAttributeType, val UpdateResourcePoolResponseResourcePoolGetSnapshotScheduleRetType) { - *arg = &val -} - /* types and functions for snapshotsAreVisible */ @@ -344,8 +324,7 @@ type UpdateResourcePoolResponseResourcePool struct { // Time when the performance class can be downgraded again. PerformanceClassDowngradableAt UpdateResourcePoolResponseResourcePoolGetPerformanceClassDowngradableAtAttributeType `json:"performanceClassDowngradableAt,omitempty"` // Time when the size can be reduced again. - SizeReducibleAt UpdateResourcePoolResponseResourcePoolGetSizeReducibleAtAttributeType `json:"sizeReducibleAt,omitempty"` - SnapshotSchedule UpdateResourcePoolResponseResourcePoolGetSnapshotScheduleAttributeType `json:"snapshotSchedule,omitempty"` + SizeReducibleAt UpdateResourcePoolResponseResourcePoolGetSizeReducibleAtAttributeType `json:"sizeReducibleAt,omitempty"` // 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. SnapshotsAreVisible UpdateResourcePoolResponseResourcePoolgetSnapshotsAreVisibleAttributeType `json:"snapshotsAreVisible,omitempty"` Space UpdateResourcePoolResponseResourcePoolGetSpaceAttributeType `json:"space,omitempty"` @@ -623,29 +602,6 @@ func (o *UpdateResourcePoolResponseResourcePool) SetSizeReducibleAt(v UpdateReso setUpdateResourcePoolResponseResourcePoolGetSizeReducibleAtAttributeType(&o.SizeReducibleAt, v) } -// GetSnapshotSchedule returns the SnapshotSchedule field value if set, zero value otherwise. -func (o *UpdateResourcePoolResponseResourcePool) GetSnapshotSchedule() (res UpdateResourcePoolResponseResourcePoolGetSnapshotScheduleRetType) { - res, _ = o.GetSnapshotScheduleOk() - return -} - -// GetSnapshotScheduleOk returns a tuple with the SnapshotSchedule field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *UpdateResourcePoolResponseResourcePool) GetSnapshotScheduleOk() (ret UpdateResourcePoolResponseResourcePoolGetSnapshotScheduleRetType, ok bool) { - return getUpdateResourcePoolResponseResourcePoolGetSnapshotScheduleAttributeTypeOk(o.SnapshotSchedule) -} - -// HasSnapshotSchedule returns a boolean if a field has been set. -func (o *UpdateResourcePoolResponseResourcePool) HasSnapshotSchedule() bool { - _, ok := o.GetSnapshotScheduleOk() - return ok -} - -// SetSnapshotSchedule gets a reference to the given SnapshotSchedule and assigns it to the SnapshotSchedule field. -func (o *UpdateResourcePoolResponseResourcePool) SetSnapshotSchedule(v UpdateResourcePoolResponseResourcePoolGetSnapshotScheduleRetType) { - setUpdateResourcePoolResponseResourcePoolGetSnapshotScheduleAttributeType(&o.SnapshotSchedule, v) -} - // GetSnapshotsAreVisible returns the SnapshotsAreVisible field value if set, zero value otherwise. func (o *UpdateResourcePoolResponseResourcePool) GetSnapshotsAreVisible() (res UpdateResourcePoolResponseResourcePoolgetSnapshotsAreVisibleRetType) { res, _ = o.GetSnapshotsAreVisibleOk() @@ -750,9 +706,6 @@ func (o UpdateResourcePoolResponseResourcePool) ToMap() (map[string]interface{}, if val, ok := getUpdateResourcePoolResponseResourcePoolGetSizeReducibleAtAttributeTypeOk(o.SizeReducibleAt); ok { toSerialize["SizeReducibleAt"] = val } - if val, ok := getUpdateResourcePoolResponseResourcePoolGetSnapshotScheduleAttributeTypeOk(o.SnapshotSchedule); ok { - toSerialize["SnapshotSchedule"] = val - } if val, ok := getUpdateResourcePoolResponseResourcePoolgetSnapshotsAreVisibleAttributeTypeOk(o.SnapshotsAreVisible); ok { toSerialize["SnapshotsAreVisible"] = val } diff --git a/services/sfs/model_update_resource_pool_response_resource_pool_test.go b/services/sfs/model_update_resource_pool_response_resource_pool_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_update_resource_pool_response_resource_pool_test.go +++ b/services/sfs/model_update_resource_pool_response_resource_pool_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_update_resource_pool_response_test.go b/services/sfs/model_update_resource_pool_response_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_update_resource_pool_response_test.go +++ b/services/sfs/model_update_resource_pool_response_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_update_share_export_policy_body_rule.go b/services/sfs/model_update_share_export_policy_body_rule.go index f35a09ac6..3faed0681 100644 --- a/services/sfs/model_update_share_export_policy_body_rule.go +++ b/services/sfs/model_update_share_export_policy_body_rule.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_update_share_export_policy_body_rule_test.go b/services/sfs/model_update_share_export_policy_body_rule_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_update_share_export_policy_body_rule_test.go +++ b/services/sfs/model_update_share_export_policy_body_rule_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_update_share_export_policy_payload.go b/services/sfs/model_update_share_export_policy_payload.go index aa93631bc..2822282f2 100644 --- a/services/sfs/model_update_share_export_policy_payload.go +++ b/services/sfs/model_update_share_export_policy_payload.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_update_share_export_policy_payload_test.go b/services/sfs/model_update_share_export_policy_payload_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_update_share_export_policy_payload_test.go +++ b/services/sfs/model_update_share_export_policy_payload_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_update_share_export_policy_response.go b/services/sfs/model_update_share_export_policy_response.go index 333e42cfe..65bbcdc25 100644 --- a/services/sfs/model_update_share_export_policy_response.go +++ b/services/sfs/model_update_share_export_policy_response.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_update_share_export_policy_response_test.go b/services/sfs/model_update_share_export_policy_response_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_update_share_export_policy_response_test.go +++ b/services/sfs/model_update_share_export_policy_response_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_update_share_payload.go b/services/sfs/model_update_share_payload.go index 0565bc891..9675d0529 100644 --- a/services/sfs/model_update_share_payload.go +++ b/services/sfs/model_update_share_payload.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_update_share_payload_test.go b/services/sfs/model_update_share_payload_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_update_share_payload_test.go +++ b/services/sfs/model_update_share_payload_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_update_share_response.go b/services/sfs/model_update_share_response.go index 46aa1a530..09166d6ec 100644 --- a/services/sfs/model_update_share_response.go +++ b/services/sfs/model_update_share_response.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_update_share_response_share.go b/services/sfs/model_update_share_response_share.go index 34763c1f7..813e880e2 100644 --- a/services/sfs/model_update_share_response_share.go +++ b/services/sfs/model_update_share_response_share.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_update_share_response_share_test.go b/services/sfs/model_update_share_response_share_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_update_share_response_share_test.go +++ b/services/sfs/model_update_share_response_share_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_update_share_response_test.go b/services/sfs/model_update_share_response_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_update_share_response_test.go +++ b/services/sfs/model_update_share_response_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_validation_error.go b/services/sfs/model_validation_error.go index 57c414a14..feb7bbc76 100644 --- a/services/sfs/model_validation_error.go +++ b/services/sfs/model_validation_error.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_validation_error_all_of.go b/services/sfs/model_validation_error_all_of.go index f9556af6b..38df249be 100644 --- a/services/sfs/model_validation_error_all_of.go +++ b/services/sfs/model_validation_error_all_of.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_validation_error_all_of_test.go b/services/sfs/model_validation_error_all_of_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_validation_error_all_of_test.go +++ b/services/sfs/model_validation_error_all_of_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_validation_error_field.go b/services/sfs/model_validation_error_field.go index dc230c393..35657ab4a 100644 --- a/services/sfs/model_validation_error_field.go +++ b/services/sfs/model_validation_error_field.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_validation_error_field_test.go b/services/sfs/model_validation_error_field_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_validation_error_field_test.go +++ b/services/sfs/model_validation_error_field_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/model_validation_error_test.go b/services/sfs/model_validation_error_test.go index 808482bcc..cddb93322 100644 --- a/services/sfs/model_validation_error_test.go +++ b/services/sfs/model_validation_error_test.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/sfs/oas_commit b/services/sfs/oas_commit index 1c4304d8a..0e5eba1af 100644 --- a/services/sfs/oas_commit +++ b/services/sfs/oas_commit @@ -1 +1 @@ -4ba9d6ffcf1ec61aff0807a261f8c0ca25d266f8 +031ff7117541bde58d4c349de06540db30a96cc6 diff --git a/services/sfs/utils.go b/services/sfs/utils.go index 0765ee572..143320758 100644 --- a/services/sfs/utils.go +++ b/services/sfs/utils.go @@ -3,7 +3,7 @@ STACKIT File Storage (SFS) API used to create and manage NFS Shares. -API version: 1beta.0.0 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. From b73f4820c8360293e1062f0c8b754dfa87f84079 Mon Sep 17 00:00:00 2001 From: Marcel Jacek Date: Tue, 3 Feb 2026 09:26:29 +0100 Subject: [PATCH 2/2] add changelog entries --- CHANGELOG.md | 5 +++++ services/sfs/CHANGELOG.md | 6 ++++++ services/sfs/VERSION | 2 +- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a65b1333..0a0a8ec8a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -167,6 +167,11 @@ - [v1.2.6](services/serviceenablement/CHANGELOG.md#v126) - **Dependencies**: Bump `github.com/golang-jwt/jwt/v5` from `v5.3.0` to `v5.3.1` - `sfs`: + - [v0.3.0](services/sfs/CHANGELOG.md#v030) + - **Feature:** Switch from `v1beta` API version to `v1` version. + - **Breaking change:** Remove `ListSnapshotSchedules` method + - **Breaking change:** Remove field `SnapshotScheduleName` from `CreateResourcePoolPayload` and `UpdateResourcePoolPayload` model + - **Breaking change:** Remove field `SnapshotSchedule` from `CreateResourcePoolResponseResourcePool`, `GetResourcePoolResponseResourcePool`, `UpdateResourcePoolResponseResourcePoolGetStateRetType` and `ResourcePool` model - [v0.2.3](services/sfs/CHANGELOG.md#v023) - Bump STACKIT SDK core module from `v0.21.0` to `v0.21.1` - [v0.2.2](services/sfs/CHANGELOG.md#v022) diff --git a/services/sfs/CHANGELOG.md b/services/sfs/CHANGELOG.md index 561727ff5..d50e825fe 100644 --- a/services/sfs/CHANGELOG.md +++ b/services/sfs/CHANGELOG.md @@ -1,3 +1,9 @@ +## v0.3.0 +- **Feature:** Switch from `v1beta` API version to `v1` version. +- **Breaking change:** Remove `ListSnapshotSchedules` method +- **Breaking change:** Remove field `SnapshotScheduleName` from `CreateResourcePoolPayload` and `UpdateResourcePoolPayload` model +- **Breaking change:** Remove field `SnapshotSchedule` from `CreateResourcePoolResponseResourcePool`, `GetResourcePoolResponseResourcePool`, `UpdateResourcePoolResponseResourcePoolGetStateRetType` and `ResourcePool` model + ## v0.2.3 - Bump STACKIT SDK core module from `v0.21.0` to `v0.21.1` diff --git a/services/sfs/VERSION b/services/sfs/VERSION index b78946bb1..d4dfa5639 100644 --- a/services/sfs/VERSION +++ b/services/sfs/VERSION @@ -1 +1 @@ -v0.2.3 \ No newline at end of file +v0.3.0 \ No newline at end of file