Skip to content

Commit e4c9a80

Browse files
committed
2023-06-26 : There is 1 file that was modified in the project. It is api_cells.go There are 7 files that was added in the project. Respectively are odel_batch_lock_request.go, odel_batch_protect_request.go, odel_batch_split_request.go, and so on.
1 parent 88d35d8 commit e4c9a80

8 files changed

+523
-0
lines changed

api_cells.go

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25741,6 +25741,113 @@ func (a *CellsApiService) PostBatchConvert(data *PostBatchConvertRequest) ([]byt
2574125741

2574225742
return localVarReturnValue, localVarHttpResponse, err
2574325743
}
25744+
func (a *CellsApiService) PostBatchProtect(data *PostBatchProtectRequest) ([]byte, *http.Response, error) {
25745+
var (
25746+
localVarReturnValue []byte
25747+
)
25748+
25749+
r, err := data.CreateRequestData(a.client)
25750+
if err != nil {
25751+
return localVarReturnValue, nil, err
25752+
}
25753+
25754+
localVarHttpResponse, err := a.client.callAPI(r)
25755+
if err != nil || localVarHttpResponse == nil {
25756+
return localVarReturnValue, localVarHttpResponse, err
25757+
}
25758+
defer localVarHttpResponse.Body.Close()
25759+
if localVarHttpResponse.StatusCode >= 300 {
25760+
bodyBytes, _ := ioutil.ReadAll(localVarHttpResponse.Body)
25761+
return localVarReturnValue, localVarHttpResponse, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
25762+
}
25763+
25764+
if localVarReturnValue, err = ioutil.ReadAll(localVarHttpResponse.Body); err != nil {
25765+
return localVarReturnValue, localVarHttpResponse, err
25766+
}
25767+
25768+
return localVarReturnValue, localVarHttpResponse, err
25769+
}
25770+
25771+
func (a *CellsApiService) PostBatchLock(data *PostBatchLockRequest) ([]byte, *http.Response, error) {
25772+
var (
25773+
localVarReturnValue []byte
25774+
)
25775+
25776+
r, err := data.CreateRequestData(a.client)
25777+
if err != nil {
25778+
return localVarReturnValue, nil, err
25779+
}
25780+
25781+
localVarHttpResponse, err := a.client.callAPI(r)
25782+
if err != nil || localVarHttpResponse == nil {
25783+
return localVarReturnValue, localVarHttpResponse, err
25784+
}
25785+
defer localVarHttpResponse.Body.Close()
25786+
if localVarHttpResponse.StatusCode >= 300 {
25787+
bodyBytes, _ := ioutil.ReadAll(localVarHttpResponse.Body)
25788+
return localVarReturnValue, localVarHttpResponse, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
25789+
}
25790+
25791+
if localVarReturnValue, err = ioutil.ReadAll(localVarHttpResponse.Body); err != nil {
25792+
return localVarReturnValue, localVarHttpResponse, err
25793+
}
25794+
25795+
return localVarReturnValue, localVarHttpResponse, err
25796+
}
25797+
25798+
func (a *CellsApiService) PostBatchUnlock(data *PostBatchUnlockRequest) ([]byte, *http.Response, error) {
25799+
var (
25800+
localVarReturnValue []byte
25801+
)
25802+
25803+
r, err := data.CreateRequestData(a.client)
25804+
if err != nil {
25805+
return localVarReturnValue, nil, err
25806+
}
25807+
25808+
localVarHttpResponse, err := a.client.callAPI(r)
25809+
if err != nil || localVarHttpResponse == nil {
25810+
return localVarReturnValue, localVarHttpResponse, err
25811+
}
25812+
defer localVarHttpResponse.Body.Close()
25813+
if localVarHttpResponse.StatusCode >= 300 {
25814+
bodyBytes, _ := ioutil.ReadAll(localVarHttpResponse.Body)
25815+
return localVarReturnValue, localVarHttpResponse, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
25816+
}
25817+
25818+
if localVarReturnValue, err = ioutil.ReadAll(localVarHttpResponse.Body); err != nil {
25819+
return localVarReturnValue, localVarHttpResponse, err
25820+
}
25821+
25822+
return localVarReturnValue, localVarHttpResponse, err
25823+
}
25824+
25825+
func (a *CellsApiService) PostBatchSplit(data *PostBatchSplitRequest) ([]byte, *http.Response, error) {
25826+
var (
25827+
localVarReturnValue []byte
25828+
)
25829+
25830+
r, err := data.CreateRequestData(a.client)
25831+
if err != nil {
25832+
return localVarReturnValue, nil, err
25833+
}
25834+
25835+
localVarHttpResponse, err := a.client.callAPI(r)
25836+
if err != nil || localVarHttpResponse == nil {
25837+
return localVarReturnValue, localVarHttpResponse, err
25838+
}
25839+
defer localVarHttpResponse.Body.Close()
25840+
if localVarHttpResponse.StatusCode >= 300 {
25841+
bodyBytes, _ := ioutil.ReadAll(localVarHttpResponse.Body)
25842+
return localVarReturnValue, localVarHttpResponse, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
25843+
}
25844+
25845+
if localVarReturnValue, err = ioutil.ReadAll(localVarHttpResponse.Body); err != nil {
25846+
return localVarReturnValue, localVarHttpResponse, err
25847+
}
25848+
25849+
return localVarReturnValue, localVarHttpResponse, err
25850+
}
2574425851

2574525852
func (a *CellsApiService) GetExtractBarcodes(data *GetExtractBarcodesRequest) (BarcodeResponseList, *http.Response, error) {
2574625853
var (

model_batch_lock_request.go

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/** --------------------------------------------------------------------------------------------------------------------
2+
* <copyright company="Aspose" file="BatchLockRequest.go">
3+
* Copyright (c) 2023 Aspose.Cells Cloud
4+
* </copyright>
5+
* <summary>
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
23+
* </summary>
24+
-------------------------------------------------------------------------------------------------------------------- **/
25+
26+
package asposecellscloud
27+
28+
type BatchLockRequest struct {
29+
30+
SourceFolder string `json:"SourceFolder,omitempty" xml:"SourceFolder"`
31+
SourceStorage string `json:"SourceStorage,omitempty" xml:"SourceStorage"`
32+
MatchCondition *MatchConditionRequest `json:"MatchCondition,omitempty" xml:"MatchCondition"`
33+
Password string `json:"Password,omitempty" xml:"Password"`
34+
OutFolder string `json:"OutFolder,omitempty" xml:"OutFolder"`
35+
OutStorage string `json:"OutStorage,omitempty" xml:"OutStorage"`
36+
}

model_batch_protect_request.go

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/** --------------------------------------------------------------------------------------------------------------------
2+
* <copyright company="Aspose" file="BatchProtectRequest.go">
3+
* Copyright (c) 2023 Aspose.Cells Cloud
4+
* </copyright>
5+
* <summary>
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
23+
* </summary>
24+
-------------------------------------------------------------------------------------------------------------------- **/
25+
26+
package asposecellscloud
27+
28+
type BatchProtectRequest struct {
29+
30+
SourceFolder string `json:"SourceFolder,omitempty" xml:"SourceFolder"`
31+
SourceStorage string `json:"SourceStorage,omitempty" xml:"SourceStorage"`
32+
MatchCondition *MatchConditionRequest `json:"MatchCondition,omitempty" xml:"MatchCondition"`
33+
ProtectionType string `json:"ProtectionType,omitempty" xml:"ProtectionType"`
34+
Password string `json:"Password,omitempty" xml:"Password"`
35+
OutFolder string `json:"OutFolder,omitempty" xml:"OutFolder"`
36+
OutStorage string `json:"OutStorage,omitempty" xml:"OutStorage"`
37+
}

model_batch_split_request.go

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/** --------------------------------------------------------------------------------------------------------------------
2+
* <copyright company="Aspose" file="BatchSplitRequest.go">
3+
* Copyright (c) 2023 Aspose.Cells Cloud
4+
* </copyright>
5+
* <summary>
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
23+
* </summary>
24+
-------------------------------------------------------------------------------------------------------------------- **/
25+
26+
package asposecellscloud
27+
28+
type BatchSplitRequest struct {
29+
30+
SourceFolder string `json:"SourceFolder,omitempty" xml:"SourceFolder"`
31+
SourceStorage string `json:"SourceStorage,omitempty" xml:"SourceStorage"`
32+
MatchCondition *MatchConditionRequest `json:"MatchCondition,omitempty" xml:"MatchCondition"`
33+
Format string `json:"Format,omitempty" xml:"Format"`
34+
FromIndex int64 `json:"FromIndex,omitempty" xml:"FromIndex"`
35+
ToIndex int64 `json:"ToIndex,omitempty" xml:"ToIndex"`
36+
OutFolder string `json:"OutFolder,omitempty" xml:"OutFolder"`
37+
OutStorage string `json:"OutStorage,omitempty" xml:"OutStorage"`
38+
SaveOptions *SaveOptions `json:"SaveOptions,omitempty" xml:"SaveOptions"`
39+
}

request_post_batch_lock_request.go

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
/** --------------------------------------------------------------------------------------------------------------------
2+
* <copyright company="Aspose" file="post_batch_lock_request.go">
3+
* Copyright (c) 2023 Aspose.Cells Cloud
4+
* </copyright>
5+
* <summary>
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
23+
* </summary>
24+
-------------------------------------------------------------------------------------------------------------------- **/
25+
26+
package asposecellscloud
27+
28+
import (
29+
"net/url"
30+
"net/http"
31+
"strings"
32+
)
33+
34+
type PostBatchLockRequest struct {
35+
BatchLockRequest interface{} `json:"batch_lock_request,omitempty" xml:"batch_lock_request"`
36+
37+
}
38+
39+
func (data *PostBatchLockRequest) CreateRequestData( client *APIClient) (localVarRequest *http.Request, err error) {
40+
var (
41+
localVarHttpMethod = strings.ToUpper("POST")
42+
localVarPostBody interface{}
43+
localVarFileName string
44+
localVarFileBytes []byte
45+
)
46+
47+
// create path and map variables
48+
localVarPath := client.cfg.BasePath + "/" + client.cfg.Version + "/cells/batch/lock"
49+
50+
localVarHeaderParams := make(map[string]string)
51+
localVarQueryParams := url.Values{}
52+
localVarFormParams := url.Values{}
53+
54+
55+
localVarHttpContentTypes := []string{"application/json"}
56+
57+
// set Content-Type header
58+
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
59+
if localVarHttpContentType != "" {
60+
localVarHeaderParams["Content-Type"] = localVarHttpContentType
61+
}
62+
63+
// to determine the Accept header
64+
localVarHttpHeaderAccepts := []string{"application/json"}
65+
66+
// set Accept header
67+
localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
68+
if localVarHttpHeaderAccept != "" {
69+
localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
70+
}
71+
localVarPostBody = &data.BatchLockRequest
72+
73+
74+
r, err := client.prepareRequest(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes)
75+
return r,err
76+
}
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
/** --------------------------------------------------------------------------------------------------------------------
2+
* <copyright company="Aspose" file="post_batch_protect_request.go">
3+
* Copyright (c) 2023 Aspose.Cells Cloud
4+
* </copyright>
5+
* <summary>
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
23+
* </summary>
24+
-------------------------------------------------------------------------------------------------------------------- **/
25+
26+
package asposecellscloud
27+
28+
import (
29+
"net/url"
30+
"net/http"
31+
"strings"
32+
)
33+
34+
type PostBatchProtectRequest struct {
35+
BatchProtectRequest interface{} `json:"batch_protect_request,omitempty" xml:"batch_protect_request"`
36+
37+
}
38+
39+
func (data *PostBatchProtectRequest) CreateRequestData( client *APIClient) (localVarRequest *http.Request, err error) {
40+
var (
41+
localVarHttpMethod = strings.ToUpper("POST")
42+
localVarPostBody interface{}
43+
localVarFileName string
44+
localVarFileBytes []byte
45+
)
46+
47+
// create path and map variables
48+
localVarPath := client.cfg.BasePath + "/" + client.cfg.Version + "/cells/batch/protect"
49+
50+
localVarHeaderParams := make(map[string]string)
51+
localVarQueryParams := url.Values{}
52+
localVarFormParams := url.Values{}
53+
54+
55+
localVarHttpContentTypes := []string{"application/json"}
56+
57+
// set Content-Type header
58+
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
59+
if localVarHttpContentType != "" {
60+
localVarHeaderParams["Content-Type"] = localVarHttpContentType
61+
}
62+
63+
// to determine the Accept header
64+
localVarHttpHeaderAccepts := []string{"application/json"}
65+
66+
// set Accept header
67+
localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
68+
if localVarHttpHeaderAccept != "" {
69+
localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
70+
}
71+
localVarPostBody = &data.BatchProtectRequest
72+
73+
74+
r, err := client.prepareRequest(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes)
75+
return r,err
76+
}

0 commit comments

Comments
 (0)