Skip to content

Commit 49069a2

Browse files
SDK regenerated by CI server [ci skip]
1 parent f316897 commit 49069a2

File tree

676 files changed

+3589
-967
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

676 files changed

+3589
-967
lines changed

dev/api/api_client.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* --------------------------------------------------------------------------------
33
* <copyright company="Aspose" file="api_client.go">
4-
* Copyright (c) 2021 Aspose.Words for Cloud
4+
* Copyright (c) 2022 Aspose.Words for Cloud
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -121,6 +121,12 @@ func atoi(in string) (int, error) {
121121
// callAPI do the request.
122122
func (c *APIClient) callAPI(request *http.Request) (resp *http.Response, err error) {
123123

124+
defer func() {
125+
if p := recover(); p != nil {
126+
panic(fmt.Sprintf("request error: %v", p))
127+
}
128+
}()
129+
124130
// log request
125131
if c.cfg.DebugMode {
126132
dumpRequest, err := httputil.DumpRequest(request, true)
@@ -134,7 +140,7 @@ func (c *APIClient) callAPI(request *http.Request) (resp *http.Response, err err
134140
response, err := c.cfg.HttpClient.Do(request)
135141

136142
if err != nil {
137-
return response, err
143+
return response, fmt.Errorf("%s request error: %w", request.URL.String(), err)
138144
}
139145

140146
if c.cfg.DebugMode {

dev/api/models/accept_all_revisions_online_request.go

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* --------------------------------------------------------------------------------
33
* <copyright company="Aspose" file="accept_all_revisions_online_request.go">
4-
* Copyright (c) 2021 Aspose.Words for Cloud
4+
* Copyright (c) 2022 Aspose.Words for Cloud
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -42,7 +42,8 @@ type AcceptAllRevisionsOnlineRequest struct {
4242
Document io.ReadCloser
4343
/* optional (nil or map[string]interface{}) with one or more of key / value pairs:
4444
key: "loadEncoding" value: (*string) Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
45-
key: "password" value: (*string) Password for opening an encrypted document.
45+
key: "password" value: (*string) Password of protected Word document. Use the parameter to pass a password via SDK. SDK encrypts it automatically. We don't recommend to use the parameter to pass a plain password for direct call of API.
46+
key: "encryptedPassword" value: (*string) Password of protected Word document. Use the parameter to pass an encrypted password for direct calls of API. See SDK code for encyption details.
4647
key: "destFileName" value: (*string) Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document. */
4748
Optionals map[string]interface{}
4849
}
@@ -70,6 +71,9 @@ func (data *AcceptAllRevisionsOnlineRequest) CreateRequestData() (RequestData, e
7071
if err := typeCheckParameter(data.Optionals["password"], "string", "data.Optionals[password]"); err != nil {
7172
return result, err
7273
}
74+
if err := typeCheckParameter(data.Optionals["encryptedPassword"], "string", "data.Optionals[encryptedPassword]"); err != nil {
75+
return result, err
76+
}
7377
if err := typeCheckParameter(data.Optionals["destFileName"], "string", "data.Optionals[destFileName]"); err != nil {
7478
return result, err
7579
}
@@ -85,6 +89,11 @@ func (data *AcceptAllRevisionsOnlineRequest) CreateRequestData() (RequestData, e
8589
}
8690

8791

92+
if localVarTempParam, localVarOk := data.Optionals["encryptedPassword"].(string); localVarOk {
93+
result.QueryParams.Add("EncryptedPassword", parameterToString(localVarTempParam, ""))
94+
}
95+
96+
8897
if localVarTempParam, localVarOk := data.Optionals["destFileName"].(string); localVarOk {
8998
result.QueryParams.Add("DestFileName", parameterToString(localVarTempParam, ""))
9099
}

dev/api/models/accept_all_revisions_online_response.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* --------------------------------------------------------------------------------
33
* <copyright company="Aspose" file="accept_all_revisions_online_response.go">
4-
* Copyright (c) 2021 Aspose.Words for Cloud
4+
* Copyright (c) 2022 Aspose.Words for Cloud
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy

dev/api/models/accept_all_revisions_request.go

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* --------------------------------------------------------------------------------
33
* <copyright company="Aspose" file="accept_all_revisions_request.go">
4-
* Copyright (c) 2021 Aspose.Words for Cloud
4+
* Copyright (c) 2022 Aspose.Words for Cloud
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -43,7 +43,8 @@ type AcceptAllRevisionsRequest struct {
4343
key: "folder" value: (*string) Original document folder.
4444
key: "storage" value: (*string) Original document storage.
4545
key: "loadEncoding" value: (*string) Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
46-
key: "password" value: (*string) Password for opening an encrypted document.
46+
key: "password" value: (*string) Password of protected Word document. Use the parameter to pass a password via SDK. SDK encrypts it automatically. We don't recommend to use the parameter to pass a plain password for direct call of API.
47+
key: "encryptedPassword" value: (*string) Password of protected Word document. Use the parameter to pass an encrypted password for direct calls of API. See SDK code for encyption details.
4748
key: "destFileName" value: (*string) Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document. */
4849
Optionals map[string]interface{}
4950
}
@@ -78,6 +79,9 @@ func (data *AcceptAllRevisionsRequest) CreateRequestData() (RequestData, error)
7879
if err := typeCheckParameter(data.Optionals["password"], "string", "data.Optionals[password]"); err != nil {
7980
return result, err
8081
}
82+
if err := typeCheckParameter(data.Optionals["encryptedPassword"], "string", "data.Optionals[encryptedPassword]"); err != nil {
83+
return result, err
84+
}
8185
if err := typeCheckParameter(data.Optionals["destFileName"], "string", "data.Optionals[destFileName]"); err != nil {
8286
return result, err
8387
}
@@ -103,6 +107,11 @@ func (data *AcceptAllRevisionsRequest) CreateRequestData() (RequestData, error)
103107
}
104108

105109

110+
if localVarTempParam, localVarOk := data.Optionals["encryptedPassword"].(string); localVarOk {
111+
result.QueryParams.Add("EncryptedPassword", parameterToString(localVarTempParam, ""))
112+
}
113+
114+
106115
if localVarTempParam, localVarOk := data.Optionals["destFileName"].(string); localVarOk {
107116
result.QueryParams.Add("DestFileName", parameterToString(localVarTempParam, ""))
108117
}

dev/api/models/api_error.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* --------------------------------------------------------------------------------
33
* <copyright company="Aspose" file="api_error.go">
4-
* Copyright (c) 2021 Aspose.Words for Cloud
4+
* Copyright (c) 2022 Aspose.Words for Cloud
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy

dev/api/models/append_document_online_request.go

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* --------------------------------------------------------------------------------
33
* <copyright company="Aspose" file="append_document_online_request.go">
4-
* Copyright (c) 2021 Aspose.Words for Cloud
4+
* Copyright (c) 2022 Aspose.Words for Cloud
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -44,7 +44,8 @@ type AppendDocumentOnlineRequest struct {
4444
DocumentList IDocumentEntryList
4545
/* optional (nil or map[string]interface{}) with one or more of key / value pairs:
4646
key: "loadEncoding" value: (*string) Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
47-
key: "password" value: (*string) Password for opening an encrypted document.
47+
key: "password" value: (*string) Password of protected Word document. Use the parameter to pass a password via SDK. SDK encrypts it automatically. We don't recommend to use the parameter to pass a plain password for direct call of API.
48+
key: "encryptedPassword" value: (*string) Password of protected Word document. Use the parameter to pass an encrypted password for direct calls of API. See SDK code for encyption details.
4849
key: "destFileName" value: (*string) Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
4950
key: "revisionAuthor" value: (*string) Initials of the author to use for revisions.If you set this parameter and then make some changes to the document programmatically, save the document and later open the document in MS Word you will see these changes as revisions.
5051
key: "revisionDateTime" value: (*string) The date and time to use for revisions. */
@@ -74,6 +75,9 @@ func (data *AppendDocumentOnlineRequest) CreateRequestData() (RequestData, error
7475
if err := typeCheckParameter(data.Optionals["password"], "string", "data.Optionals[password]"); err != nil {
7576
return result, err
7677
}
78+
if err := typeCheckParameter(data.Optionals["encryptedPassword"], "string", "data.Optionals[encryptedPassword]"); err != nil {
79+
return result, err
80+
}
7781
if err := typeCheckParameter(data.Optionals["destFileName"], "string", "data.Optionals[destFileName]"); err != nil {
7882
return result, err
7983
}
@@ -95,6 +99,11 @@ func (data *AppendDocumentOnlineRequest) CreateRequestData() (RequestData, error
9599
}
96100

97101

102+
if localVarTempParam, localVarOk := data.Optionals["encryptedPassword"].(string); localVarOk {
103+
result.QueryParams.Add("EncryptedPassword", parameterToString(localVarTempParam, ""))
104+
}
105+
106+
98107
if localVarTempParam, localVarOk := data.Optionals["destFileName"].(string); localVarOk {
99108
result.QueryParams.Add("DestFileName", parameterToString(localVarTempParam, ""))
100109
}

dev/api/models/append_document_online_response.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* --------------------------------------------------------------------------------
33
* <copyright company="Aspose" file="append_document_online_response.go">
4-
* Copyright (c) 2021 Aspose.Words for Cloud
4+
* Copyright (c) 2022 Aspose.Words for Cloud
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy

dev/api/models/append_document_request.go

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* --------------------------------------------------------------------------------
33
* <copyright company="Aspose" file="append_document_request.go">
4-
* Copyright (c) 2021 Aspose.Words for Cloud
4+
* Copyright (c) 2022 Aspose.Words for Cloud
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -45,7 +45,8 @@ type AppendDocumentRequest struct {
4545
key: "folder" value: (*string) Original document folder.
4646
key: "storage" value: (*string) Original document storage.
4747
key: "loadEncoding" value: (*string) Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
48-
key: "password" value: (*string) Password for opening an encrypted document.
48+
key: "password" value: (*string) Password of protected Word document. Use the parameter to pass a password via SDK. SDK encrypts it automatically. We don't recommend to use the parameter to pass a plain password for direct call of API.
49+
key: "encryptedPassword" value: (*string) Password of protected Word document. Use the parameter to pass an encrypted password for direct calls of API. See SDK code for encyption details.
4950
key: "destFileName" value: (*string) Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
5051
key: "revisionAuthor" value: (*string) Initials of the author to use for revisions.If you set this parameter and then make some changes to the document programmatically, save the document and later open the document in MS Word you will see these changes as revisions.
5152
key: "revisionDateTime" value: (*string) The date and time to use for revisions. */
@@ -82,6 +83,9 @@ func (data *AppendDocumentRequest) CreateRequestData() (RequestData, error) {
8283
if err := typeCheckParameter(data.Optionals["password"], "string", "data.Optionals[password]"); err != nil {
8384
return result, err
8485
}
86+
if err := typeCheckParameter(data.Optionals["encryptedPassword"], "string", "data.Optionals[encryptedPassword]"); err != nil {
87+
return result, err
88+
}
8589
if err := typeCheckParameter(data.Optionals["destFileName"], "string", "data.Optionals[destFileName]"); err != nil {
8690
return result, err
8791
}
@@ -113,6 +117,11 @@ func (data *AppendDocumentRequest) CreateRequestData() (RequestData, error) {
113117
}
114118

115119

120+
if localVarTempParam, localVarOk := data.Optionals["encryptedPassword"].(string); localVarOk {
121+
result.QueryParams.Add("EncryptedPassword", parameterToString(localVarTempParam, ""))
122+
}
123+
124+
116125
if localVarTempParam, localVarOk := data.Optionals["destFileName"].(string); localVarOk {
117126
result.QueryParams.Add("DestFileName", parameterToString(localVarTempParam, ""))
118127
}

dev/api/models/apply_style_to_document_element_online_request.go

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* --------------------------------------------------------------------------------
33
* <copyright company="Aspose" file="apply_style_to_document_element_online_request.go">
4-
* Copyright (c) 2021 Aspose.Words for Cloud
4+
* Copyright (c) 2022 Aspose.Words for Cloud
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -47,7 +47,8 @@ type ApplyStyleToDocumentElementOnlineRequest struct {
4747
StyleApply IStyleApply
4848
/* optional (nil or map[string]interface{}) with one or more of key / value pairs:
4949
key: "loadEncoding" value: (*string) Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
50-
key: "password" value: (*string) Password for opening an encrypted document.
50+
key: "password" value: (*string) Password of protected Word document. Use the parameter to pass a password via SDK. SDK encrypts it automatically. We don't recommend to use the parameter to pass a plain password for direct call of API.
51+
key: "encryptedPassword" value: (*string) Password of protected Word document. Use the parameter to pass an encrypted password for direct calls of API. See SDK code for encyption details.
5152
key: "destFileName" value: (*string) Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
5253
key: "revisionAuthor" value: (*string) Initials of the author to use for revisions.If you set this parameter and then make some changes to the document programmatically, save the document and later open the document in MS Word you will see these changes as revisions.
5354
key: "revisionDateTime" value: (*string) The date and time to use for revisions. */
@@ -78,6 +79,9 @@ func (data *ApplyStyleToDocumentElementOnlineRequest) CreateRequestData() (Reque
7879
if err := typeCheckParameter(data.Optionals["password"], "string", "data.Optionals[password]"); err != nil {
7980
return result, err
8081
}
82+
if err := typeCheckParameter(data.Optionals["encryptedPassword"], "string", "data.Optionals[encryptedPassword]"); err != nil {
83+
return result, err
84+
}
8185
if err := typeCheckParameter(data.Optionals["destFileName"], "string", "data.Optionals[destFileName]"); err != nil {
8286
return result, err
8387
}
@@ -99,6 +103,11 @@ func (data *ApplyStyleToDocumentElementOnlineRequest) CreateRequestData() (Reque
99103
}
100104

101105

106+
if localVarTempParam, localVarOk := data.Optionals["encryptedPassword"].(string); localVarOk {
107+
result.QueryParams.Add("EncryptedPassword", parameterToString(localVarTempParam, ""))
108+
}
109+
110+
102111
if localVarTempParam, localVarOk := data.Optionals["destFileName"].(string); localVarOk {
103112
result.QueryParams.Add("DestFileName", parameterToString(localVarTempParam, ""))
104113
}

dev/api/models/apply_style_to_document_element_online_response.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* --------------------------------------------------------------------------------
33
* <copyright company="Aspose" file="apply_style_to_document_element_online_response.go">
4-
* Copyright (c) 2021 Aspose.Words for Cloud
4+
* Copyright (c) 2022 Aspose.Words for Cloud
55
* </copyright>
66
* <summary>
77
* Permission is hereby granted, free of charge, to any person obtaining a copy

0 commit comments

Comments
 (0)