Skip to content

Commit

Permalink
update openapi-client
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmattig committed Nov 21, 2024
1 parent 09dcfc8 commit 3d86087
Show file tree
Hide file tree
Showing 9 changed files with 58 additions and 58 deletions.
16 changes: 8 additions & 8 deletions .generation/input/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -7458,21 +7458,21 @@
"OperatorQuota": {
"type": "object",
"required": [
"bla",
"blub",
"operatorName",
"operatorPath",
"count"
],
"properties": {
"bla": {
"type": "string"
},
"blub": {
"type": "string"
},
"count": {
"type": "integer",
"format": "int64",
"minimum": 0
},
"operatorName": {
"type": "string"
},
"operatorPath": {
"type": "string"
}
}
},
Expand Down
12 changes: 6 additions & 6 deletions python/geoengine_openapi_client/models/operator_quota.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ class OperatorQuota(BaseModel):
"""
OperatorQuota
"""
bla: StrictStr = Field(...)
blub: StrictStr = Field(...)
count: conint(strict=True, ge=0) = Field(...)
__properties = ["bla", "blub", "count"]
operator_name: StrictStr = Field(..., alias="operatorName")
operator_path: StrictStr = Field(..., alias="operatorPath")
__properties = ["count", "operatorName", "operatorPath"]

class Config:
"""Pydantic configuration"""
Expand Down Expand Up @@ -67,9 +67,9 @@ def from_dict(cls, obj: dict) -> OperatorQuota:
return OperatorQuota.parse_obj(obj)

_obj = OperatorQuota.parse_obj({
"bla": obj.get("bla"),
"blub": obj.get("blub"),
"count": obj.get("count")
"count": obj.get("count"),
"operator_name": obj.get("operatorName"),
"operator_path": obj.get("operatorPath")
})
return _obj

Expand Down
12 changes: 6 additions & 6 deletions python/test/test_computation_quota.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ def make_instance(self, include_optional) -> ComputationQuota:
computation_id = '',
operators = [
geoengine_openapi_client.models.operator_quota.OperatorQuota(
bla = '',
blub = '',
count = 0, )
count = 0,
operator_name = '',
operator_path = '', )
],
timestamp = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
workflow_id = ''
Expand All @@ -52,9 +52,9 @@ def make_instance(self, include_optional) -> ComputationQuota:
computation_id = '',
operators = [
geoengine_openapi_client.models.operator_quota.OperatorQuota(
bla = '',
blub = '',
count = 0, )
count = 0,
operator_name = '',
operator_path = '', )
],
timestamp = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
workflow_id = '',
Expand Down
10 changes: 5 additions & 5 deletions python/test/test_operator_quota.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ def make_instance(self, include_optional) -> OperatorQuota:
model = OperatorQuota() # noqa: E501
if include_optional:
return OperatorQuota(
bla = '',
blub = '',
count = 0
count = 0,
operator_name = '',
operator_path = ''
)
else:
return OperatorQuota(
bla = '',
blub = '',
count = 0,
operator_name = '',
operator_path = '',
)
"""

Expand Down
10 changes: 5 additions & 5 deletions typescript/dist/esm/models/OperatorQuota.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,22 @@
export interface OperatorQuota {
/**
*
* @type {string}
* @type {number}
* @memberof OperatorQuota
*/
bla: string;
count: number;
/**
*
* @type {string}
* @memberof OperatorQuota
*/
blub: string;
operatorName: string;
/**
*
* @type {number}
* @type {string}
* @memberof OperatorQuota
*/
count: number;
operatorPath: string;
}
/**
* Check if a given object implements the OperatorQuota interface.
Expand Down
12 changes: 6 additions & 6 deletions typescript/dist/esm/models/OperatorQuota.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
*/
export function instanceOfOperatorQuota(value) {
let isInstance = true;
isInstance = isInstance && "bla" in value;
isInstance = isInstance && "blub" in value;
isInstance = isInstance && "count" in value;
isInstance = isInstance && "operatorName" in value;
isInstance = isInstance && "operatorPath" in value;
return isInstance;
}
export function OperatorQuotaFromJSON(json) {
Expand All @@ -29,9 +29,9 @@ export function OperatorQuotaFromJSONTyped(json, ignoreDiscriminator) {
return json;
}
return {
'bla': json['bla'],
'blub': json['blub'],
'count': json['count'],
'operatorName': json['operatorName'],
'operatorPath': json['operatorPath'],
};
}
export function OperatorQuotaToJSON(value) {
Expand All @@ -42,8 +42,8 @@ export function OperatorQuotaToJSON(value) {
return null;
}
return {
'bla': value.bla,
'blub': value.blub,
'count': value.count,
'operatorName': value.operatorName,
'operatorPath': value.operatorPath,
};
}
10 changes: 5 additions & 5 deletions typescript/dist/models/OperatorQuota.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,22 @@
export interface OperatorQuota {
/**
*
* @type {string}
* @type {number}
* @memberof OperatorQuota
*/
bla: string;
count: number;
/**
*
* @type {string}
* @memberof OperatorQuota
*/
blub: string;
operatorName: string;
/**
*
* @type {number}
* @type {string}
* @memberof OperatorQuota
*/
count: number;
operatorPath: string;
}
/**
* Check if a given object implements the OperatorQuota interface.
Expand Down
12 changes: 6 additions & 6 deletions typescript/dist/models/OperatorQuota.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ exports.OperatorQuotaToJSON = exports.OperatorQuotaFromJSONTyped = exports.Opera
*/
function instanceOfOperatorQuota(value) {
let isInstance = true;
isInstance = isInstance && "bla" in value;
isInstance = isInstance && "blub" in value;
isInstance = isInstance && "count" in value;
isInstance = isInstance && "operatorName" in value;
isInstance = isInstance && "operatorPath" in value;
return isInstance;
}
exports.instanceOfOperatorQuota = instanceOfOperatorQuota;
Expand All @@ -34,9 +34,9 @@ function OperatorQuotaFromJSONTyped(json, ignoreDiscriminator) {
return json;
}
return {
'bla': json['bla'],
'blub': json['blub'],
'count': json['count'],
'operatorName': json['operatorName'],
'operatorPath': json['operatorPath'],
};
}
exports.OperatorQuotaFromJSONTyped = OperatorQuotaFromJSONTyped;
Expand All @@ -48,9 +48,9 @@ function OperatorQuotaToJSON(value) {
return null;
}
return {
'bla': value.bla,
'blub': value.blub,
'count': value.count,
'operatorName': value.operatorName,
'operatorPath': value.operatorPath,
};
}
exports.OperatorQuotaToJSON = OperatorQuotaToJSON;
22 changes: 11 additions & 11 deletions typescript/src/models/OperatorQuota.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,32 +21,32 @@ import { exists, mapValues } from '../runtime';
export interface OperatorQuota {
/**
*
* @type {string}
* @type {number}
* @memberof OperatorQuota
*/
bla: string;
count: number;
/**
*
* @type {string}
* @memberof OperatorQuota
*/
blub: string;
operatorName: string;
/**
*
* @type {number}
* @type {string}
* @memberof OperatorQuota
*/
count: number;
operatorPath: string;
}

/**
* Check if a given object implements the OperatorQuota interface.
*/
export function instanceOfOperatorQuota(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "bla" in value;
isInstance = isInstance && "blub" in value;
isInstance = isInstance && "count" in value;
isInstance = isInstance && "operatorName" in value;
isInstance = isInstance && "operatorPath" in value;

return isInstance;
}
Expand All @@ -61,9 +61,9 @@ export function OperatorQuotaFromJSONTyped(json: any, ignoreDiscriminator: boole
}
return {

'bla': json['bla'],
'blub': json['blub'],
'count': json['count'],
'operatorName': json['operatorName'],
'operatorPath': json['operatorPath'],
};
}

Expand All @@ -76,9 +76,9 @@ export function OperatorQuotaToJSON(value?: OperatorQuota | null): any {
}
return {

'bla': value.bla,
'blub': value.blub,
'count': value.count,
'operatorName': value.operatorName,
'operatorPath': value.operatorPath,
};
}

0 comments on commit 3d86087

Please sign in to comment.