Skip to content

Commit 66af572

Browse files
feat(api): aggregated API specs update
1 parent 1751417 commit 66af572

11 files changed

Lines changed: 22 additions & 22 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 633
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gcore%2Fgcore-b310f95695f4f4cf339560f4ac879067c0dacbbc695a6b81e14756423f59ab39.yml
3-
openapi_spec_hash: c2f2c83e6c3cd42fe8e8bad9bd60a23c
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gcore%2Fgcore-415b3e1ff98241ebe58f65df0e6ee1381f07ced3d6e9af8bbf9ff8ba25ad655d.yml
3+
openapi_spec_hash: cbcb8f94fedaa853d6fa4763016ce6e0
44
config_hash: feba924f7316f83b5c218f114ae1b133

src/gcore/resources/cloud/baremetal/servers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def create(
5454
region_id: int | None = None,
5555
flavor: str,
5656
interfaces: Iterable[server_create_params.Interface],
57-
app_config: Optional[object] | Omit = omit,
57+
app_config: Optional[Dict[str, object]] | Omit = omit,
5858
apptemplate_id: str | Omit = omit,
5959
ddos_profile: server_create_params.DDOSProfile | Omit = omit,
6060
image_id: str | Omit = omit,
@@ -546,7 +546,7 @@ async def create(
546546
region_id: int | None = None,
547547
flavor: str,
548548
interfaces: Iterable[server_create_params.Interface],
549-
app_config: Optional[object] | Omit = omit,
549+
app_config: Optional[Dict[str, object]] | Omit = omit,
550550
apptemplate_id: str | Omit = omit,
551551
ddos_profile: server_create_params.DDOSProfile | Omit = omit,
552552
image_id: str | Omit = omit,

src/gcore/resources/cloud/instances/instances.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def create(
118118
interfaces: Iterable[instance_create_params.Interface],
119119
volumes: Iterable[instance_create_params.Volume],
120120
allow_app_ports: bool | Omit = omit,
121-
configuration: Optional[object] | Omit = omit,
121+
configuration: Optional[Dict[str, object]] | Omit = omit,
122122
name: str | Omit = omit,
123123
name_template: str | Omit = omit,
124124
password: str | Omit = omit,
@@ -1542,7 +1542,7 @@ async def create(
15421542
interfaces: Iterable[instance_create_params.Interface],
15431543
volumes: Iterable[instance_create_params.Volume],
15441544
allow_app_ports: bool | Omit = omit,
1545-
configuration: Optional[object] | Omit = omit,
1545+
configuration: Optional[Dict[str, object]] | Omit = omit,
15461546
name: str | Omit = omit,
15471547
name_template: str | Omit = omit,
15481548
password: str | Omit = omit,

src/gcore/types/cloud/audit_log_entry.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import List, Optional
3+
from typing import Dict, List, Optional
44
from datetime import datetime
55
from typing_extensions import Literal
66

@@ -81,7 +81,7 @@ class Resource(BaseModel):
8181
]
8282
"""Resource type"""
8383

84-
resource_body: Optional[object] = None
84+
resource_body: Optional[Dict[str, object]] = None
8585
"""Free-form object, resource body."""
8686

8787
search_field: Optional[str] = None
@@ -115,7 +115,7 @@ class AuditLogEntry(BaseModel):
115115
User action log was successfully received by its subscriber in case there is one
116116
"""
117117

118-
action_data: Optional[object] = None
118+
action_data: Optional[Dict[str, object]] = None
119119
"""Additional information about the action"""
120120

121121
action_type: Literal[

src/gcore/types/cloud/baremetal/server_create_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class ServerCreateParams(TypedDict, total=False):
4444
You can create one or more interfaces - private, public, or both.
4545
"""
4646

47-
app_config: Optional[object]
47+
app_config: Optional[Dict[str, object]]
4848
"""
4949
Parameters for the application template if creating the instance from an
5050
`apptemplate`.

src/gcore/types/cloud/instance_create_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class InstanceCreateParams(TypedDict, total=False):
6363
marketplace application template.
6464
"""
6565

66-
configuration: Optional[object]
66+
configuration: Optional[Dict[str, object]]
6767
"""
6868
Parameters for the application template if creating the instance from an
6969
`apptemplate`.

src/gcore/types/cloud/load_balancer_flavor_detail.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import Union, Optional
3+
from typing import Dict, Union, Optional
44
from typing_extensions import Literal, TypeAlias
55

66
from ..._models import BaseModel
77
from .flavor_hardware_description import FlavorHardwareDescription
88

99
__all__ = ["LoadBalancerFlavorDetail", "HardwareDescription"]
1010

11-
HardwareDescription: TypeAlias = Union[FlavorHardwareDescription, object]
11+
HardwareDescription: TypeAlias = Union[FlavorHardwareDescription, Dict[str, object]]
1212

1313

1414
class LoadBalancerFlavorDetail(BaseModel):

src/gcore/types/cloud/load_balancer_listener_detail.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import List, Optional
3+
from typing import Dict, List, Optional
44

55
from ..._models import BaseModel
66
from .provisioning_status import ProvisioningStatus
@@ -32,7 +32,7 @@ class LoadBalancerListenerDetail(BaseModel):
3232
creator_task_id: Optional[str] = None
3333
"""Task that created this entity"""
3434

35-
insert_headers: object
35+
insert_headers: Dict[str, object]
3636
"""Dictionary of additional header insertion into HTTP headers.
3737
3838
Only used with HTTP and `TERMINATED_HTTPS` protocols.

src/gcore/types/cloud/region.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import List, Optional
3+
from typing import List, Union, Optional
44
from datetime import datetime
55
from typing_extensions import Literal
66

@@ -10,9 +10,9 @@
1010

1111

1212
class Coordinates(BaseModel):
13-
latitude: float
13+
latitude: Union[float, str]
1414

15-
longitude: float
15+
longitude: Union[float, str]
1616

1717

1818
class Region(BaseModel):

tests/api_resources/cloud/baremetal/test_servers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def test_method_create_with_all_params(self, client: Gcore) -> None:
4444
"port_group": 0,
4545
}
4646
],
47-
app_config={},
47+
app_config={"foo": "bar"},
4848
apptemplate_id="apptemplate_id",
4949
ddos_profile={
5050
"profile_template": 123,
@@ -248,7 +248,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncGcore) ->
248248
"port_group": 0,
249249
}
250250
],
251-
app_config={},
251+
app_config={"foo": "bar"},
252252
apptemplate_id="apptemplate_id",
253253
ddos_profile={
254254
"profile_template": 123,

0 commit comments

Comments
 (0)