Skip to content

Commit 7a17026

Browse files
committed
Generate DataProtection
1 parent a02848c commit 7a17026

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/services/dataProtection/dataProtectionApi.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ export class DataProtectionApi extends Service {
4141
const endpoint = `${this.baseUrl}/requestSubjectErasure`;
4242
const resource = new Resource(this, endpoint);
4343

44-
const request: SubjectErasureByPspReferenceRequest = ObjectSerializer.serialize(subjectErasureByPspReferenceRequest, "SubjectErasureByPspReferenceRequest", "");
44+
const request: SubjectErasureByPspReferenceRequest = ObjectSerializer.serialize(subjectErasureByPspReferenceRequest, "SubjectErasureByPspReferenceRequest");
4545
const response = await getJsonResponse<SubjectErasureByPspReferenceRequest, SubjectErasureResponse>(
4646
resource,
4747
request,
4848
{ ...requestOptions, method: "POST" }
4949
);
5050

51-
return ObjectSerializer.deserialize(response, "SubjectErasureResponse", "");
51+
return ObjectSerializer.deserialize(response, "SubjectErasureResponse");
5252
}
5353

5454
}

src/typings/dataProtection/objectSerializer.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,10 @@ export class ObjectSerializer {
132132
*
133133
* @param data - The value to serialize.
134134
* @param type - The expected type name as a string.
135-
* @param format - Format hint (e.g. "date" or "date-time").
135+
* @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string.
136136
* @returns A JSON-compatible representation of `data`.
137137
*/
138-
public static serialize(data: any, type: string, format: string): any {
138+
public static serialize(data: any, type: string, format: string = ""): any {
139139
if (data == undefined) {
140140
return data;
141141
} else if (primitives.indexOf(type.toLowerCase()) !== -1) {
@@ -212,10 +212,10 @@ export class ObjectSerializer {
212212
*
213213
* @param data - The raw input to deserialize.
214214
* @param type - The expected type name as a string.
215-
* @param format - Format hint (e.g. "date" or "date-time").
215+
* @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string.
216216
* @returns A deserialized instance or value of `data`.
217217
*/
218-
public static deserialize(data: any, type: string, format: string): any {
218+
public static deserialize(data: any, type: string, format: string = ""): any {
219219
// polymorphism may change the actual type.
220220
type = ObjectSerializer.findCorrectType(data, type);
221221
if (data == undefined) {

0 commit comments

Comments
 (0)