diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d3b500c..fe7b3069 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,25 +1,39 @@ ## Release (2025-XX-YY) - -- `alb`: [v0.3.1](services/alb/CHANGELOG.md#v031) - - **Internal:** Improve deserializing and error types +- `alb`: + - [v0.4.0](services/alb/CHANGELOG.md#v040) + - **Feature:** Add new field `load_balancer_security_group` in `LoadBalancer`, `CreateLoadBalancerPayload` and `UpdateLoadBalancerPayload` Models + - [v0.3.1](services/alb/CHANGELOG.md#v031) + - **Internal:** Improve deserializing and error types - `authorization`: [v0.2.5](services/authorization/CHANGELOG.md#v025) - **Internal:** Improve deserializing and error types - `certificates`: [v1.0.2](services/certificates/CHANGELOG.md#v102) - **Internal:** Improve deserializing and error types - `lbapplication`: [v0.3.4](services/lbapplication/CHANGELOG.md#v034) - **Internal:** Improve deserializing and error types -- `loadbalancer`: [v0.4.1](services/loadbalancer/CHANGELOG.md#v041) - - **Internal:** Improve deserializing and error types +- `loadbalancer`: + - [v0.5.0](services/loadbalancer/CHANGELOG.md#v050) + - **Feature:** Add new field `load_balancer_security_group` in `LoadBalancer`, `CreateLoadBalancerPayload` and `UpdateLoadBalancerPayload` Models + - [v0.4.1](services/loadbalancer/CHANGELOG.md#v041) + - **Internal:** Improve deserializing and error types - `logme`: [v0.3.2](services/logme/CHANGELOG.md#v032) - **Internal:** Improve deserializing and error types - `mariadb`: [v0.2.3](services/mariadb/CHANGELOG.md#v023) - **Internal:** Improve deserializing and error types - `modelserving`: [v0.1.2](services/modelserving/CHANGELOG.md#v012) - **Internal:** Improve deserializing and error types +- `mongodbflex`: + - [v1.1.0](services/mongodbflex/CHANGELOG.md#v110) + - **Breaking Change:** Add required `region` parameter to all API methods. + - **Feature:** Add new methods `clone_instance()` and `restore_instance()`. + - **Feature:** Add new models `InstanceFlavor` and `InstanceResponse`. - `objectstorage`: [v1.0.4](services/objectstorage/CHANGELOG.md#v104) - **Internal:** Improve deserializing and error types -- `observability`: [v0.5.1](services/observability/CHANGELOG.md#v051) - - **Internal:** Improve deserializing and error types +- `observability`: + - [v0.6.0](services/observability/CHANGELOG.md#v060) + - **Feature:** Add new methods `get_logs_configs()`, `update_logs_configs()`, `get_traces_configs()`, `update_traces_configs()`, `get_metrics_storage_retention()`, `update_metrics_storage_retention()`, `get_scrape_config()`, `update_scrape_config()`, `list_acl()`, `update_acl()`, `list_alert_config_receivers()`, `list_alert_config_routes()`, `update_alert_config_receiver()`, `update_alert_config_route()`, `list_alertgroups()`, `list_alertrules()`, `list_credentials()`, `list_instances()` + - **Feature:** Add new models `LogsConfig`, `LogsConfigResponse`, `TraceConfig`, `TracesConfigResponse`, `UpdateLogsConfigsPayload`, `UpdateTracesConfigsPayload` + - [v0.5.1](services/observability/CHANGELOG.md#v051) + - **Internal:** Improve deserializing and error types - `postgresflex`: [v1.0.2](services/postgresflex/CHANGELOG.md#v102) - **Internal:** Improve deserializing and error types - `rabbitmq`: [v0.2.2](services/rabbitmq/CHANGELOG.md#v022) @@ -97,17 +111,21 @@ - **Internal:** Improve deserializing and error types - [v0.3.0](services/opensearch/CHANGELOG.md#v030) - **Breaking change:** Attribute `tls_protocols` of `InstanceParameters` model is now of type `List[StrictStr]` (previously `StrictStr`) -- `iaas`: [v0.5.4](services/iaas/CHANGELOG.md#v054) - - **Improvement:** Increase max length of `machine_type` and `volume_performance_class` fields from 63 to 127 characters in API methods - - **Improvement:** Increase max length of `name` fields from 63 to 127 characters for various models: - - `AffinityGroup`, `Backup`, `BootVolume`, `CreateAffinityGroupPayload`, `CreateBackupPayload` - `CreateImagePayload`, `CreateNetworkAreaPayload`, `CreateNetworkPayload`, `CreateNicPayload` - `CreateSecurityGroupPayload`, `CreateServerPayload`, `CreateSnapshotPayload`, `CreateVolumePayload` - `Image`, `MachineType`, `Nic`, `PartialUpdateNetworkAreaPayload`, `PartialUpdateNetworkPayload` - `ResizeServerPayload`, `SecurityGroup`, `Server`, `ServerNetwork`, `Snapshot` - `UpdateBackupPayload`, `UpdateImagePayload`, `UpdateNicPayload`, `UpdateSecurityGroupPayload` - `UpdateServerPayload`, `UpdateSnapshotPayload`, `UpdateVolumePayload`, `Volume`, `VolumePerformanceClass` - - **Improvement:** Update regular expression pattern for name validation to allow more flexible naming conventions +- `iaas`: + - [v0.5.5](services/iaas/CHANGELOG.md#v055) + - **Improvement:** Add proper noqa comments for docstrings + - **Improvement:** Update type annotations for better type safety + - [v0.5.4](services/iaas/CHANGELOG.md#v054) + - **Improvement:** Increase max length of `machine_type` and `volume_performance_class` fields from 63 to 127 characters in API methods + - **Improvement:** Increase max length of `name` fields from 63 to 127 characters for various models: + - `AffinityGroup`, `Backup`, `BootVolume`, `CreateAffinityGroupPayload`, `CreateBackupPayload` + `CreateImagePayload`, `CreateNetworkAreaPayload`, `CreateNetworkPayload`, `CreateNicPayload` + `CreateSecurityGroupPayload`, `CreateServerPayload`, `CreateSnapshotPayload`, `CreateVolumePayload` + `Image`, `MachineType`, `Nic`, `PartialUpdateNetworkAreaPayload`, `PartialUpdateNetworkPayload` + `ResizeServerPayload`, `SecurityGroup`, `Server`, `ServerNetwork`, `Snapshot` + `UpdateBackupPayload`, `UpdateImagePayload`, `UpdateNicPayload`, `UpdateSecurityGroupPayload` + `UpdateServerPayload`, `UpdateSnapshotPayload`, `UpdateVolumePayload`, `Volume`, `VolumePerformanceClass` + - **Improvement:** Update regular expression pattern for name validation to allow more flexible naming conventions ## Release (2025-06-16) - `core`: [v0.2.0](core/CHANGELOG.md#v020-2025-06-12) diff --git a/services/alb/CHANGELOG.md b/services/alb/CHANGELOG.md index ae4e3bf3..825e43cd 100644 --- a/services/alb/CHANGELOG.md +++ b/services/alb/CHANGELOG.md @@ -1,3 +1,6 @@ +## v0.4.0 +- **Feature:** Add new field `load_balancer_security_group` in `LoadBalancer`, `CreateLoadBalancerPayload` and `UpdateLoadBalancerPayload` Models + ## v0.3.1 - **Internal:** Improve deserializing and error types diff --git a/services/alb/pyproject.toml b/services/alb/pyproject.toml index a217e2e7..3ef2bf73 100644 --- a/services/alb/pyproject.toml +++ b/services/alb/pyproject.toml @@ -3,7 +3,7 @@ name = "stackit-alb" [tool.poetry] name = "stackit-alb" -version = "v0.3.1" +version = "v0.4.0" authors = [ "STACKIT Developer Tools ", ] diff --git a/services/alb/src/stackit/alb/models/create_load_balancer_payload.py b/services/alb/src/stackit/alb/models/create_load_balancer_payload.py index 146f3f2a..a870e358 100644 --- a/services/alb/src/stackit/alb/models/create_load_balancer_payload.py +++ b/services/alb/src/stackit/alb/models/create_load_balancer_payload.py @@ -55,6 +55,11 @@ class CreateLoadBalancerPayload(BaseModel): alias="externalAddress", ) listeners: Optional[List[Listener]] = Field(default=None, description="There is a maximum listener count of 20. ") + load_balancer_security_group: Optional[SecurityGroup] = Field( + default=None, + description="Security Group permitting network traffic from the LoadBalancer to the targets. Useful when disableTargetSecurityGroupAssignment=true to manually assign target security groups to targets.", + alias="loadBalancerSecurityGroup", + ) name: Optional[Annotated[str, Field(strict=True)]] = Field( default=None, description="Application Load Balancer name. Not changeable after creation." ) @@ -82,7 +87,7 @@ class CreateLoadBalancerPayload(BaseModel): ) target_security_group: Optional[SecurityGroup] = Field( default=None, - description="Security Group permitting network traffic from the LoadBalancer to the targets. Useful when disableTargetSecurityGroupAssignment=true to manually assign target security groups to targets.", + description="Security Group that allows the targets to receive traffic from the LoadBalancer. Useful when disableTargetSecurityGroupAssignment=true to manually assign target security groups to targets.", alias="targetSecurityGroup", ) version: Optional[StrictStr] = Field( @@ -94,6 +99,7 @@ class CreateLoadBalancerPayload(BaseModel): "errors", "externalAddress", "listeners", + "loadBalancerSecurityGroup", "name", "networks", "options", @@ -164,10 +170,12 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set( [ "errors", + "load_balancer_security_group", "private_address", "region", "status", @@ -194,6 +202,9 @@ def to_dict(self) -> Dict[str, Any]: if _item: _items.append(_item.to_dict()) _dict["listeners"] = _items + # override the default output from pydantic by calling `to_dict()` of load_balancer_security_group + if self.load_balancer_security_group: + _dict["loadBalancerSecurityGroup"] = self.load_balancer_security_group.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in networks (list) _items = [] if self.networks: @@ -239,6 +250,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if obj.get("listeners") is not None else None ), + "loadBalancerSecurityGroup": ( + SecurityGroup.from_dict(obj["loadBalancerSecurityGroup"]) + if obj.get("loadBalancerSecurityGroup") is not None + else None + ), "name": obj.get("name"), "networks": ( [Network.from_dict(_item) for _item in obj["networks"]] if obj.get("networks") is not None else None diff --git a/services/alb/src/stackit/alb/models/load_balancer.py b/services/alb/src/stackit/alb/models/load_balancer.py index 87427c76..5c98c76e 100644 --- a/services/alb/src/stackit/alb/models/load_balancer.py +++ b/services/alb/src/stackit/alb/models/load_balancer.py @@ -55,6 +55,11 @@ class LoadBalancer(BaseModel): alias="externalAddress", ) listeners: Optional[List[Listener]] = Field(default=None, description="There is a maximum listener count of 20. ") + load_balancer_security_group: Optional[SecurityGroup] = Field( + default=None, + description="Security Group permitting network traffic from the LoadBalancer to the targets. Useful when disableTargetSecurityGroupAssignment=true to manually assign target security groups to targets.", + alias="loadBalancerSecurityGroup", + ) name: Optional[Annotated[str, Field(strict=True)]] = Field( default=None, description="Application Load Balancer name. Not changeable after creation." ) @@ -82,7 +87,7 @@ class LoadBalancer(BaseModel): ) target_security_group: Optional[SecurityGroup] = Field( default=None, - description="Security Group permitting network traffic from the LoadBalancer to the targets. Useful when disableTargetSecurityGroupAssignment=true to manually assign target security groups to targets.", + description="Security Group that allows the targets to receive traffic from the LoadBalancer. Useful when disableTargetSecurityGroupAssignment=true to manually assign target security groups to targets.", alias="targetSecurityGroup", ) version: Optional[StrictStr] = Field( @@ -94,6 +99,7 @@ class LoadBalancer(BaseModel): "errors", "externalAddress", "listeners", + "loadBalancerSecurityGroup", "name", "networks", "options", @@ -164,10 +170,12 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set( [ "errors", + "load_balancer_security_group", "private_address", "region", "status", @@ -194,6 +202,9 @@ def to_dict(self) -> Dict[str, Any]: if _item: _items.append(_item.to_dict()) _dict["listeners"] = _items + # override the default output from pydantic by calling `to_dict()` of load_balancer_security_group + if self.load_balancer_security_group: + _dict["loadBalancerSecurityGroup"] = self.load_balancer_security_group.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in networks (list) _items = [] if self.networks: @@ -239,6 +250,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if obj.get("listeners") is not None else None ), + "loadBalancerSecurityGroup": ( + SecurityGroup.from_dict(obj["loadBalancerSecurityGroup"]) + if obj.get("loadBalancerSecurityGroup") is not None + else None + ), "name": obj.get("name"), "networks": ( [Network.from_dict(_item) for _item in obj["networks"]] if obj.get("networks") is not None else None diff --git a/services/alb/src/stackit/alb/models/update_load_balancer_payload.py b/services/alb/src/stackit/alb/models/update_load_balancer_payload.py index 5fb9d41a..c28d2124 100644 --- a/services/alb/src/stackit/alb/models/update_load_balancer_payload.py +++ b/services/alb/src/stackit/alb/models/update_load_balancer_payload.py @@ -55,6 +55,11 @@ class UpdateLoadBalancerPayload(BaseModel): alias="externalAddress", ) listeners: Optional[List[Listener]] = Field(default=None, description="There is a maximum listener count of 20. ") + load_balancer_security_group: Optional[SecurityGroup] = Field( + default=None, + description="Security Group permitting network traffic from the LoadBalancer to the targets. Useful when disableTargetSecurityGroupAssignment=true to manually assign target security groups to targets.", + alias="loadBalancerSecurityGroup", + ) name: Optional[Annotated[str, Field(strict=True)]] = Field( default=None, description="Application Load Balancer name. Not changeable after creation." ) @@ -82,7 +87,7 @@ class UpdateLoadBalancerPayload(BaseModel): ) target_security_group: Optional[SecurityGroup] = Field( default=None, - description="Security Group permitting network traffic from the LoadBalancer to the targets. Useful when disableTargetSecurityGroupAssignment=true to manually assign target security groups to targets.", + description="Security Group that allows the targets to receive traffic from the LoadBalancer. Useful when disableTargetSecurityGroupAssignment=true to manually assign target security groups to targets.", alias="targetSecurityGroup", ) version: Optional[StrictStr] = Field( @@ -94,6 +99,7 @@ class UpdateLoadBalancerPayload(BaseModel): "errors", "externalAddress", "listeners", + "loadBalancerSecurityGroup", "name", "networks", "options", @@ -164,10 +170,12 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set( [ "errors", + "load_balancer_security_group", "private_address", "region", "status", @@ -194,6 +202,9 @@ def to_dict(self) -> Dict[str, Any]: if _item: _items.append(_item.to_dict()) _dict["listeners"] = _items + # override the default output from pydantic by calling `to_dict()` of load_balancer_security_group + if self.load_balancer_security_group: + _dict["loadBalancerSecurityGroup"] = self.load_balancer_security_group.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in networks (list) _items = [] if self.networks: @@ -239,6 +250,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if obj.get("listeners") is not None else None ), + "loadBalancerSecurityGroup": ( + SecurityGroup.from_dict(obj["loadBalancerSecurityGroup"]) + if obj.get("loadBalancerSecurityGroup") is not None + else None + ), "name": obj.get("name"), "networks": ( [Network.from_dict(_item) for _item in obj["networks"]] if obj.get("networks") is not None else None diff --git a/services/iaas/CHANGELOG.md b/services/iaas/CHANGELOG.md index 1ddad69b..6676be2f 100644 --- a/services/iaas/CHANGELOG.md +++ b/services/iaas/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.5.5 +- **Improvement:** Add proper noqa comments for docstrings +- **Improvement:** Update type annotations for better type safety + ## v0.5.4 - **Improvement:** Increase max length of `machine_type` and `volume_performance_class` fields from 63 to 127 characters in API methods - **Improvement:** Increase max length of `name` fields from 63 to 127 characters for various models: diff --git a/services/iaas/pyproject.toml b/services/iaas/pyproject.toml index 52ade904..20428c7e 100644 --- a/services/iaas/pyproject.toml +++ b/services/iaas/pyproject.toml @@ -3,7 +3,7 @@ name = "stackit-iaas" [tool.poetry] name = "stackit-iaas" -version = "v0.5.4" +version = "v0.5.5" authors = [ "STACKIT Developer Tools ", ] diff --git a/services/iaas/src/stackit/iaas/__init__.py b/services/iaas/src/stackit/iaas/__init__.py index 4a02f6e4..1b2bff33 100644 --- a/services/iaas/src/stackit/iaas/__init__.py +++ b/services/iaas/src/stackit/iaas/__init__.py @@ -12,174 +12,427 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 __version__ = "1.0.0" +# Define package exports +__all__ = [ + "DefaultApi", + "ApiResponse", + "ApiClient", + "HostConfiguration", + "OpenApiException", + "ApiTypeError", + "ApiValueError", + "ApiKeyError", + "ApiAttributeError", + "ApiException", + "AddVolumeToServerPayload", + "AffinityGroup", + "AffinityGroupListResponse", + "AllowedAddressesInner", + "Area", + "AreaConfig", + "AreaPrefixConfigIPv4", + "AvailabilityZoneListResponse", + "Backup", + "BackupListResponse", + "BackupSource", + "BaseSecurityGroupRule", + "BootVolume", + "BootVolumeSource", + "CreateAffinityGroupPayload", + "CreateAreaAddressFamily", + "CreateAreaIPv4", + "CreateBackupPayload", + "CreateImagePayload", + "CreateKeyPairPayload", + "CreateNetworkAddressFamily", + "CreateNetworkAreaPayload", + "CreateNetworkAreaRangePayload", + "CreateNetworkAreaRoutePayload", + "CreateNetworkIPv4Body", + "CreateNetworkIPv6Body", + "CreateNetworkPayload", + "CreateNicPayload", + "CreateProtocol", + "CreatePublicIPPayload", + "CreateSecurityGroupPayload", + "CreateSecurityGroupRulePayload", + "CreateSecurityGroupRuleProtocol", + "CreateServerNetworking", + "CreateServerNetworkingWithNics", + "CreateServerPayload", + "CreateServerPayloadNetworking", + "CreateSnapshotPayload", + "CreateVolumePayload", + "Error", + "GetServerLog200Response", + "ICMPParameters", + "Image", + "ImageChecksum", + "ImageConfig", + "ImageCreateResponse", + "ImageListResponse", + "ImageShare", + "ImageShareConsumer", + "KeyPairListResponse", + "Keypair", + "MachineType", + "MachineTypeListResponse", + "NIC", + "NICListResponse", + "Network", + "NetworkArea", + "NetworkAreaIPv4", + "NetworkAreaListResponse", + "NetworkListResponse", + "NetworkRange", + "NetworkRangeListResponse", + "PartialUpdateNetworkAreaPayload", + "PartialUpdateNetworkPayload", + "PortRange", + "ProjectListResponse", + "Protocol", + "PublicIp", + "PublicIpListResponse", + "PublicNetwork", + "PublicNetworkListResponse", + "Quota", + "QuotaList", + "QuotaListResponse", + "Request", + "RequestResource", + "RescueServerPayload", + "ResizeServerPayload", + "ResizeVolumePayload", + "Route", + "RouteListResponse", + "SecurityGroup", + "SecurityGroupListResponse", + "SecurityGroupRule", + "SecurityGroupRuleListResponse", + "SecurityGroupRuleProtocol", + "Server", + "ServerConsoleUrl", + "ServerListResponse", + "ServerMaintenance", + "ServerNetwork", + "ServiceAccountMailListResponse", + "SetImageSharePayload", + "Snapshot", + "SnapshotListResponse", + "UpdateAreaAddressFamily", + "UpdateAreaIPv4", + "UpdateAttachedVolumePayload", + "UpdateBackupPayload", + "UpdateImagePayload", + "UpdateImageSharePayload", + "UpdateKeyPairPayload", + "UpdateNetworkAddressFamily", + "UpdateNetworkAreaRoutePayload", + "UpdateNetworkIPv4Body", + "UpdateNetworkIPv6Body", + "UpdateNicPayload", + "UpdatePublicIPPayload", + "UpdateSecurityGroupPayload", + "UpdateServerPayload", + "UpdateSnapshotPayload", + "UpdateVolumePayload", + "Volume", + "VolumeAttachment", + "VolumeAttachmentListResponse", + "VolumeListResponse", + "VolumePerformanceClass", + "VolumePerformanceClassListResponse", + "VolumeSource", +] + # import apis into sdk package -from stackit.iaas.api.default_api import DefaultApi -from stackit.iaas.api_client import ApiClient +from stackit.iaas.api.default_api import DefaultApi as DefaultApi +from stackit.iaas.api_client import ApiClient as ApiClient # import ApiClient -from stackit.iaas.api_response import ApiResponse -from stackit.iaas.configuration import HostConfiguration -from stackit.iaas.exceptions import ( - ApiAttributeError, - ApiException, - ApiKeyError, - ApiTypeError, - ApiValueError, - OpenApiException, -) +from stackit.iaas.api_response import ApiResponse as ApiResponse +from stackit.iaas.configuration import HostConfiguration as HostConfiguration +from stackit.iaas.exceptions import ApiAttributeError as ApiAttributeError +from stackit.iaas.exceptions import ApiException as ApiException +from stackit.iaas.exceptions import ApiKeyError as ApiKeyError +from stackit.iaas.exceptions import ApiTypeError as ApiTypeError +from stackit.iaas.exceptions import ApiValueError as ApiValueError +from stackit.iaas.exceptions import OpenApiException as OpenApiException # import models into sdk package -from stackit.iaas.models.add_volume_to_server_payload import AddVolumeToServerPayload -from stackit.iaas.models.affinity_group import AffinityGroup -from stackit.iaas.models.affinity_group_list_response import AffinityGroupListResponse -from stackit.iaas.models.allowed_addresses_inner import AllowedAddressesInner -from stackit.iaas.models.area import Area -from stackit.iaas.models.area_config import AreaConfig -from stackit.iaas.models.area_prefix_config_ipv4 import AreaPrefixConfigIPv4 +from stackit.iaas.models.add_volume_to_server_payload import ( + AddVolumeToServerPayload as AddVolumeToServerPayload, +) +from stackit.iaas.models.affinity_group import AffinityGroup as AffinityGroup +from stackit.iaas.models.affinity_group_list_response import ( + AffinityGroupListResponse as AffinityGroupListResponse, +) +from stackit.iaas.models.allowed_addresses_inner import ( + AllowedAddressesInner as AllowedAddressesInner, +) +from stackit.iaas.models.area import Area as Area +from stackit.iaas.models.area_config import AreaConfig as AreaConfig +from stackit.iaas.models.area_prefix_config_ipv4 import ( + AreaPrefixConfigIPv4 as AreaPrefixConfigIPv4, +) from stackit.iaas.models.availability_zone_list_response import ( - AvailabilityZoneListResponse, -) -from stackit.iaas.models.backup import Backup -from stackit.iaas.models.backup_list_response import BackupListResponse -from stackit.iaas.models.backup_source import BackupSource -from stackit.iaas.models.base_security_group_rule import BaseSecurityGroupRule -from stackit.iaas.models.boot_volume import BootVolume -from stackit.iaas.models.boot_volume_source import BootVolumeSource -from stackit.iaas.models.create_affinity_group_payload import CreateAffinityGroupPayload -from stackit.iaas.models.create_area_address_family import CreateAreaAddressFamily -from stackit.iaas.models.create_area_ipv4 import CreateAreaIPv4 -from stackit.iaas.models.create_backup_payload import CreateBackupPayload -from stackit.iaas.models.create_image_payload import CreateImagePayload -from stackit.iaas.models.create_key_pair_payload import CreateKeyPairPayload -from stackit.iaas.models.create_network_address_family import CreateNetworkAddressFamily -from stackit.iaas.models.create_network_area_payload import CreateNetworkAreaPayload + AvailabilityZoneListResponse as AvailabilityZoneListResponse, +) +from stackit.iaas.models.backup import Backup as Backup +from stackit.iaas.models.backup_list_response import ( + BackupListResponse as BackupListResponse, +) +from stackit.iaas.models.backup_source import BackupSource as BackupSource +from stackit.iaas.models.base_security_group_rule import ( + BaseSecurityGroupRule as BaseSecurityGroupRule, +) +from stackit.iaas.models.boot_volume import BootVolume as BootVolume +from stackit.iaas.models.boot_volume_source import BootVolumeSource as BootVolumeSource +from stackit.iaas.models.create_affinity_group_payload import ( + CreateAffinityGroupPayload as CreateAffinityGroupPayload, +) +from stackit.iaas.models.create_area_address_family import ( + CreateAreaAddressFamily as CreateAreaAddressFamily, +) +from stackit.iaas.models.create_area_ipv4 import CreateAreaIPv4 as CreateAreaIPv4 +from stackit.iaas.models.create_backup_payload import ( + CreateBackupPayload as CreateBackupPayload, +) +from stackit.iaas.models.create_image_payload import ( + CreateImagePayload as CreateImagePayload, +) +from stackit.iaas.models.create_key_pair_payload import ( + CreateKeyPairPayload as CreateKeyPairPayload, +) +from stackit.iaas.models.create_network_address_family import ( + CreateNetworkAddressFamily as CreateNetworkAddressFamily, +) +from stackit.iaas.models.create_network_area_payload import ( + CreateNetworkAreaPayload as CreateNetworkAreaPayload, +) from stackit.iaas.models.create_network_area_range_payload import ( - CreateNetworkAreaRangePayload, + CreateNetworkAreaRangePayload as CreateNetworkAreaRangePayload, ) from stackit.iaas.models.create_network_area_route_payload import ( - CreateNetworkAreaRoutePayload, -) -from stackit.iaas.models.create_network_ipv4_body import CreateNetworkIPv4Body -from stackit.iaas.models.create_network_ipv6_body import CreateNetworkIPv6Body -from stackit.iaas.models.create_network_payload import CreateNetworkPayload -from stackit.iaas.models.create_nic_payload import CreateNicPayload -from stackit.iaas.models.create_protocol import CreateProtocol -from stackit.iaas.models.create_public_ip_payload import CreatePublicIPPayload -from stackit.iaas.models.create_security_group_payload import CreateSecurityGroupPayload + CreateNetworkAreaRoutePayload as CreateNetworkAreaRoutePayload, +) +from stackit.iaas.models.create_network_ipv4_body import ( + CreateNetworkIPv4Body as CreateNetworkIPv4Body, +) +from stackit.iaas.models.create_network_ipv6_body import ( + CreateNetworkIPv6Body as CreateNetworkIPv6Body, +) +from stackit.iaas.models.create_network_payload import ( + CreateNetworkPayload as CreateNetworkPayload, +) +from stackit.iaas.models.create_nic_payload import CreateNicPayload as CreateNicPayload +from stackit.iaas.models.create_protocol import CreateProtocol as CreateProtocol +from stackit.iaas.models.create_public_ip_payload import ( + CreatePublicIPPayload as CreatePublicIPPayload, +) +from stackit.iaas.models.create_security_group_payload import ( + CreateSecurityGroupPayload as CreateSecurityGroupPayload, +) from stackit.iaas.models.create_security_group_rule_payload import ( - CreateSecurityGroupRulePayload, + CreateSecurityGroupRulePayload as CreateSecurityGroupRulePayload, ) from stackit.iaas.models.create_security_group_rule_protocol import ( - CreateSecurityGroupRuleProtocol, + CreateSecurityGroupRuleProtocol as CreateSecurityGroupRuleProtocol, +) +from stackit.iaas.models.create_server_networking import ( + CreateServerNetworking as CreateServerNetworking, ) -from stackit.iaas.models.create_server_networking import CreateServerNetworking from stackit.iaas.models.create_server_networking_with_nics import ( - CreateServerNetworkingWithNics, + CreateServerNetworkingWithNics as CreateServerNetworkingWithNics, +) +from stackit.iaas.models.create_server_payload import ( + CreateServerPayload as CreateServerPayload, ) -from stackit.iaas.models.create_server_payload import CreateServerPayload from stackit.iaas.models.create_server_payload_networking import ( - CreateServerPayloadNetworking, -) -from stackit.iaas.models.create_snapshot_payload import CreateSnapshotPayload -from stackit.iaas.models.create_volume_payload import CreateVolumePayload -from stackit.iaas.models.error import Error -from stackit.iaas.models.get_server_log200_response import GetServerLog200Response -from stackit.iaas.models.icmp_parameters import ICMPParameters -from stackit.iaas.models.image import Image -from stackit.iaas.models.image_checksum import ImageChecksum -from stackit.iaas.models.image_config import ImageConfig -from stackit.iaas.models.image_create_response import ImageCreateResponse -from stackit.iaas.models.image_list_response import ImageListResponse -from stackit.iaas.models.image_share import ImageShare -from stackit.iaas.models.image_share_consumer import ImageShareConsumer -from stackit.iaas.models.key_pair_list_response import KeyPairListResponse -from stackit.iaas.models.keypair import Keypair -from stackit.iaas.models.machine_type import MachineType -from stackit.iaas.models.machine_type_list_response import MachineTypeListResponse -from stackit.iaas.models.network import Network -from stackit.iaas.models.network_area import NetworkArea -from stackit.iaas.models.network_area_ipv4 import NetworkAreaIPv4 -from stackit.iaas.models.network_area_list_response import NetworkAreaListResponse -from stackit.iaas.models.network_list_response import NetworkListResponse -from stackit.iaas.models.network_range import NetworkRange -from stackit.iaas.models.network_range_list_response import NetworkRangeListResponse -from stackit.iaas.models.nic import NIC -from stackit.iaas.models.nic_list_response import NICListResponse + CreateServerPayloadNetworking as CreateServerPayloadNetworking, +) +from stackit.iaas.models.create_snapshot_payload import ( + CreateSnapshotPayload as CreateSnapshotPayload, +) +from stackit.iaas.models.create_volume_payload import ( + CreateVolumePayload as CreateVolumePayload, +) +from stackit.iaas.models.error import Error as Error +from stackit.iaas.models.get_server_log200_response import ( + GetServerLog200Response as GetServerLog200Response, +) +from stackit.iaas.models.icmp_parameters import ICMPParameters as ICMPParameters +from stackit.iaas.models.image import Image as Image +from stackit.iaas.models.image_checksum import ImageChecksum as ImageChecksum +from stackit.iaas.models.image_config import ImageConfig as ImageConfig +from stackit.iaas.models.image_create_response import ( + ImageCreateResponse as ImageCreateResponse, +) +from stackit.iaas.models.image_list_response import ( + ImageListResponse as ImageListResponse, +) +from stackit.iaas.models.image_share import ImageShare as ImageShare +from stackit.iaas.models.image_share_consumer import ( + ImageShareConsumer as ImageShareConsumer, +) +from stackit.iaas.models.key_pair_list_response import ( + KeyPairListResponse as KeyPairListResponse, +) +from stackit.iaas.models.keypair import Keypair as Keypair +from stackit.iaas.models.machine_type import MachineType as MachineType +from stackit.iaas.models.machine_type_list_response import ( + MachineTypeListResponse as MachineTypeListResponse, +) +from stackit.iaas.models.network import Network as Network +from stackit.iaas.models.network_area import NetworkArea as NetworkArea +from stackit.iaas.models.network_area_ipv4 import NetworkAreaIPv4 as NetworkAreaIPv4 +from stackit.iaas.models.network_area_list_response import ( + NetworkAreaListResponse as NetworkAreaListResponse, +) +from stackit.iaas.models.network_list_response import ( + NetworkListResponse as NetworkListResponse, +) +from stackit.iaas.models.network_range import NetworkRange as NetworkRange +from stackit.iaas.models.network_range_list_response import ( + NetworkRangeListResponse as NetworkRangeListResponse, +) +from stackit.iaas.models.nic import NIC as NIC +from stackit.iaas.models.nic_list_response import NICListResponse as NICListResponse from stackit.iaas.models.partial_update_network_area_payload import ( - PartialUpdateNetworkAreaPayload, + PartialUpdateNetworkAreaPayload as PartialUpdateNetworkAreaPayload, ) from stackit.iaas.models.partial_update_network_payload import ( - PartialUpdateNetworkPayload, -) -from stackit.iaas.models.port_range import PortRange -from stackit.iaas.models.project_list_response import ProjectListResponse -from stackit.iaas.models.protocol import Protocol -from stackit.iaas.models.public_ip import PublicIp -from stackit.iaas.models.public_ip_list_response import PublicIpListResponse -from stackit.iaas.models.public_network import PublicNetwork -from stackit.iaas.models.public_network_list_response import PublicNetworkListResponse -from stackit.iaas.models.quota import Quota -from stackit.iaas.models.quota_list import QuotaList -from stackit.iaas.models.quota_list_response import QuotaListResponse -from stackit.iaas.models.request import Request -from stackit.iaas.models.request_resource import RequestResource -from stackit.iaas.models.rescue_server_payload import RescueServerPayload -from stackit.iaas.models.resize_server_payload import ResizeServerPayload -from stackit.iaas.models.resize_volume_payload import ResizeVolumePayload -from stackit.iaas.models.route import Route -from stackit.iaas.models.route_list_response import RouteListResponse -from stackit.iaas.models.security_group import SecurityGroup -from stackit.iaas.models.security_group_list_response import SecurityGroupListResponse -from stackit.iaas.models.security_group_rule import SecurityGroupRule + PartialUpdateNetworkPayload as PartialUpdateNetworkPayload, +) +from stackit.iaas.models.port_range import PortRange as PortRange +from stackit.iaas.models.project_list_response import ( + ProjectListResponse as ProjectListResponse, +) +from stackit.iaas.models.protocol import Protocol as Protocol +from stackit.iaas.models.public_ip import PublicIp as PublicIp +from stackit.iaas.models.public_ip_list_response import ( + PublicIpListResponse as PublicIpListResponse, +) +from stackit.iaas.models.public_network import PublicNetwork as PublicNetwork +from stackit.iaas.models.public_network_list_response import ( + PublicNetworkListResponse as PublicNetworkListResponse, +) +from stackit.iaas.models.quota import Quota as Quota +from stackit.iaas.models.quota_list import QuotaList as QuotaList +from stackit.iaas.models.quota_list_response import ( + QuotaListResponse as QuotaListResponse, +) +from stackit.iaas.models.request import Request as Request +from stackit.iaas.models.request_resource import RequestResource as RequestResource +from stackit.iaas.models.rescue_server_payload import ( + RescueServerPayload as RescueServerPayload, +) +from stackit.iaas.models.resize_server_payload import ( + ResizeServerPayload as ResizeServerPayload, +) +from stackit.iaas.models.resize_volume_payload import ( + ResizeVolumePayload as ResizeVolumePayload, +) +from stackit.iaas.models.route import Route as Route +from stackit.iaas.models.route_list_response import ( + RouteListResponse as RouteListResponse, +) +from stackit.iaas.models.security_group import SecurityGroup as SecurityGroup +from stackit.iaas.models.security_group_list_response import ( + SecurityGroupListResponse as SecurityGroupListResponse, +) +from stackit.iaas.models.security_group_rule import ( + SecurityGroupRule as SecurityGroupRule, +) from stackit.iaas.models.security_group_rule_list_response import ( - SecurityGroupRuleListResponse, -) -from stackit.iaas.models.security_group_rule_protocol import SecurityGroupRuleProtocol -from stackit.iaas.models.server import Server -from stackit.iaas.models.server_console_url import ServerConsoleUrl -from stackit.iaas.models.server_list_response import ServerListResponse -from stackit.iaas.models.server_maintenance import ServerMaintenance -from stackit.iaas.models.server_network import ServerNetwork + SecurityGroupRuleListResponse as SecurityGroupRuleListResponse, +) +from stackit.iaas.models.security_group_rule_protocol import ( + SecurityGroupRuleProtocol as SecurityGroupRuleProtocol, +) +from stackit.iaas.models.server import Server as Server +from stackit.iaas.models.server_console_url import ServerConsoleUrl as ServerConsoleUrl +from stackit.iaas.models.server_list_response import ( + ServerListResponse as ServerListResponse, +) +from stackit.iaas.models.server_maintenance import ( + ServerMaintenance as ServerMaintenance, +) +from stackit.iaas.models.server_network import ServerNetwork as ServerNetwork from stackit.iaas.models.service_account_mail_list_response import ( - ServiceAccountMailListResponse, + ServiceAccountMailListResponse as ServiceAccountMailListResponse, +) +from stackit.iaas.models.set_image_share_payload import ( + SetImageSharePayload as SetImageSharePayload, ) -from stackit.iaas.models.set_image_share_payload import SetImageSharePayload -from stackit.iaas.models.snapshot import Snapshot -from stackit.iaas.models.snapshot_list_response import SnapshotListResponse -from stackit.iaas.models.update_area_address_family import UpdateAreaAddressFamily -from stackit.iaas.models.update_area_ipv4 import UpdateAreaIPv4 +from stackit.iaas.models.snapshot import Snapshot as Snapshot +from stackit.iaas.models.snapshot_list_response import ( + SnapshotListResponse as SnapshotListResponse, +) +from stackit.iaas.models.update_area_address_family import ( + UpdateAreaAddressFamily as UpdateAreaAddressFamily, +) +from stackit.iaas.models.update_area_ipv4 import UpdateAreaIPv4 as UpdateAreaIPv4 from stackit.iaas.models.update_attached_volume_payload import ( - UpdateAttachedVolumePayload, + UpdateAttachedVolumePayload as UpdateAttachedVolumePayload, +) +from stackit.iaas.models.update_backup_payload import ( + UpdateBackupPayload as UpdateBackupPayload, +) +from stackit.iaas.models.update_image_payload import ( + UpdateImagePayload as UpdateImagePayload, +) +from stackit.iaas.models.update_image_share_payload import ( + UpdateImageSharePayload as UpdateImageSharePayload, +) +from stackit.iaas.models.update_key_pair_payload import ( + UpdateKeyPairPayload as UpdateKeyPairPayload, +) +from stackit.iaas.models.update_network_address_family import ( + UpdateNetworkAddressFamily as UpdateNetworkAddressFamily, ) -from stackit.iaas.models.update_backup_payload import UpdateBackupPayload -from stackit.iaas.models.update_image_payload import UpdateImagePayload -from stackit.iaas.models.update_image_share_payload import UpdateImageSharePayload -from stackit.iaas.models.update_key_pair_payload import UpdateKeyPairPayload -from stackit.iaas.models.update_network_address_family import UpdateNetworkAddressFamily from stackit.iaas.models.update_network_area_route_payload import ( - UpdateNetworkAreaRoutePayload, -) -from stackit.iaas.models.update_network_ipv4_body import UpdateNetworkIPv4Body -from stackit.iaas.models.update_network_ipv6_body import UpdateNetworkIPv6Body -from stackit.iaas.models.update_nic_payload import UpdateNicPayload -from stackit.iaas.models.update_public_ip_payload import UpdatePublicIPPayload -from stackit.iaas.models.update_security_group_payload import UpdateSecurityGroupPayload -from stackit.iaas.models.update_server_payload import UpdateServerPayload -from stackit.iaas.models.update_snapshot_payload import UpdateSnapshotPayload -from stackit.iaas.models.update_volume_payload import UpdateVolumePayload -from stackit.iaas.models.volume import Volume -from stackit.iaas.models.volume_attachment import VolumeAttachment + UpdateNetworkAreaRoutePayload as UpdateNetworkAreaRoutePayload, +) +from stackit.iaas.models.update_network_ipv4_body import ( + UpdateNetworkIPv4Body as UpdateNetworkIPv4Body, +) +from stackit.iaas.models.update_network_ipv6_body import ( + UpdateNetworkIPv6Body as UpdateNetworkIPv6Body, +) +from stackit.iaas.models.update_nic_payload import UpdateNicPayload as UpdateNicPayload +from stackit.iaas.models.update_public_ip_payload import ( + UpdatePublicIPPayload as UpdatePublicIPPayload, +) +from stackit.iaas.models.update_security_group_payload import ( + UpdateSecurityGroupPayload as UpdateSecurityGroupPayload, +) +from stackit.iaas.models.update_server_payload import ( + UpdateServerPayload as UpdateServerPayload, +) +from stackit.iaas.models.update_snapshot_payload import ( + UpdateSnapshotPayload as UpdateSnapshotPayload, +) +from stackit.iaas.models.update_volume_payload import ( + UpdateVolumePayload as UpdateVolumePayload, +) +from stackit.iaas.models.volume import Volume as Volume +from stackit.iaas.models.volume_attachment import VolumeAttachment as VolumeAttachment from stackit.iaas.models.volume_attachment_list_response import ( - VolumeAttachmentListResponse, + VolumeAttachmentListResponse as VolumeAttachmentListResponse, +) +from stackit.iaas.models.volume_list_response import ( + VolumeListResponse as VolumeListResponse, +) +from stackit.iaas.models.volume_performance_class import ( + VolumePerformanceClass as VolumePerformanceClass, ) -from stackit.iaas.models.volume_list_response import VolumeListResponse -from stackit.iaas.models.volume_performance_class import VolumePerformanceClass from stackit.iaas.models.volume_performance_class_list_response import ( - VolumePerformanceClassListResponse, + VolumePerformanceClassListResponse as VolumePerformanceClassListResponse, ) -from stackit.iaas.models.volume_source import VolumeSource +from stackit.iaas.models.volume_source import VolumeSource as VolumeSource diff --git a/services/iaas/src/stackit/iaas/api/default_api.py b/services/iaas/src/stackit/iaas/api/default_api.py index aa0bab79..e7d62e5c 100644 --- a/services/iaas/src/stackit/iaas/api/default_api.py +++ b/services/iaas/src/stackit/iaas/api/default_api.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from typing import Any, Dict, List, Optional, Tuple, Union @@ -203,7 +203,7 @@ def add_network_to_server( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._add_network_to_server_serialize( project_id=project_id, @@ -285,7 +285,7 @@ def add_network_to_server_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._add_network_to_server_serialize( project_id=project_id, @@ -367,7 +367,7 @@ def add_network_to_server_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._add_network_to_server_serialize( project_id=project_id, @@ -409,7 +409,7 @@ def _add_network_to_server_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -501,7 +501,7 @@ def add_nic_to_server( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._add_nic_to_server_serialize( project_id=project_id, @@ -584,7 +584,7 @@ def add_nic_to_server_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._add_nic_to_server_serialize( project_id=project_id, @@ -667,7 +667,7 @@ def add_nic_to_server_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._add_nic_to_server_serialize( project_id=project_id, @@ -710,7 +710,7 @@ def _add_nic_to_server_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -801,7 +801,7 @@ def add_public_ip_to_server( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._add_public_ip_to_server_serialize( project_id=project_id, @@ -883,7 +883,7 @@ def add_public_ip_to_server_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._add_public_ip_to_server_serialize( project_id=project_id, @@ -965,7 +965,7 @@ def add_public_ip_to_server_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._add_public_ip_to_server_serialize( project_id=project_id, @@ -1008,7 +1008,7 @@ def _add_public_ip_to_server_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1105,7 +1105,7 @@ def add_security_group_to_server( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._add_security_group_to_server_serialize( project_id=project_id, @@ -1193,7 +1193,7 @@ def add_security_group_to_server_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._add_security_group_to_server_serialize( project_id=project_id, @@ -1281,7 +1281,7 @@ def add_security_group_to_server_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._add_security_group_to_server_serialize( project_id=project_id, @@ -1324,7 +1324,7 @@ def _add_security_group_to_server_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1415,7 +1415,7 @@ def add_service_account_to_server( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._add_service_account_to_server_serialize( project_id=project_id, @@ -1497,7 +1497,7 @@ def add_service_account_to_server_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._add_service_account_to_server_serialize( project_id=project_id, @@ -1579,7 +1579,7 @@ def add_service_account_to_server_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._add_service_account_to_server_serialize( project_id=project_id, @@ -1622,7 +1622,7 @@ def _add_service_account_to_server_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1719,7 +1719,7 @@ def add_volume_to_server( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._add_volume_to_server_serialize( project_id=project_id, @@ -1808,7 +1808,7 @@ def add_volume_to_server_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._add_volume_to_server_serialize( project_id=project_id, @@ -1897,7 +1897,7 @@ def add_volume_to_server_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._add_volume_to_server_serialize( project_id=project_id, @@ -1942,7 +1942,7 @@ def _add_volume_to_server_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -2037,7 +2037,7 @@ def create_affinity_group( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_affinity_group_serialize( project_id=project_id, @@ -2111,7 +2111,7 @@ def create_affinity_group_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_affinity_group_serialize( project_id=project_id, @@ -2185,7 +2185,7 @@ def create_affinity_group_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_affinity_group_serialize( project_id=project_id, @@ -2225,7 +2225,7 @@ def _create_affinity_group_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -2314,7 +2314,7 @@ def create_backup( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_backup_serialize( project_id=project_id, @@ -2386,7 +2386,7 @@ def create_backup_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_backup_serialize( project_id=project_id, @@ -2458,7 +2458,7 @@ def create_backup_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_backup_serialize( project_id=project_id, @@ -2498,7 +2498,7 @@ def _create_backup_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -2587,7 +2587,7 @@ def create_image( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_image_serialize( project_id=project_id, @@ -2660,7 +2660,7 @@ def create_image_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_image_serialize( project_id=project_id, @@ -2733,7 +2733,7 @@ def create_image_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_image_serialize( project_id=project_id, @@ -2774,7 +2774,7 @@ def _create_image_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -2857,7 +2857,7 @@ def create_key_pair( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_key_pair_serialize( create_key_pair_payload=create_key_pair_payload, @@ -2923,7 +2923,7 @@ def create_key_pair_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_key_pair_serialize( create_key_pair_payload=create_key_pair_payload, @@ -2989,7 +2989,7 @@ def create_key_pair_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_key_pair_serialize( create_key_pair_payload=create_key_pair_payload, @@ -3028,7 +3028,7 @@ def _create_key_pair_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -3115,7 +3115,7 @@ def create_network( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_network_serialize( project_id=project_id, @@ -3188,7 +3188,7 @@ def create_network_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_network_serialize( project_id=project_id, @@ -3261,7 +3261,7 @@ def create_network_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_network_serialize( project_id=project_id, @@ -3302,7 +3302,7 @@ def _create_network_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -3395,7 +3395,7 @@ def create_network_area( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_network_area_serialize( organization_id=organization_id, @@ -3471,7 +3471,7 @@ def create_network_area_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_network_area_serialize( organization_id=organization_id, @@ -3547,7 +3547,7 @@ def create_network_area_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_network_area_serialize( organization_id=organization_id, @@ -3587,7 +3587,7 @@ def _create_network_area_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -3688,7 +3688,7 @@ def create_network_area_range( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_network_area_range_serialize( organization_id=organization_id, @@ -3774,7 +3774,7 @@ def create_network_area_range_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_network_area_range_serialize( organization_id=organization_id, @@ -3860,7 +3860,7 @@ def create_network_area_range_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_network_area_range_serialize( organization_id=organization_id, @@ -3903,7 +3903,7 @@ def _create_network_area_range_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -4006,7 +4006,7 @@ def create_network_area_route( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_network_area_route_serialize( organization_id=organization_id, @@ -4092,7 +4092,7 @@ def create_network_area_route_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_network_area_route_serialize( organization_id=organization_id, @@ -4178,7 +4178,7 @@ def create_network_area_route_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_network_area_route_serialize( organization_id=organization_id, @@ -4221,7 +4221,7 @@ def _create_network_area_route_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -4318,7 +4318,7 @@ def create_nic( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_nic_serialize( project_id=project_id, @@ -4399,7 +4399,7 @@ def create_nic_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_nic_serialize( project_id=project_id, @@ -4480,7 +4480,7 @@ def create_nic_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_nic_serialize( project_id=project_id, @@ -4524,7 +4524,7 @@ def _create_nic_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -4615,7 +4615,7 @@ def create_public_ip( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_public_ip_serialize( project_id=project_id, @@ -4688,7 +4688,7 @@ def create_public_ip_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_public_ip_serialize( project_id=project_id, @@ -4761,7 +4761,7 @@ def create_public_ip_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_public_ip_serialize( project_id=project_id, @@ -4802,7 +4802,7 @@ def _create_public_ip_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -4893,7 +4893,7 @@ def create_security_group( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_security_group_serialize( project_id=project_id, @@ -4967,7 +4967,7 @@ def create_security_group_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_security_group_serialize( project_id=project_id, @@ -5041,7 +5041,7 @@ def create_security_group_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_security_group_serialize( project_id=project_id, @@ -5081,7 +5081,7 @@ def _create_security_group_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -5183,7 +5183,7 @@ def create_security_group_rule( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_security_group_rule_serialize( project_id=project_id, @@ -5269,7 +5269,7 @@ def create_security_group_rule_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_security_group_rule_serialize( project_id=project_id, @@ -5355,7 +5355,7 @@ def create_security_group_rule_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_security_group_rule_serialize( project_id=project_id, @@ -5397,7 +5397,7 @@ def _create_security_group_rule_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -5488,7 +5488,7 @@ def create_server( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_server_serialize( project_id=project_id, @@ -5560,7 +5560,7 @@ def create_server_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_server_serialize( project_id=project_id, @@ -5632,7 +5632,7 @@ def create_server_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_server_serialize( project_id=project_id, @@ -5672,7 +5672,7 @@ def _create_server_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -5761,7 +5761,7 @@ def create_snapshot( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_snapshot_serialize( project_id=project_id, @@ -5833,7 +5833,7 @@ def create_snapshot_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_snapshot_serialize( project_id=project_id, @@ -5905,7 +5905,7 @@ def create_snapshot_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_snapshot_serialize( project_id=project_id, @@ -5945,7 +5945,7 @@ def _create_snapshot_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -6034,7 +6034,7 @@ def create_volume( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_volume_serialize( project_id=project_id, @@ -6106,7 +6106,7 @@ def create_volume_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_volume_serialize( project_id=project_id, @@ -6178,7 +6178,7 @@ def create_volume_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_volume_serialize( project_id=project_id, @@ -6218,7 +6218,7 @@ def _create_volume_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -6310,7 +6310,7 @@ def deallocate_server( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._deallocate_server_serialize( project_id=project_id, @@ -6386,7 +6386,7 @@ def deallocate_server_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._deallocate_server_serialize( project_id=project_id, @@ -6462,7 +6462,7 @@ def deallocate_server_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._deallocate_server_serialize( project_id=project_id, @@ -6503,7 +6503,7 @@ def _deallocate_server_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -6592,7 +6592,7 @@ def delete_affinity_group( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_affinity_group_serialize( project_id=project_id, @@ -6672,7 +6672,7 @@ def delete_affinity_group_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_affinity_group_serialize( project_id=project_id, @@ -6752,7 +6752,7 @@ def delete_affinity_group_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_affinity_group_serialize( project_id=project_id, @@ -6792,7 +6792,7 @@ def _delete_affinity_group_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -6879,7 +6879,7 @@ def delete_backup( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_backup_serialize( project_id=project_id, @@ -6958,7 +6958,7 @@ def delete_backup_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_backup_serialize( project_id=project_id, @@ -7037,7 +7037,7 @@ def delete_backup_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_backup_serialize( project_id=project_id, @@ -7079,7 +7079,7 @@ def _delete_backup_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -7166,7 +7166,7 @@ def delete_image( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_image_serialize( project_id=project_id, @@ -7240,7 +7240,7 @@ def delete_image_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_image_serialize( project_id=project_id, @@ -7314,7 +7314,7 @@ def delete_image_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_image_serialize( project_id=project_id, @@ -7354,7 +7354,7 @@ def _delete_image_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -7437,7 +7437,7 @@ def delete_image_share( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_image_share_serialize( project_id=project_id, @@ -7511,7 +7511,7 @@ def delete_image_share_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_image_share_serialize( project_id=project_id, @@ -7585,7 +7585,7 @@ def delete_image_share_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_image_share_serialize( project_id=project_id, @@ -7625,7 +7625,7 @@ def _delete_image_share_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -7719,7 +7719,7 @@ def delete_image_share_consumer( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_image_share_consumer_serialize( project_id=project_id, @@ -7805,7 +7805,7 @@ def delete_image_share_consumer_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_image_share_consumer_serialize( project_id=project_id, @@ -7891,7 +7891,7 @@ def delete_image_share_consumer_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_image_share_consumer_serialize( project_id=project_id, @@ -7933,7 +7933,7 @@ def _delete_image_share_consumer_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -8010,7 +8010,7 @@ def delete_key_pair( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_key_pair_serialize( keypair_name=keypair_name, @@ -8075,7 +8075,7 @@ def delete_key_pair_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_key_pair_serialize( keypair_name=keypair_name, @@ -8140,7 +8140,7 @@ def delete_key_pair_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_key_pair_serialize( keypair_name=keypair_name, @@ -8178,7 +8178,7 @@ def _delete_key_pair_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -8260,7 +8260,7 @@ def delete_network( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_network_serialize( project_id=project_id, @@ -8336,7 +8336,7 @@ def delete_network_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_network_serialize( project_id=project_id, @@ -8412,7 +8412,7 @@ def delete_network_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_network_serialize( project_id=project_id, @@ -8453,7 +8453,7 @@ def _delete_network_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -8541,7 +8541,7 @@ def delete_network_area( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_network_area_serialize( organization_id=organization_id, @@ -8621,7 +8621,7 @@ def delete_network_area_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_network_area_serialize( organization_id=organization_id, @@ -8701,7 +8701,7 @@ def delete_network_area_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_network_area_serialize( organization_id=organization_id, @@ -8742,7 +8742,7 @@ def _delete_network_area_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -8838,7 +8838,7 @@ def delete_network_area_range( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_network_area_range_serialize( organization_id=organization_id, @@ -8927,7 +8927,7 @@ def delete_network_area_range_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_network_area_range_serialize( organization_id=organization_id, @@ -9016,7 +9016,7 @@ def delete_network_area_range_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_network_area_range_serialize( organization_id=organization_id, @@ -9059,7 +9059,7 @@ def _delete_network_area_range_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -9154,7 +9154,7 @@ def delete_network_area_route( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_network_area_route_serialize( organization_id=organization_id, @@ -9239,7 +9239,7 @@ def delete_network_area_route_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_network_area_route_serialize( organization_id=organization_id, @@ -9324,7 +9324,7 @@ def delete_network_area_route_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_network_area_route_serialize( organization_id=organization_id, @@ -9366,7 +9366,7 @@ def _delete_network_area_route_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -9458,7 +9458,7 @@ def delete_nic( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_nic_serialize( project_id=project_id, @@ -9540,7 +9540,7 @@ def delete_nic_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_nic_serialize( project_id=project_id, @@ -9622,7 +9622,7 @@ def delete_nic_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_nic_serialize( project_id=project_id, @@ -9664,7 +9664,7 @@ def _delete_nic_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -9749,7 +9749,7 @@ def delete_public_ip( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_public_ip_serialize( project_id=project_id, @@ -9823,7 +9823,7 @@ def delete_public_ip_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_public_ip_serialize( project_id=project_id, @@ -9897,7 +9897,7 @@ def delete_public_ip_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_public_ip_serialize( project_id=project_id, @@ -9937,7 +9937,7 @@ def _delete_public_ip_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -10026,7 +10026,7 @@ def delete_security_group( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_security_group_serialize( project_id=project_id, @@ -10107,7 +10107,7 @@ def delete_security_group_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_security_group_serialize( project_id=project_id, @@ -10188,7 +10188,7 @@ def delete_security_group_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_security_group_serialize( project_id=project_id, @@ -10229,7 +10229,7 @@ def _delete_security_group_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -10329,7 +10329,7 @@ def delete_security_group_rule( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_security_group_rule_serialize( project_id=project_id, @@ -10421,7 +10421,7 @@ def delete_security_group_rule_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_security_group_rule_serialize( project_id=project_id, @@ -10513,7 +10513,7 @@ def delete_security_group_rule_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_security_group_rule_serialize( project_id=project_id, @@ -10555,7 +10555,7 @@ def _delete_security_group_rule_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -10641,7 +10641,7 @@ def delete_server( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_server_serialize( project_id=project_id, @@ -10716,7 +10716,7 @@ def delete_server_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_server_serialize( project_id=project_id, @@ -10791,7 +10791,7 @@ def delete_server_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_server_serialize( project_id=project_id, @@ -10831,7 +10831,7 @@ def _delete_server_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -10915,7 +10915,7 @@ def delete_snapshot( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_snapshot_serialize( project_id=project_id, @@ -10990,7 +10990,7 @@ def delete_snapshot_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_snapshot_serialize( project_id=project_id, @@ -11065,7 +11065,7 @@ def delete_snapshot_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_snapshot_serialize( project_id=project_id, @@ -11105,7 +11105,7 @@ def _delete_snapshot_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -11189,7 +11189,7 @@ def delete_volume( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_volume_serialize( project_id=project_id, @@ -11265,7 +11265,7 @@ def delete_volume_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_volume_serialize( project_id=project_id, @@ -11341,7 +11341,7 @@ def delete_volume_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_volume_serialize( project_id=project_id, @@ -11382,7 +11382,7 @@ def _delete_volume_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -11471,7 +11471,7 @@ def get_affinity_group( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_affinity_group_serialize( project_id=project_id, @@ -11551,7 +11551,7 @@ def get_affinity_group_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_affinity_group_serialize( project_id=project_id, @@ -11631,7 +11631,7 @@ def get_affinity_group_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_affinity_group_serialize( project_id=project_id, @@ -11671,7 +11671,7 @@ def _get_affinity_group_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -11761,7 +11761,7 @@ def get_attached_volume( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_attached_volume_serialize( project_id=project_id, @@ -11843,7 +11843,7 @@ def get_attached_volume_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_attached_volume_serialize( project_id=project_id, @@ -11925,7 +11925,7 @@ def get_attached_volume_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_attached_volume_serialize( project_id=project_id, @@ -11967,7 +11967,7 @@ def _get_attached_volume_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -12053,7 +12053,7 @@ def get_backup( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_backup_serialize( project_id=project_id, @@ -12128,7 +12128,7 @@ def get_backup_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_backup_serialize( project_id=project_id, @@ -12203,7 +12203,7 @@ def get_backup_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_backup_serialize( project_id=project_id, @@ -12243,7 +12243,7 @@ def _get_backup_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -12326,7 +12326,7 @@ def get_image( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_image_serialize( project_id=project_id, @@ -12400,7 +12400,7 @@ def get_image_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_image_serialize( project_id=project_id, @@ -12474,7 +12474,7 @@ def get_image_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_image_serialize( project_id=project_id, @@ -12514,7 +12514,7 @@ def _get_image_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -12597,7 +12597,7 @@ def get_image_share( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_image_share_serialize( project_id=project_id, @@ -12671,7 +12671,7 @@ def get_image_share_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_image_share_serialize( project_id=project_id, @@ -12745,7 +12745,7 @@ def get_image_share_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_image_share_serialize( project_id=project_id, @@ -12785,7 +12785,7 @@ def _get_image_share_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -12879,7 +12879,7 @@ def get_image_share_consumer( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_image_share_consumer_serialize( project_id=project_id, @@ -12965,7 +12965,7 @@ def get_image_share_consumer_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_image_share_consumer_serialize( project_id=project_id, @@ -13051,7 +13051,7 @@ def get_image_share_consumer_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_image_share_consumer_serialize( project_id=project_id, @@ -13093,7 +13093,7 @@ def _get_image_share_consumer_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -13170,7 +13170,7 @@ def get_key_pair( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_key_pair_serialize( keypair_name=keypair_name, @@ -13235,7 +13235,7 @@ def get_key_pair_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_key_pair_serialize( keypair_name=keypair_name, @@ -13300,7 +13300,7 @@ def get_key_pair_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_key_pair_serialize( keypair_name=keypair_name, @@ -13338,7 +13338,7 @@ def _get_key_pair_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -13417,7 +13417,7 @@ def get_machine_type( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_machine_type_serialize( project_id=project_id, @@ -13489,7 +13489,7 @@ def get_machine_type_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_machine_type_serialize( project_id=project_id, @@ -13561,7 +13561,7 @@ def get_machine_type_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_machine_type_serialize( project_id=project_id, @@ -13601,7 +13601,7 @@ def _get_machine_type_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -13685,7 +13685,7 @@ def get_network( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_network_serialize( project_id=project_id, @@ -13760,7 +13760,7 @@ def get_network_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_network_serialize( project_id=project_id, @@ -13835,7 +13835,7 @@ def get_network_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_network_serialize( project_id=project_id, @@ -13875,7 +13875,7 @@ def _get_network_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -13963,7 +13963,7 @@ def get_network_area( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_network_area_serialize( organization_id=organization_id, @@ -14042,7 +14042,7 @@ def get_network_area_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_network_area_serialize( organization_id=organization_id, @@ -14121,7 +14121,7 @@ def get_network_area_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_network_area_serialize( organization_id=organization_id, @@ -14161,7 +14161,7 @@ def _get_network_area_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -14257,7 +14257,7 @@ def get_network_area_range( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_network_area_range_serialize( organization_id=organization_id, @@ -14345,7 +14345,7 @@ def get_network_area_range_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_network_area_range_serialize( organization_id=organization_id, @@ -14433,7 +14433,7 @@ def get_network_area_range_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_network_area_range_serialize( organization_id=organization_id, @@ -14475,7 +14475,7 @@ def _get_network_area_range_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -14570,7 +14570,7 @@ def get_network_area_route( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_network_area_route_serialize( organization_id=organization_id, @@ -14655,7 +14655,7 @@ def get_network_area_route_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_network_area_route_serialize( organization_id=organization_id, @@ -14740,7 +14740,7 @@ def get_network_area_route_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_network_area_route_serialize( organization_id=organization_id, @@ -14782,7 +14782,7 @@ def _get_network_area_route_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -14874,7 +14874,7 @@ def get_nic( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_nic_serialize( project_id=project_id, @@ -14956,7 +14956,7 @@ def get_nic_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_nic_serialize( project_id=project_id, @@ -15038,7 +15038,7 @@ def get_nic_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_nic_serialize( project_id=project_id, @@ -15080,7 +15080,7 @@ def _get_nic_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -15168,7 +15168,7 @@ def get_organization_request( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_organization_request_serialize( organization_id=organization_id, @@ -15245,7 +15245,7 @@ def get_organization_request_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_organization_request_serialize( organization_id=organization_id, @@ -15322,7 +15322,7 @@ def get_organization_request_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_organization_request_serialize( organization_id=organization_id, @@ -15362,7 +15362,7 @@ def _get_organization_request_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -15446,7 +15446,7 @@ def get_project_nic( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_project_nic_serialize( project_id=project_id, @@ -15521,7 +15521,7 @@ def get_project_nic_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_project_nic_serialize( project_id=project_id, @@ -15596,7 +15596,7 @@ def get_project_nic_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_project_nic_serialize( project_id=project_id, @@ -15636,7 +15636,7 @@ def _get_project_nic_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -15720,7 +15720,7 @@ def get_project_request( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_project_request_serialize( project_id=project_id, @@ -15795,7 +15795,7 @@ def get_project_request_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_project_request_serialize( project_id=project_id, @@ -15870,7 +15870,7 @@ def get_project_request_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_project_request_serialize( project_id=project_id, @@ -15910,7 +15910,7 @@ def _get_project_request_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -15993,7 +15993,7 @@ def get_public_ip( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_public_ip_serialize( project_id=project_id, @@ -16067,7 +16067,7 @@ def get_public_ip_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_public_ip_serialize( project_id=project_id, @@ -16141,7 +16141,7 @@ def get_public_ip_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_public_ip_serialize( project_id=project_id, @@ -16181,7 +16181,7 @@ def _get_public_ip_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -16270,7 +16270,7 @@ def get_security_group( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_security_group_serialize( project_id=project_id, @@ -16350,7 +16350,7 @@ def get_security_group_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_security_group_serialize( project_id=project_id, @@ -16430,7 +16430,7 @@ def get_security_group_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_security_group_serialize( project_id=project_id, @@ -16470,7 +16470,7 @@ def _get_security_group_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -16570,7 +16570,7 @@ def get_security_group_rule( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_security_group_rule_serialize( project_id=project_id, @@ -16662,7 +16662,7 @@ def get_security_group_rule_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_security_group_rule_serialize( project_id=project_id, @@ -16754,7 +16754,7 @@ def get_security_group_rule_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_security_group_rule_serialize( project_id=project_id, @@ -16796,7 +16796,7 @@ def _get_security_group_rule_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -16885,7 +16885,7 @@ def get_server( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_server_serialize( project_id=project_id, @@ -16964,7 +16964,7 @@ def get_server_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_server_serialize( project_id=project_id, @@ -17043,7 +17043,7 @@ def get_server_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_server_serialize( project_id=project_id, @@ -17085,7 +17085,7 @@ def _get_server_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -17173,7 +17173,7 @@ def get_server_console( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_server_console_serialize( project_id=project_id, @@ -17248,7 +17248,7 @@ def get_server_console_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_server_console_serialize( project_id=project_id, @@ -17323,7 +17323,7 @@ def get_server_console_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_server_console_serialize( project_id=project_id, @@ -17363,7 +17363,7 @@ def _get_server_console_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -17455,7 +17455,7 @@ def get_server_log( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_server_log_serialize( project_id=project_id, @@ -17539,7 +17539,7 @@ def get_server_log_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_server_log_serialize( project_id=project_id, @@ -17623,7 +17623,7 @@ def get_server_log_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_server_log_serialize( project_id=project_id, @@ -17665,7 +17665,7 @@ def _get_server_log_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -17753,7 +17753,7 @@ def get_snapshot( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_snapshot_serialize( project_id=project_id, @@ -17828,7 +17828,7 @@ def get_snapshot_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_snapshot_serialize( project_id=project_id, @@ -17903,7 +17903,7 @@ def get_snapshot_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_snapshot_serialize( project_id=project_id, @@ -17943,7 +17943,7 @@ def _get_snapshot_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -18027,7 +18027,7 @@ def get_volume( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_volume_serialize( project_id=project_id, @@ -18102,7 +18102,7 @@ def get_volume_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_volume_serialize( project_id=project_id, @@ -18177,7 +18177,7 @@ def get_volume_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_volume_serialize( project_id=project_id, @@ -18217,7 +18217,7 @@ def _get_volume_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -18300,7 +18300,7 @@ def get_volume_performance_class( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_volume_performance_class_serialize( project_id=project_id, @@ -18374,7 +18374,7 @@ def get_volume_performance_class_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_volume_performance_class_serialize( project_id=project_id, @@ -18448,7 +18448,7 @@ def get_volume_performance_class_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_volume_performance_class_serialize( project_id=project_id, @@ -18488,7 +18488,7 @@ def _get_volume_performance_class_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -18566,7 +18566,7 @@ def list_affinity_groups( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_affinity_groups_serialize( project_id=project_id, @@ -18635,7 +18635,7 @@ def list_affinity_groups_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_affinity_groups_serialize( project_id=project_id, @@ -18704,7 +18704,7 @@ def list_affinity_groups_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_affinity_groups_serialize( project_id=project_id, @@ -18743,7 +18743,7 @@ def _list_affinity_groups_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -18825,7 +18825,7 @@ def list_attached_volumes( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_attached_volumes_serialize( project_id=project_id, @@ -18900,7 +18900,7 @@ def list_attached_volumes_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_attached_volumes_serialize( project_id=project_id, @@ -18975,7 +18975,7 @@ def list_attached_volumes_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_attached_volumes_serialize( project_id=project_id, @@ -19015,7 +19015,7 @@ def _list_attached_volumes_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -19087,7 +19087,7 @@ def list_availability_zones( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_availability_zones_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, _host_index=_host_index @@ -19145,7 +19145,7 @@ def list_availability_zones_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_availability_zones_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, _host_index=_host_index @@ -19203,7 +19203,7 @@ def list_availability_zones_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_availability_zones_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, _host_index=_host_index @@ -19236,7 +19236,7 @@ def _list_availability_zones_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -19313,7 +19313,7 @@ def list_backups( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_backups_serialize( project_id=project_id, @@ -19385,7 +19385,7 @@ def list_backups_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_backups_serialize( project_id=project_id, @@ -19457,7 +19457,7 @@ def list_backups_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_backups_serialize( project_id=project_id, @@ -19497,7 +19497,7 @@ def _list_backups_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -19583,7 +19583,7 @@ def list_images( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_images_serialize( project_id=project_id, @@ -19659,7 +19659,7 @@ def list_images_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_images_serialize( project_id=project_id, @@ -19735,7 +19735,7 @@ def list_images_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_images_serialize( project_id=project_id, @@ -19777,7 +19777,7 @@ def _list_images_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -19858,7 +19858,7 @@ def list_key_pairs( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_key_pairs_serialize( label_selector=label_selector, @@ -19923,7 +19923,7 @@ def list_key_pairs_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_key_pairs_serialize( label_selector=label_selector, @@ -19988,7 +19988,7 @@ def list_key_pairs_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_key_pairs_serialize( label_selector=label_selector, @@ -20026,7 +20026,7 @@ def _list_key_pairs_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -20112,7 +20112,7 @@ def list_machine_types( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_machine_types_serialize( project_id=project_id, @@ -20189,7 +20189,7 @@ def list_machine_types_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_machine_types_serialize( project_id=project_id, @@ -20266,7 +20266,7 @@ def list_machine_types_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_machine_types_serialize( project_id=project_id, @@ -20306,7 +20306,7 @@ def _list_machine_types_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -20396,7 +20396,7 @@ def list_network_area_projects( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_network_area_projects_serialize( organization_id=organization_id, @@ -20475,7 +20475,7 @@ def list_network_area_projects_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_network_area_projects_serialize( organization_id=organization_id, @@ -20554,7 +20554,7 @@ def list_network_area_projects_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_network_area_projects_serialize( organization_id=organization_id, @@ -20594,7 +20594,7 @@ def _list_network_area_projects_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -20682,7 +20682,7 @@ def list_network_area_ranges( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_network_area_ranges_serialize( organization_id=organization_id, @@ -20761,7 +20761,7 @@ def list_network_area_ranges_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_network_area_ranges_serialize( organization_id=organization_id, @@ -20840,7 +20840,7 @@ def list_network_area_ranges_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_network_area_ranges_serialize( organization_id=organization_id, @@ -20880,7 +20880,7 @@ def _list_network_area_ranges_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -20971,7 +20971,7 @@ def list_network_area_routes( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_network_area_routes_serialize( organization_id=organization_id, @@ -21054,7 +21054,7 @@ def list_network_area_routes_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_network_area_routes_serialize( organization_id=organization_id, @@ -21137,7 +21137,7 @@ def list_network_area_routes_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_network_area_routes_serialize( organization_id=organization_id, @@ -21179,7 +21179,7 @@ def _list_network_area_routes_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -21266,7 +21266,7 @@ def list_network_areas( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_network_areas_serialize( organization_id=organization_id, @@ -21340,7 +21340,7 @@ def list_network_areas_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_network_areas_serialize( organization_id=organization_id, @@ -21414,7 +21414,7 @@ def list_network_areas_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_network_areas_serialize( organization_id=organization_id, @@ -21454,7 +21454,7 @@ def _list_network_areas_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -21537,7 +21537,7 @@ def list_networks( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_networks_serialize( project_id=project_id, @@ -21609,7 +21609,7 @@ def list_networks_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_networks_serialize( project_id=project_id, @@ -21681,7 +21681,7 @@ def list_networks_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_networks_serialize( project_id=project_id, @@ -21721,7 +21721,7 @@ def _list_networks_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -21810,7 +21810,7 @@ def list_nics( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_nics_serialize( project_id=project_id, @@ -21889,7 +21889,7 @@ def list_nics_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_nics_serialize( project_id=project_id, @@ -21968,7 +21968,7 @@ def list_nics_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_nics_serialize( project_id=project_id, @@ -22010,7 +22010,7 @@ def _list_nics_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -22095,7 +22095,7 @@ def list_project_nics( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_project_nics_serialize( project_id=project_id, @@ -22167,7 +22167,7 @@ def list_project_nics_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_project_nics_serialize( project_id=project_id, @@ -22239,7 +22239,7 @@ def list_project_nics_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_project_nics_serialize( project_id=project_id, @@ -22279,7 +22279,7 @@ def _list_project_nics_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -22353,7 +22353,7 @@ def list_public_ip_ranges( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_public_ip_ranges_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, _host_index=_host_index @@ -22411,7 +22411,7 @@ def list_public_ip_ranges_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_public_ip_ranges_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, _host_index=_host_index @@ -22469,7 +22469,7 @@ def list_public_ip_ranges_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_public_ip_ranges_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, _host_index=_host_index @@ -22502,7 +22502,7 @@ def _list_public_ip_ranges_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -22579,7 +22579,7 @@ def list_public_ips( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_public_ips_serialize( project_id=project_id, @@ -22651,7 +22651,7 @@ def list_public_ips_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_public_ips_serialize( project_id=project_id, @@ -22723,7 +22723,7 @@ def list_public_ips_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_public_ips_serialize( project_id=project_id, @@ -22763,7 +22763,7 @@ def _list_public_ips_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -22843,7 +22843,7 @@ def list_quotas( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_quotas_serialize( project_id=project_id, @@ -22911,7 +22911,7 @@ def list_quotas_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_quotas_serialize( project_id=project_id, @@ -22979,7 +22979,7 @@ def list_quotas_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_quotas_serialize( project_id=project_id, @@ -23017,7 +23017,7 @@ def _list_quotas_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -23104,7 +23104,7 @@ def list_security_group_rules( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_security_group_rules_serialize( project_id=project_id, @@ -23184,7 +23184,7 @@ def list_security_group_rules_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_security_group_rules_serialize( project_id=project_id, @@ -23264,7 +23264,7 @@ def list_security_group_rules_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_security_group_rules_serialize( project_id=project_id, @@ -23304,7 +23304,7 @@ def _list_security_group_rules_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -23385,7 +23385,7 @@ def list_security_groups( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_security_groups_serialize( project_id=project_id, @@ -23457,7 +23457,7 @@ def list_security_groups_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_security_groups_serialize( project_id=project_id, @@ -23529,7 +23529,7 @@ def list_security_groups_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_security_groups_serialize( project_id=project_id, @@ -23569,7 +23569,7 @@ def _list_security_groups_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -23655,7 +23655,7 @@ def list_server_nics( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_server_nics_serialize( project_id=project_id, @@ -23730,7 +23730,7 @@ def list_server_nics_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_server_nics_serialize( project_id=project_id, @@ -23805,7 +23805,7 @@ def list_server_nics_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_server_nics_serialize( project_id=project_id, @@ -23845,7 +23845,7 @@ def _list_server_nics_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -23929,7 +23929,7 @@ def list_server_service_accounts( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_server_service_accounts_serialize( project_id=project_id, @@ -24004,7 +24004,7 @@ def list_server_service_accounts_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_server_service_accounts_serialize( project_id=project_id, @@ -24079,7 +24079,7 @@ def list_server_service_accounts_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_server_service_accounts_serialize( project_id=project_id, @@ -24119,7 +24119,7 @@ def _list_server_service_accounts_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -24203,7 +24203,7 @@ def list_servers( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_servers_serialize( project_id=project_id, @@ -24279,7 +24279,7 @@ def list_servers_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_servers_serialize( project_id=project_id, @@ -24355,7 +24355,7 @@ def list_servers_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_servers_serialize( project_id=project_id, @@ -24397,7 +24397,7 @@ def _list_servers_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -24484,7 +24484,7 @@ def list_snapshots( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_snapshots_serialize( project_id=project_id, @@ -24556,7 +24556,7 @@ def list_snapshots_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_snapshots_serialize( project_id=project_id, @@ -24628,7 +24628,7 @@ def list_snapshots_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_snapshots_serialize( project_id=project_id, @@ -24668,7 +24668,7 @@ def _list_snapshots_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -24751,7 +24751,7 @@ def list_volume_performance_classes( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_volume_performance_classes_serialize( project_id=project_id, @@ -24823,7 +24823,7 @@ def list_volume_performance_classes_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_volume_performance_classes_serialize( project_id=project_id, @@ -24895,7 +24895,7 @@ def list_volume_performance_classes_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_volume_performance_classes_serialize( project_id=project_id, @@ -24935,7 +24935,7 @@ def _list_volume_performance_classes_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -25018,7 +25018,7 @@ def list_volumes( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_volumes_serialize( project_id=project_id, @@ -25090,7 +25090,7 @@ def list_volumes_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_volumes_serialize( project_id=project_id, @@ -25162,7 +25162,7 @@ def list_volumes_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_volumes_serialize( project_id=project_id, @@ -25202,7 +25202,7 @@ def _list_volumes_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -25293,7 +25293,7 @@ def partial_update_network( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._partial_update_network_serialize( project_id=project_id, @@ -25374,7 +25374,7 @@ def partial_update_network_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._partial_update_network_serialize( project_id=project_id, @@ -25455,7 +25455,7 @@ def partial_update_network_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._partial_update_network_serialize( project_id=project_id, @@ -25497,7 +25497,7 @@ def _partial_update_network_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -25600,7 +25600,7 @@ def partial_update_network_area( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._partial_update_network_area_serialize( organization_id=organization_id, @@ -25685,7 +25685,7 @@ def partial_update_network_area_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._partial_update_network_area_serialize( organization_id=organization_id, @@ -25770,7 +25770,7 @@ def partial_update_network_area_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._partial_update_network_area_serialize( organization_id=organization_id, @@ -25812,7 +25812,7 @@ def _partial_update_network_area_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -25909,7 +25909,7 @@ def reboot_server( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._reboot_server_serialize( project_id=project_id, @@ -25989,7 +25989,7 @@ def reboot_server_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._reboot_server_serialize( project_id=project_id, @@ -26069,7 +26069,7 @@ def reboot_server_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._reboot_server_serialize( project_id=project_id, @@ -26112,7 +26112,7 @@ def _reboot_server_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -26206,7 +26206,7 @@ def remove_network_from_server( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._remove_network_from_server_serialize( project_id=project_id, @@ -26288,7 +26288,7 @@ def remove_network_from_server_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._remove_network_from_server_serialize( project_id=project_id, @@ -26370,7 +26370,7 @@ def remove_network_from_server_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._remove_network_from_server_serialize( project_id=project_id, @@ -26412,7 +26412,7 @@ def _remove_network_from_server_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -26504,7 +26504,7 @@ def remove_nic_from_server( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._remove_nic_from_server_serialize( project_id=project_id, @@ -26586,7 +26586,7 @@ def remove_nic_from_server_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._remove_nic_from_server_serialize( project_id=project_id, @@ -26668,7 +26668,7 @@ def remove_nic_from_server_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._remove_nic_from_server_serialize( project_id=project_id, @@ -26710,7 +26710,7 @@ def _remove_nic_from_server_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -26801,7 +26801,7 @@ def remove_public_ip_from_server( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._remove_public_ip_from_server_serialize( project_id=project_id, @@ -26883,7 +26883,7 @@ def remove_public_ip_from_server_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._remove_public_ip_from_server_serialize( project_id=project_id, @@ -26965,7 +26965,7 @@ def remove_public_ip_from_server_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._remove_public_ip_from_server_serialize( project_id=project_id, @@ -27008,7 +27008,7 @@ def _remove_public_ip_from_server_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -27105,7 +27105,7 @@ def remove_security_group_from_server( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._remove_security_group_from_server_serialize( project_id=project_id, @@ -27193,7 +27193,7 @@ def remove_security_group_from_server_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._remove_security_group_from_server_serialize( project_id=project_id, @@ -27281,7 +27281,7 @@ def remove_security_group_from_server_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._remove_security_group_from_server_serialize( project_id=project_id, @@ -27324,7 +27324,7 @@ def _remove_security_group_from_server_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -27415,7 +27415,7 @@ def remove_service_account_from_server( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._remove_service_account_from_server_serialize( project_id=project_id, @@ -27497,7 +27497,7 @@ def remove_service_account_from_server_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._remove_service_account_from_server_serialize( project_id=project_id, @@ -27579,7 +27579,7 @@ def remove_service_account_from_server_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._remove_service_account_from_server_serialize( project_id=project_id, @@ -27622,7 +27622,7 @@ def _remove_service_account_from_server_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -27714,7 +27714,7 @@ def remove_volume_from_server( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._remove_volume_from_server_serialize( project_id=project_id, @@ -27797,7 +27797,7 @@ def remove_volume_from_server_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._remove_volume_from_server_serialize( project_id=project_id, @@ -27880,7 +27880,7 @@ def remove_volume_from_server_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._remove_volume_from_server_serialize( project_id=project_id, @@ -27923,7 +27923,7 @@ def _remove_volume_from_server_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -28012,7 +28012,7 @@ def rescue_server( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._rescue_server_serialize( project_id=project_id, @@ -28092,7 +28092,7 @@ def rescue_server_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._rescue_server_serialize( project_id=project_id, @@ -28172,7 +28172,7 @@ def rescue_server_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._rescue_server_serialize( project_id=project_id, @@ -28215,7 +28215,7 @@ def _rescue_server_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -28312,7 +28312,7 @@ def resize_server( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._resize_server_serialize( project_id=project_id, @@ -28392,7 +28392,7 @@ def resize_server_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._resize_server_serialize( project_id=project_id, @@ -28472,7 +28472,7 @@ def resize_server_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._resize_server_serialize( project_id=project_id, @@ -28515,7 +28515,7 @@ def _resize_server_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -28614,7 +28614,7 @@ def resize_volume( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._resize_volume_serialize( project_id=project_id, @@ -28696,7 +28696,7 @@ def resize_volume_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._resize_volume_serialize( project_id=project_id, @@ -28778,7 +28778,7 @@ def resize_volume_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._resize_volume_serialize( project_id=project_id, @@ -28821,7 +28821,7 @@ def _resize_volume_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -28915,7 +28915,7 @@ def restore_backup( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._restore_backup_serialize( project_id=project_id, @@ -28990,7 +28990,7 @@ def restore_backup_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._restore_backup_serialize( project_id=project_id, @@ -29065,7 +29065,7 @@ def restore_backup_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._restore_backup_serialize( project_id=project_id, @@ -29105,7 +29105,7 @@ def _restore_backup_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -29191,7 +29191,7 @@ def set_image_share( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._set_image_share_serialize( project_id=project_id, @@ -29269,7 +29269,7 @@ def set_image_share_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._set_image_share_serialize( project_id=project_id, @@ -29347,7 +29347,7 @@ def set_image_share_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._set_image_share_serialize( project_id=project_id, @@ -29389,7 +29389,7 @@ def _set_image_share_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -29483,7 +29483,7 @@ def start_server( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._start_server_serialize( project_id=project_id, @@ -29559,7 +29559,7 @@ def start_server_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._start_server_serialize( project_id=project_id, @@ -29635,7 +29635,7 @@ def start_server_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._start_server_serialize( project_id=project_id, @@ -29676,7 +29676,7 @@ def _start_server_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -29760,7 +29760,7 @@ def stop_server( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._stop_server_serialize( project_id=project_id, @@ -29836,7 +29836,7 @@ def stop_server_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._stop_server_serialize( project_id=project_id, @@ -29912,7 +29912,7 @@ def stop_server_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._stop_server_serialize( project_id=project_id, @@ -29953,7 +29953,7 @@ def _stop_server_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -30037,7 +30037,7 @@ def unrescue_server( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._unrescue_server_serialize( project_id=project_id, @@ -30113,7 +30113,7 @@ def unrescue_server_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._unrescue_server_serialize( project_id=project_id, @@ -30189,7 +30189,7 @@ def unrescue_server_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._unrescue_server_serialize( project_id=project_id, @@ -30230,7 +30230,7 @@ def _unrescue_server_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -30325,7 +30325,7 @@ def update_attached_volume( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_attached_volume_serialize( project_id=project_id, @@ -30413,7 +30413,7 @@ def update_attached_volume_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_attached_volume_serialize( project_id=project_id, @@ -30501,7 +30501,7 @@ def update_attached_volume_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_attached_volume_serialize( project_id=project_id, @@ -30545,7 +30545,7 @@ def _update_attached_volume_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -30644,7 +30644,7 @@ def update_backup( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_backup_serialize( project_id=project_id, @@ -30723,7 +30723,7 @@ def update_backup_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_backup_serialize( project_id=project_id, @@ -30802,7 +30802,7 @@ def update_backup_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_backup_serialize( project_id=project_id, @@ -30844,7 +30844,7 @@ def _update_backup_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -30940,7 +30940,7 @@ def update_image( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_image_serialize( project_id=project_id, @@ -31018,7 +31018,7 @@ def update_image_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_image_serialize( project_id=project_id, @@ -31096,7 +31096,7 @@ def update_image_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_image_serialize( project_id=project_id, @@ -31138,7 +31138,7 @@ def _update_image_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -31231,7 +31231,7 @@ def update_image_scope_local( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_image_scope_local_serialize( project_id=project_id, @@ -31305,7 +31305,7 @@ def update_image_scope_local_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_image_scope_local_serialize( project_id=project_id, @@ -31379,7 +31379,7 @@ def update_image_scope_local_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_image_scope_local_serialize( project_id=project_id, @@ -31419,7 +31419,7 @@ def _update_image_scope_local_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -31502,7 +31502,7 @@ def update_image_scope_public( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_image_scope_public_serialize( project_id=project_id, @@ -31576,7 +31576,7 @@ def update_image_scope_public_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_image_scope_public_serialize( project_id=project_id, @@ -31650,7 +31650,7 @@ def update_image_scope_public_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_image_scope_public_serialize( project_id=project_id, @@ -31690,7 +31690,7 @@ def _update_image_scope_public_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -31776,7 +31776,7 @@ def update_image_share( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_image_share_serialize( project_id=project_id, @@ -31854,7 +31854,7 @@ def update_image_share_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_image_share_serialize( project_id=project_id, @@ -31932,7 +31932,7 @@ def update_image_share_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_image_share_serialize( project_id=project_id, @@ -31974,7 +31974,7 @@ def _update_image_share_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -32064,7 +32064,7 @@ def update_key_pair( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_key_pair_serialize( keypair_name=keypair_name, @@ -32135,7 +32135,7 @@ def update_key_pair_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_key_pair_serialize( keypair_name=keypair_name, @@ -32206,7 +32206,7 @@ def update_key_pair_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_key_pair_serialize( keypair_name=keypair_name, @@ -32246,7 +32246,7 @@ def _update_key_pair_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -32352,7 +32352,7 @@ def update_network_area_route( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_network_area_route_serialize( organization_id=organization_id, @@ -32443,7 +32443,7 @@ def update_network_area_route_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_network_area_route_serialize( organization_id=organization_id, @@ -32534,7 +32534,7 @@ def update_network_area_route_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_network_area_route_serialize( organization_id=organization_id, @@ -32578,7 +32578,7 @@ def _update_network_area_route_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -32683,7 +32683,7 @@ def update_nic( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_nic_serialize( project_id=project_id, @@ -32770,7 +32770,7 @@ def update_nic_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_nic_serialize( project_id=project_id, @@ -32857,7 +32857,7 @@ def update_nic_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_nic_serialize( project_id=project_id, @@ -32902,7 +32902,7 @@ def _update_nic_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -33002,7 +33002,7 @@ def update_public_ip( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_public_ip_serialize( project_id=project_id, @@ -33082,7 +33082,7 @@ def update_public_ip_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_public_ip_serialize( project_id=project_id, @@ -33162,7 +33162,7 @@ def update_public_ip_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_public_ip_serialize( project_id=project_id, @@ -33204,7 +33204,7 @@ def _update_public_ip_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -33308,7 +33308,7 @@ def update_security_group( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_security_group_serialize( project_id=project_id, @@ -33394,7 +33394,7 @@ def update_security_group_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_security_group_serialize( project_id=project_id, @@ -33480,7 +33480,7 @@ def update_security_group_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_security_group_serialize( project_id=project_id, @@ -33522,7 +33522,7 @@ def _update_security_group_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -33619,7 +33619,7 @@ def update_server( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_server_serialize( project_id=project_id, @@ -33698,7 +33698,7 @@ def update_server_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_server_serialize( project_id=project_id, @@ -33777,7 +33777,7 @@ def update_server_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_server_serialize( project_id=project_id, @@ -33819,7 +33819,7 @@ def _update_server_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -33918,7 +33918,7 @@ def update_snapshot( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_snapshot_serialize( project_id=project_id, @@ -33999,7 +33999,7 @@ def update_snapshot_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_snapshot_serialize( project_id=project_id, @@ -34080,7 +34080,7 @@ def update_snapshot_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_snapshot_serialize( project_id=project_id, @@ -34122,7 +34122,7 @@ def _update_snapshot_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -34219,7 +34219,7 @@ def update_volume( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_volume_serialize( project_id=project_id, @@ -34298,7 +34298,7 @@ def update_volume_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_volume_serialize( project_id=project_id, @@ -34377,7 +34377,7 @@ def update_volume_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_volume_serialize( project_id=project_id, @@ -34419,7 +34419,7 @@ def _update_volume_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters diff --git a/services/iaas/src/stackit/iaas/api_client.py b/services/iaas/src/stackit/iaas/api_client.py index 7b8c4915..081fdc06 100644 --- a/services/iaas/src/stackit/iaas/api_client.py +++ b/services/iaas/src/stackit/iaas/api_client.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 import datetime import json @@ -332,6 +332,10 @@ def sanitize_for_serialization(self, obj): else: obj_dict = obj.__dict__ + if isinstance(obj_dict, list): + # here we handle instances that can either be a list or something else, and only became a real list by calling to_dict() # noqa: E501 + return self.sanitize_for_serialization(obj_dict) + return {key: self.sanitize_for_serialization(val) for key, val in obj_dict.items()} def deserialize(self, response_text: str, response_type: str, content_type: Optional[str]): @@ -351,12 +355,12 @@ def deserialize(self, response_text: str, response_type: str, content_type: Opti data = json.loads(response_text) except ValueError: data = response_text - elif content_type.startswith("application/json"): + elif re.match(r"^application/(json|[\w!#$&.+-^_]+\+json)\s*(;|$)", content_type, re.IGNORECASE): if response_text == "": data = "" else: data = json.loads(response_text) - elif content_type.startswith("text/plain"): + elif re.match(r"^text\/[a-z.+-]+\s*(;|$)", content_type, re.IGNORECASE): data = response_text else: raise ApiException(status=0, reason="Unsupported content type: {0}".format(content_type)) @@ -458,7 +462,7 @@ def parameters_to_url_query(self, params, collection_formats): if k in collection_formats: collection_format = collection_formats[k] if collection_format == "multi": - new_params.extend((k, str(value)) for value in v) + new_params.extend((k, quote(str(value))) for value in v) else: if collection_format == "ssv": delimiter = " " @@ -474,7 +478,10 @@ def parameters_to_url_query(self, params, collection_formats): return "&".join(["=".join(map(str, item)) for item in new_params]) - def files_parameters(self, files: Dict[str, Union[str, bytes]]): + def files_parameters( + self, + files: Dict[str, Union[str, bytes, List[str], List[bytes], Tuple[str, bytes]]], + ): """Builds form parameters. :param files: File parameters. @@ -489,6 +496,12 @@ def files_parameters(self, files: Dict[str, Union[str, bytes]]): elif isinstance(v, bytes): filename = k filedata = v + elif isinstance(v, tuple): + filename, filedata = v + elif isinstance(v, list): + for file_param in v: + params.extend(self.files_parameters({k: file_param})) + continue else: raise ValueError("Unsupported file value") mimetype = mimetypes.guess_type(filename)[0] or "application/octet-stream" diff --git a/services/iaas/src/stackit/iaas/configuration.py b/services/iaas/src/stackit/iaas/configuration.py index 17b2df8d..afb586a5 100644 --- a/services/iaas/src/stackit/iaas/configuration.py +++ b/services/iaas/src/stackit/iaas/configuration.py @@ -1,10 +1,5 @@ # coding: utf-8 -import sys - -import os - - """ IaaS-API @@ -15,7 +10,29 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 + +import sys +from typing import Dict, List, Optional, TypedDict + +from typing_extensions import NotRequired + +import os + + +ServerVariablesT = Dict[str, str] + + +class HostSettingVariable(TypedDict): + description: str + default_value: str + enum_values: List[str] + + +class HostSetting(TypedDict): + url: str + description: str + variables: NotRequired[Dict[str, HostSettingVariable]] class HostConfiguration: @@ -54,7 +71,7 @@ def __init__( """Ignore operation servers """ - def get_host_settings(self): + def get_host_settings(self) -> List[HostSetting]: """Gets an array of host settings :return: An array of host settings @@ -73,7 +90,12 @@ def get_host_settings(self): } ] - def get_host_from_settings(self, index, variables=None, servers=None): + def get_host_from_settings( + self, + index: Optional[int], + variables: Optional[ServerVariablesT] = None, + servers: Optional[List[HostSetting]] = None, + ) -> str: """Gets host URL based on the index and variables :param index: array index of the host settings :param variables: hash of variable and the corresponding value @@ -113,7 +135,7 @@ def get_host_from_settings(self, index, variables=None, servers=None): and variables.get(variable_name) is not None ): raise ValueError( - "this API does not support setting a region in the the client configuration, " + "this API does not support setting a region in the client configuration, " "please check if the region can be specified as a function parameter" ) used_value = variables.get(variable_name, variable["default_value"]) @@ -132,12 +154,12 @@ def get_host_from_settings(self, index, variables=None, servers=None): return url @property - def host(self): + def host(self) -> str: """Return generated host.""" return self.get_host_from_settings(self.server_index, variables=self.server_variables) @host.setter - def host(self, value): + def host(self, value: str) -> None: """Fix base path.""" self._base_path = value self.server_index = None diff --git a/services/iaas/src/stackit/iaas/exceptions.py b/services/iaas/src/stackit/iaas/exceptions.py index 93f48331..a80d8441 100644 --- a/services/iaas/src/stackit/iaas/exceptions.py +++ b/services/iaas/src/stackit/iaas/exceptions.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from typing import Any, Optional @@ -152,6 +152,13 @@ def from_response( if http_resp.status == 404: raise NotFoundException(http_resp=http_resp, body=body, data=data) + # Added new conditions for 409 and 422 + if http_resp.status == 409: + raise ConflictException(http_resp=http_resp, body=body, data=data) + + if http_resp.status == 422: + raise UnprocessableEntityException(http_resp=http_resp, body=body, data=data) + if 500 <= http_resp.status <= 599: raise ServiceException(http_resp=http_resp, body=body, data=data) raise ApiException(http_resp=http_resp, body=body, data=data) @@ -188,6 +195,18 @@ class ServiceException(ApiException): pass +class ConflictException(ApiException): + """Exception for HTTP 409 Conflict.""" + + pass + + +class UnprocessableEntityException(ApiException): + """Exception for HTTP 422 Unprocessable Entity.""" + + pass + + def render_path(path_to_item): """Returns a string representation of a path""" result = "" diff --git a/services/iaas/src/stackit/iaas/models/__init__.py b/services/iaas/src/stackit/iaas/models/__init__.py index 7efdd5ce..b1d5a29a 100644 --- a/services/iaas/src/stackit/iaas/models/__init__.py +++ b/services/iaas/src/stackit/iaas/models/__init__.py @@ -11,7 +11,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 # import models into model package diff --git a/services/iaas/src/stackit/iaas/models/add_volume_to_server_payload.py b/services/iaas/src/stackit/iaas/models/add_volume_to_server_payload.py index ca1487d2..93557c14 100644 --- a/services/iaas/src/stackit/iaas/models/add_volume_to_server_payload.py +++ b/services/iaas/src/stackit/iaas/models/add_volume_to_server_payload.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, StrictBool, field_validator @@ -26,7 +26,7 @@ class AddVolumeToServerPayload(BaseModel): """ Object that represents a Volume attachment to a server. - """ + """ # noqa: E501 delete_on_termination: Optional[StrictBool] = Field( default=None, diff --git a/services/iaas/src/stackit/iaas/models/affinity_group.py b/services/iaas/src/stackit/iaas/models/affinity_group.py index 629a186a..011bc650 100644 --- a/services/iaas/src/stackit/iaas/models/affinity_group.py +++ b/services/iaas/src/stackit/iaas/models/affinity_group.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator @@ -26,7 +26,7 @@ class AffinityGroup(BaseModel): """ Definition of an affinity group. - """ + """ # noqa: E501 id: Optional[Annotated[str, Field(min_length=36, strict=True, max_length=36)]] = Field( default=None, description="Universally Unique Identifier (UUID)." diff --git a/services/iaas/src/stackit/iaas/models/affinity_group_list_response.py b/services/iaas/src/stackit/iaas/models/affinity_group_list_response.py index 5b8dd828..5d4333ce 100644 --- a/services/iaas/src/stackit/iaas/models/affinity_group_list_response.py +++ b/services/iaas/src/stackit/iaas/models/affinity_group_list_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class AffinityGroupListResponse(BaseModel): """ Response object for affinity group list request. - """ + """ # noqa: E501 items: List[AffinityGroup] = Field(description="A list of affinity groups.") __properties: ClassVar[List[str]] = ["items"] diff --git a/services/iaas/src/stackit/iaas/models/allowed_addresses_inner.py b/services/iaas/src/stackit/iaas/models/allowed_addresses_inner.py index c45cb618..eb37911c 100644 --- a/services/iaas/src/stackit/iaas/models/allowed_addresses_inner.py +++ b/services/iaas/src/stackit/iaas/models/allowed_addresses_inner.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/area.py b/services/iaas/src/stackit/iaas/models/area.py index fcd43a9b..4ca3a667 100644 --- a/services/iaas/src/stackit/iaas/models/area.py +++ b/services/iaas/src/stackit/iaas/models/area.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, field_validator @@ -29,7 +29,7 @@ class Area(BaseModel): """ The basic properties of a network area. - """ + """ # noqa: E501 default_nameservers: Optional[Annotated[List[Annotated[str, Field(strict=True)]], Field(max_length=3)]] = Field( default=None, description="A list containing DNS Servers/Nameservers for IPv4.", alias="defaultNameservers" diff --git a/services/iaas/src/stackit/iaas/models/area_config.py b/services/iaas/src/stackit/iaas/models/area_config.py index 023175d6..bbae0f20 100644 --- a/services/iaas/src/stackit/iaas/models/area_config.py +++ b/services/iaas/src/stackit/iaas/models/area_config.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, field_validator @@ -29,7 +29,7 @@ class AreaConfig(BaseModel): """ The basic network area object. - """ + """ # noqa: E501 default_nameservers: Optional[Annotated[List[Annotated[str, Field(strict=True)]], Field(max_length=3)]] = Field( default=None, alias="defaultNameservers" diff --git a/services/iaas/src/stackit/iaas/models/area_prefix_config_ipv4.py b/services/iaas/src/stackit/iaas/models/area_prefix_config_ipv4.py index ee581846..c1ac7530 100644 --- a/services/iaas/src/stackit/iaas/models/area_prefix_config_ipv4.py +++ b/services/iaas/src/stackit/iaas/models/area_prefix_config_ipv4.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class AreaPrefixConfigIPv4(BaseModel): """ The IPv4 prefix config for a network area. - """ + """ # noqa: E501 default_prefix_len: Optional[Annotated[int, Field(le=29, strict=True, ge=24)]] = Field( default=None, diff --git a/services/iaas/src/stackit/iaas/models/availability_zone_list_response.py b/services/iaas/src/stackit/iaas/models/availability_zone_list_response.py index 25dcb61f..def9818c 100644 --- a/services/iaas/src/stackit/iaas/models/availability_zone_list_response.py +++ b/services/iaas/src/stackit/iaas/models/availability_zone_list_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class AvailabilityZoneListResponse(BaseModel): """ Availability Zone list response. - """ + """ # noqa: E501 items: List[StrictStr] = Field(description="A list of availability zones.") __properties: ClassVar[List[str]] = ["items"] diff --git a/services/iaas/src/stackit/iaas/models/backup.py b/services/iaas/src/stackit/iaas/models/backup.py index 47ab0e51..4fc97d81 100644 --- a/services/iaas/src/stackit/iaas/models/backup.py +++ b/services/iaas/src/stackit/iaas/models/backup.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from datetime import datetime from typing import Any, ClassVar, Dict, List, Optional, Set @@ -27,7 +27,7 @@ class Backup(BaseModel): """ Object that represents a backup. - """ + """ # noqa: E501 availability_zone: Optional[StrictStr] = Field( default=None, description="Object that represents an availability zone.", alias="availabilityZone" diff --git a/services/iaas/src/stackit/iaas/models/backup_list_response.py b/services/iaas/src/stackit/iaas/models/backup_list_response.py index 0aeba21d..2db8eb0c 100644 --- a/services/iaas/src/stackit/iaas/models/backup_list_response.py +++ b/services/iaas/src/stackit/iaas/models/backup_list_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class BackupListResponse(BaseModel): """ Backup list response. - """ + """ # noqa: E501 items: List[Backup] = Field(description="A list containing backup objects.") __properties: ClassVar[List[str]] = ["items"] diff --git a/services/iaas/src/stackit/iaas/models/backup_source.py b/services/iaas/src/stackit/iaas/models/backup_source.py index 92eb0e50..849b9286 100644 --- a/services/iaas/src/stackit/iaas/models/backup_source.py +++ b/services/iaas/src/stackit/iaas/models/backup_source.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator @@ -26,7 +26,7 @@ class BackupSource(BaseModel): """ The source object of a backup. - """ + """ # noqa: E501 id: Annotated[str, Field(min_length=36, strict=True, max_length=36)] = Field( description="Universally Unique Identifier (UUID)." diff --git a/services/iaas/src/stackit/iaas/models/base_security_group_rule.py b/services/iaas/src/stackit/iaas/models/base_security_group_rule.py index 4b9304f0..a36bf603 100644 --- a/services/iaas/src/stackit/iaas/models/base_security_group_rule.py +++ b/services/iaas/src/stackit/iaas/models/base_security_group_rule.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator @@ -29,7 +29,7 @@ class BaseSecurityGroupRule(BaseModel): """ The base schema for a security group rule. - """ + """ # noqa: E501 description: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field( default=None, description="Description Object. Allows string up to 255 Characters." diff --git a/services/iaas/src/stackit/iaas/models/boot_volume.py b/services/iaas/src/stackit/iaas/models/boot_volume.py index 7a149b50..2ab1d10b 100644 --- a/services/iaas/src/stackit/iaas/models/boot_volume.py +++ b/services/iaas/src/stackit/iaas/models/boot_volume.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import ( @@ -35,7 +35,7 @@ class BootVolume(BaseModel): """ The boot device for the server. - """ + """ # noqa: E501 delete_on_termination: Optional[StrictBool] = Field( default=None, diff --git a/services/iaas/src/stackit/iaas/models/boot_volume_source.py b/services/iaas/src/stackit/iaas/models/boot_volume_source.py index b60104c5..307445d1 100644 --- a/services/iaas/src/stackit/iaas/models/boot_volume_source.py +++ b/services/iaas/src/stackit/iaas/models/boot_volume_source.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator @@ -26,7 +26,7 @@ class BootVolumeSource(BaseModel): """ The source object of a boot volume. - """ + """ # noqa: E501 id: Annotated[str, Field(min_length=36, strict=True, max_length=36)] = Field( description="Universally Unique Identifier (UUID)." diff --git a/services/iaas/src/stackit/iaas/models/create_affinity_group_payload.py b/services/iaas/src/stackit/iaas/models/create_affinity_group_payload.py index b6cfd4c7..eefc7d6c 100644 --- a/services/iaas/src/stackit/iaas/models/create_affinity_group_payload.py +++ b/services/iaas/src/stackit/iaas/models/create_affinity_group_payload.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator @@ -26,7 +26,7 @@ class CreateAffinityGroupPayload(BaseModel): """ Definition of an affinity group. - """ + """ # noqa: E501 id: Optional[Annotated[str, Field(min_length=36, strict=True, max_length=36)]] = Field( default=None, description="Universally Unique Identifier (UUID)." diff --git a/services/iaas/src/stackit/iaas/models/create_area_address_family.py b/services/iaas/src/stackit/iaas/models/create_area_address_family.py index cb4df142..810fb91e 100644 --- a/services/iaas/src/stackit/iaas/models/create_area_address_family.py +++ b/services/iaas/src/stackit/iaas/models/create_area_address_family.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class CreateAreaAddressFamily(BaseModel): """ The addressFamily object for a area create request. - """ + """ # noqa: E501 ipv4: Optional[CreateAreaIPv4] = None __properties: ClassVar[List[str]] = ["ipv4"] diff --git a/services/iaas/src/stackit/iaas/models/create_area_ipv4.py b/services/iaas/src/stackit/iaas/models/create_area_ipv4.py index fced1a8e..d740ef0e 100644 --- a/services/iaas/src/stackit/iaas/models/create_area_ipv4.py +++ b/services/iaas/src/stackit/iaas/models/create_area_ipv4.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, field_validator @@ -29,7 +29,7 @@ class CreateAreaIPv4(BaseModel): """ The config object for a IPv4 network area. - """ + """ # noqa: E501 default_nameservers: Optional[Annotated[List[Annotated[str, Field(strict=True)]], Field(max_length=3)]] = Field( default=None, alias="defaultNameservers" diff --git a/services/iaas/src/stackit/iaas/models/create_backup_payload.py b/services/iaas/src/stackit/iaas/models/create_backup_payload.py index 62688173..e33de676 100644 --- a/services/iaas/src/stackit/iaas/models/create_backup_payload.py +++ b/services/iaas/src/stackit/iaas/models/create_backup_payload.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, field_validator @@ -28,7 +28,7 @@ class CreateBackupPayload(BaseModel): """ Object that represents a backup create request body. - """ + """ # noqa: E501 labels: Optional[Dict[str, Any]] = Field( default=None, diff --git a/services/iaas/src/stackit/iaas/models/create_image_payload.py b/services/iaas/src/stackit/iaas/models/create_image_payload.py index 493a818c..562ba56a 100644 --- a/services/iaas/src/stackit/iaas/models/create_image_payload.py +++ b/services/iaas/src/stackit/iaas/models/create_image_payload.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from datetime import datetime from typing import Any, ClassVar, Dict, List, Optional, Set @@ -38,7 +38,7 @@ class CreateImagePayload(BaseModel): """ Object that represents an Image and its parameters. Used for Creating and returning (get/list). - """ + """ # noqa: E501 checksum: Optional[ImageChecksum] = None config: Optional[ImageConfig] = None diff --git a/services/iaas/src/stackit/iaas/models/create_key_pair_payload.py b/services/iaas/src/stackit/iaas/models/create_key_pair_payload.py index 1039fd83..d2774554 100644 --- a/services/iaas/src/stackit/iaas/models/create_key_pair_payload.py +++ b/services/iaas/src/stackit/iaas/models/create_key_pair_payload.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from datetime import datetime from typing import Any, ClassVar, Dict, List, Optional, Set @@ -27,7 +27,7 @@ class CreateKeyPairPayload(BaseModel): """ Object that represents the public key of an SSH keypair and its name. - """ + """ # noqa: E501 created_at: Optional[datetime] = Field( default=None, description="Date-time when resource was created.", alias="createdAt" diff --git a/services/iaas/src/stackit/iaas/models/create_network_address_family.py b/services/iaas/src/stackit/iaas/models/create_network_address_family.py index bd21846d..3e77dd75 100644 --- a/services/iaas/src/stackit/iaas/models/create_network_address_family.py +++ b/services/iaas/src/stackit/iaas/models/create_network_address_family.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -28,7 +28,7 @@ class CreateNetworkAddressFamily(BaseModel): """ The addressFamily object for a network create request. - """ + """ # noqa: E501 ipv4: Optional[CreateNetworkIPv4Body] = None ipv6: Optional[CreateNetworkIPv6Body] = None diff --git a/services/iaas/src/stackit/iaas/models/create_network_area_payload.py b/services/iaas/src/stackit/iaas/models/create_network_area_payload.py index 005c8c6d..99a3156e 100644 --- a/services/iaas/src/stackit/iaas/models/create_network_area_payload.py +++ b/services/iaas/src/stackit/iaas/models/create_network_area_payload.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, field_validator @@ -28,7 +28,7 @@ class CreateNetworkAreaPayload(BaseModel): """ CreateNetworkAreaPayload - """ + """ # noqa: E501 address_family: CreateAreaAddressFamily = Field(alias="addressFamily") labels: Optional[Dict[str, Any]] = Field( diff --git a/services/iaas/src/stackit/iaas/models/create_network_area_range_payload.py b/services/iaas/src/stackit/iaas/models/create_network_area_range_payload.py index e13a0f2c..3ee176bb 100644 --- a/services/iaas/src/stackit/iaas/models/create_network_area_range_payload.py +++ b/services/iaas/src/stackit/iaas/models/create_network_area_range_payload.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class CreateNetworkAreaRangePayload(BaseModel): """ CreateNetworkAreaRangePayload - """ + """ # noqa: E501 ipv4: Optional[Annotated[List[NetworkRange], Field(min_length=1, max_length=64)]] = Field( default=None, description="A list of network ranges." diff --git a/services/iaas/src/stackit/iaas/models/create_network_area_route_payload.py b/services/iaas/src/stackit/iaas/models/create_network_area_route_payload.py index 227eb725..98ac069a 100644 --- a/services/iaas/src/stackit/iaas/models/create_network_area_route_payload.py +++ b/services/iaas/src/stackit/iaas/models/create_network_area_route_payload.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class CreateNetworkAreaRoutePayload(BaseModel): """ CreateNetworkAreaRoutePayload - """ + """ # noqa: E501 ipv4: Optional[List[Route]] = Field(default=None, description="A list of routes.") __properties: ClassVar[List[str]] = ["ipv4"] diff --git a/services/iaas/src/stackit/iaas/models/create_network_ipv4_body.py b/services/iaas/src/stackit/iaas/models/create_network_ipv4_body.py index 898d021c..42431a09 100644 --- a/services/iaas/src/stackit/iaas/models/create_network_ipv4_body.py +++ b/services/iaas/src/stackit/iaas/models/create_network_ipv4_body.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, field_validator @@ -26,7 +26,7 @@ class CreateNetworkIPv4Body(BaseModel): """ The config object for an IPv4 network. - """ + """ # noqa: E501 gateway: Optional[Annotated[str, Field(strict=True)]] = Field( default=None, diff --git a/services/iaas/src/stackit/iaas/models/create_network_ipv6_body.py b/services/iaas/src/stackit/iaas/models/create_network_ipv6_body.py index a1124ac1..52705e52 100644 --- a/services/iaas/src/stackit/iaas/models/create_network_ipv6_body.py +++ b/services/iaas/src/stackit/iaas/models/create_network_ipv6_body.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, field_validator @@ -26,7 +26,7 @@ class CreateNetworkIPv6Body(BaseModel): """ The config object for an IPv6 network. - """ + """ # noqa: E501 gateway: Optional[Annotated[str, Field(strict=True)]] = Field( default=None, diff --git a/services/iaas/src/stackit/iaas/models/create_network_payload.py b/services/iaas/src/stackit/iaas/models/create_network_payload.py index fb5ed5d1..fb3ba3f3 100644 --- a/services/iaas/src/stackit/iaas/models/create_network_payload.py +++ b/services/iaas/src/stackit/iaas/models/create_network_payload.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, StrictBool, field_validator @@ -28,9 +28,10 @@ class CreateNetworkPayload(BaseModel): """ Object that represents the request body for a network create. - """ + """ # noqa: E501 address_family: Optional[CreateNetworkAddressFamily] = Field(default=None, alias="addressFamily") + dhcp: Optional[StrictBool] = Field(default=None, description="Enable or disable DHCP for a network.") labels: Optional[Dict[str, Any]] = Field( default=None, description="Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`.", @@ -41,7 +42,7 @@ class CreateNetworkPayload(BaseModel): routed: Optional[StrictBool] = Field( default=None, description="Shows if the network is routed and therefore accessible from other networks." ) - __properties: ClassVar[List[str]] = ["addressFamily", "labels", "name", "routed"] + __properties: ClassVar[List[str]] = ["addressFamily", "dhcp", "labels", "name", "routed"] @field_validator("name") def name_validate_regular_expression(cls, value): @@ -108,6 +109,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if obj.get("addressFamily") is not None else None ), + "dhcp": obj.get("dhcp"), "labels": obj.get("labels"), "name": obj.get("name"), "routed": obj.get("routed"), diff --git a/services/iaas/src/stackit/iaas/models/create_nic_payload.py b/services/iaas/src/stackit/iaas/models/create_nic_payload.py index 4ee39bd7..06eda0bc 100644 --- a/services/iaas/src/stackit/iaas/models/create_nic_payload.py +++ b/services/iaas/src/stackit/iaas/models/create_nic_payload.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import ( @@ -35,7 +35,7 @@ class CreateNicPayload(BaseModel): """ Object that represents a network interface. - """ + """ # noqa: E501 allowed_addresses: Optional[List[AllowedAddressesInner]] = Field( default=None, description="A list of IPs or CIDR notations.", alias="allowedAddresses" diff --git a/services/iaas/src/stackit/iaas/models/create_protocol.py b/services/iaas/src/stackit/iaas/models/create_protocol.py index 815fde63..534e2063 100644 --- a/services/iaas/src/stackit/iaas/models/create_protocol.py +++ b/services/iaas/src/stackit/iaas/models/create_protocol.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/create_public_ip_payload.py b/services/iaas/src/stackit/iaas/models/create_public_ip_payload.py index 6b6b04db..7efca6bd 100644 --- a/services/iaas/src/stackit/iaas/models/create_public_ip_payload.py +++ b/services/iaas/src/stackit/iaas/models/create_public_ip_payload.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, field_validator @@ -26,7 +26,7 @@ class CreatePublicIPPayload(BaseModel): """ Object that represents a public IP. - """ + """ # noqa: E501 id: Optional[Annotated[str, Field(min_length=36, strict=True, max_length=36)]] = Field( default=None, description="Universally Unique Identifier (UUID)." @@ -39,9 +39,7 @@ class CreatePublicIPPayload(BaseModel): description="Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`.", ) network_interface: Optional[Annotated[str, Field(min_length=36, strict=True, max_length=36)]] = Field( - default=None, - description="Associate the public IP with a network interface or a virtual IP (ID).", - alias="networkInterface", + default=None, description="Associate the public IP with a network interface (ID).", alias="networkInterface" ) __properties: ClassVar[List[str]] = ["id", "ip", "labels", "networkInterface"] diff --git a/services/iaas/src/stackit/iaas/models/create_security_group_payload.py b/services/iaas/src/stackit/iaas/models/create_security_group_payload.py index 0a2fb495..ce5a309e 100644 --- a/services/iaas/src/stackit/iaas/models/create_security_group_payload.py +++ b/services/iaas/src/stackit/iaas/models/create_security_group_payload.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from datetime import datetime from typing import Any, ClassVar, Dict, List, Optional, Set @@ -29,7 +29,7 @@ class CreateSecurityGroupPayload(BaseModel): """ Object that represents a security group. - """ + """ # noqa: E501 created_at: Optional[datetime] = Field( default=None, description="Date-time when resource was created.", alias="createdAt" diff --git a/services/iaas/src/stackit/iaas/models/create_security_group_rule_payload.py b/services/iaas/src/stackit/iaas/models/create_security_group_rule_payload.py index 96524c21..85574db7 100644 --- a/services/iaas/src/stackit/iaas/models/create_security_group_rule_payload.py +++ b/services/iaas/src/stackit/iaas/models/create_security_group_rule_payload.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator @@ -30,7 +30,7 @@ class CreateSecurityGroupRulePayload(BaseModel): """ Object that represents a request body for security group rule creation. - """ + """ # noqa: E501 description: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field( default=None, description="Description Object. Allows string up to 255 Characters." diff --git a/services/iaas/src/stackit/iaas/models/create_security_group_rule_protocol.py b/services/iaas/src/stackit/iaas/models/create_security_group_rule_protocol.py index d86ae383..65d20539 100644 --- a/services/iaas/src/stackit/iaas/models/create_security_group_rule_protocol.py +++ b/services/iaas/src/stackit/iaas/models/create_security_group_rule_protocol.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class CreateSecurityGroupRuleProtocol(BaseModel): """ The internet protocol which the rule should match. - """ + """ # noqa: E501 protocol: Optional[CreateProtocol] = None __properties: ClassVar[List[str]] = ["protocol"] diff --git a/services/iaas/src/stackit/iaas/models/create_server_networking.py b/services/iaas/src/stackit/iaas/models/create_server_networking.py index 13320915..3964fb38 100644 --- a/services/iaas/src/stackit/iaas/models/create_server_networking.py +++ b/services/iaas/src/stackit/iaas/models/create_server_networking.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, field_validator @@ -26,7 +26,7 @@ class CreateServerNetworking(BaseModel): """ The initial networking setup for the server creation with a network. - """ + """ # noqa: E501 network_id: Optional[Annotated[str, Field(min_length=36, strict=True, max_length=36)]] = Field( default=None, description="Universally Unique Identifier (UUID).", alias="networkId" diff --git a/services/iaas/src/stackit/iaas/models/create_server_networking_with_nics.py b/services/iaas/src/stackit/iaas/models/create_server_networking_with_nics.py index 236911b2..3de15f0f 100644 --- a/services/iaas/src/stackit/iaas/models/create_server_networking_with_nics.py +++ b/services/iaas/src/stackit/iaas/models/create_server_networking_with_nics.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class CreateServerNetworkingWithNics(BaseModel): """ The initial networking setup for the server creation with a network interface. - """ + """ # noqa: E501 nic_ids: Optional[List[Annotated[str, Field(min_length=36, strict=True, max_length=36)]]] = Field( default=None, description="A list of UUIDs.", alias="nicIds" diff --git a/services/iaas/src/stackit/iaas/models/create_server_payload.py b/services/iaas/src/stackit/iaas/models/create_server_payload.py index 10fb82d6..5d728c37 100644 --- a/services/iaas/src/stackit/iaas/models/create_server_payload.py +++ b/services/iaas/src/stackit/iaas/models/create_server_payload.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from datetime import datetime from typing import Any, ClassVar, Dict, List, Optional, Set, Union @@ -41,7 +41,7 @@ class CreateServerPayload(BaseModel): """ Representation of a single server object. - """ + """ # noqa: E501 affinity_group: Optional[Annotated[str, Field(min_length=36, strict=True, max_length=36)]] = Field( default=None, description="The affinity group the server is assigned to.", alias="affinityGroup" diff --git a/services/iaas/src/stackit/iaas/models/create_server_payload_networking.py b/services/iaas/src/stackit/iaas/models/create_server_payload_networking.py index 05844e4e..f6cf42cd 100644 --- a/services/iaas/src/stackit/iaas/models/create_server_payload_networking.py +++ b/services/iaas/src/stackit/iaas/models/create_server_payload_networking.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations diff --git a/services/iaas/src/stackit/iaas/models/create_snapshot_payload.py b/services/iaas/src/stackit/iaas/models/create_snapshot_payload.py index e54b2909..f29279a7 100644 --- a/services/iaas/src/stackit/iaas/models/create_snapshot_payload.py +++ b/services/iaas/src/stackit/iaas/models/create_snapshot_payload.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from datetime import datetime from typing import Any, ClassVar, Dict, List, Optional, Set @@ -27,7 +27,7 @@ class CreateSnapshotPayload(BaseModel): """ Object that represents a snapshot. - """ + """ # noqa: E501 created_at: Optional[datetime] = Field( default=None, description="Date-time when resource was created.", alias="createdAt" diff --git a/services/iaas/src/stackit/iaas/models/create_volume_payload.py b/services/iaas/src/stackit/iaas/models/create_volume_payload.py index 468e4b78..5a5c4c72 100644 --- a/services/iaas/src/stackit/iaas/models/create_volume_payload.py +++ b/services/iaas/src/stackit/iaas/models/create_volume_payload.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from datetime import datetime from typing import Any, ClassVar, Dict, List, Optional, Set @@ -38,7 +38,7 @@ class CreateVolumePayload(BaseModel): """ Object that represents a volume and its parameters. Used for Creating and returning (get/list). - """ + """ # noqa: E501 availability_zone: StrictStr = Field( description="Object that represents an availability zone.", alias="availabilityZone" diff --git a/services/iaas/src/stackit/iaas/models/error.py b/services/iaas/src/stackit/iaas/models/error.py index 4289d08b..26045f25 100644 --- a/services/iaas/src/stackit/iaas/models/error.py +++ b/services/iaas/src/stackit/iaas/models/error.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class Error(BaseModel): """ Error with HTTP error code and an error message. - """ + """ # noqa: E501 code: StrictInt msg: StrictStr = Field(description="An error message.") diff --git a/services/iaas/src/stackit/iaas/models/get_server_log200_response.py b/services/iaas/src/stackit/iaas/models/get_server_log200_response.py index bf421b3e..54f70898 100644 --- a/services/iaas/src/stackit/iaas/models/get_server_log200_response.py +++ b/services/iaas/src/stackit/iaas/models/get_server_log200_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class GetServerLog200Response(BaseModel): """ GetServerLog200Response - """ + """ # noqa: E501 output: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["output"] diff --git a/services/iaas/src/stackit/iaas/models/icmp_parameters.py b/services/iaas/src/stackit/iaas/models/icmp_parameters.py index 8fb44ee0..8e9983ff 100644 --- a/services/iaas/src/stackit/iaas/models/icmp_parameters.py +++ b/services/iaas/src/stackit/iaas/models/icmp_parameters.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class ICMPParameters(BaseModel): """ Object that represents ICMP parameters. - """ + """ # noqa: E501 code: Annotated[int, Field(le=255, strict=True, ge=0)] = Field( description="ICMP code. Can be set if the protocol is ICMP." diff --git a/services/iaas/src/stackit/iaas/models/image.py b/services/iaas/src/stackit/iaas/models/image.py index c2abb94c..77aa70b9 100644 --- a/services/iaas/src/stackit/iaas/models/image.py +++ b/services/iaas/src/stackit/iaas/models/image.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from datetime import datetime from typing import Any, ClassVar, Dict, List, Optional, Set @@ -38,7 +38,7 @@ class Image(BaseModel): """ Object that represents an Image and its parameters. Used for Creating and returning (get/list). - """ + """ # noqa: E501 checksum: Optional[ImageChecksum] = None config: Optional[ImageConfig] = None diff --git a/services/iaas/src/stackit/iaas/models/image_checksum.py b/services/iaas/src/stackit/iaas/models/image_checksum.py index 3dd88729..81cb6731 100644 --- a/services/iaas/src/stackit/iaas/models/image_checksum.py +++ b/services/iaas/src/stackit/iaas/models/image_checksum.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator @@ -26,7 +26,7 @@ class ImageChecksum(BaseModel): """ Representation of an image checksum. - """ + """ # noqa: E501 algorithm: StrictStr = Field(description="Algorithm for the checksum of the image data.") digest: Annotated[str, Field(strict=True)] = Field(description="Hexdigest of the checksum of the image data.") diff --git a/services/iaas/src/stackit/iaas/models/image_config.py b/services/iaas/src/stackit/iaas/models/image_config.py index c78c7bfc..104e09a5 100644 --- a/services/iaas/src/stackit/iaas/models/image_config.py +++ b/services/iaas/src/stackit/iaas/models/image_config.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class ImageConfig(BaseModel): """ Properties to set hardware and scheduling settings for an Image. - """ + """ # noqa: E501 architecture: Optional[StrictStr] = Field( default=None, description="Represents CPU architecture. The default for new images is x86." diff --git a/services/iaas/src/stackit/iaas/models/image_create_response.py b/services/iaas/src/stackit/iaas/models/image_create_response.py index 7e290ea0..5cb8f749 100644 --- a/services/iaas/src/stackit/iaas/models/image_create_response.py +++ b/services/iaas/src/stackit/iaas/models/image_create_response.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator @@ -26,7 +26,7 @@ class ImageCreateResponse(BaseModel): """ Image creation response. - """ + """ # noqa: E501 id: Annotated[str, Field(min_length=36, strict=True, max_length=36)] = Field( description="Universally Unique Identifier (UUID)." diff --git a/services/iaas/src/stackit/iaas/models/image_list_response.py b/services/iaas/src/stackit/iaas/models/image_list_response.py index 6f9e62e9..2c1ec7c4 100644 --- a/services/iaas/src/stackit/iaas/models/image_list_response.py +++ b/services/iaas/src/stackit/iaas/models/image_list_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class ImageListResponse(BaseModel): """ Image list response. - """ + """ # noqa: E501 items: List[Image] = Field(description="A list containing image objects.") __properties: ClassVar[List[str]] = ["items"] diff --git a/services/iaas/src/stackit/iaas/models/image_share.py b/services/iaas/src/stackit/iaas/models/image_share.py index 5cbd3e7e..2c157866 100644 --- a/services/iaas/src/stackit/iaas/models/image_share.py +++ b/services/iaas/src/stackit/iaas/models/image_share.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class ImageShare(BaseModel): """ Share details of an Image. For requests ParentOrganization and Projects are mutually exclusive. - """ + """ # noqa: E501 parent_organization: Optional[StrictBool] = Field( default=None, diff --git a/services/iaas/src/stackit/iaas/models/image_share_consumer.py b/services/iaas/src/stackit/iaas/models/image_share_consumer.py index a3e2371e..aa2fb3c0 100644 --- a/services/iaas/src/stackit/iaas/models/image_share_consumer.py +++ b/services/iaas/src/stackit/iaas/models/image_share_consumer.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from datetime import datetime from typing import Any, ClassVar, Dict, List, Optional, Set @@ -27,7 +27,7 @@ class ImageShareConsumer(BaseModel): """ The details of an Image share consumer. - """ + """ # noqa: E501 consumer_project_id: Optional[Annotated[str, Field(min_length=36, strict=True, max_length=36)]] = Field( default=None, description="Universally Unique Identifier (UUID).", alias="consumerProjectId" diff --git a/services/iaas/src/stackit/iaas/models/key_pair_list_response.py b/services/iaas/src/stackit/iaas/models/key_pair_list_response.py index 0d82473b..f0d9160c 100644 --- a/services/iaas/src/stackit/iaas/models/key_pair_list_response.py +++ b/services/iaas/src/stackit/iaas/models/key_pair_list_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class KeyPairListResponse(BaseModel): """ SSH keypair list response. - """ + """ # noqa: E501 items: List[Keypair] = Field(description="A list of SSH keypairs.") __properties: ClassVar[List[str]] = ["items"] diff --git a/services/iaas/src/stackit/iaas/models/keypair.py b/services/iaas/src/stackit/iaas/models/keypair.py index 3d1d83d9..5434c7c3 100644 --- a/services/iaas/src/stackit/iaas/models/keypair.py +++ b/services/iaas/src/stackit/iaas/models/keypair.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from datetime import datetime from typing import Any, ClassVar, Dict, List, Optional, Set @@ -27,7 +27,7 @@ class Keypair(BaseModel): """ Object that represents the public key of an SSH keypair and its name. - """ + """ # noqa: E501 created_at: Optional[datetime] = Field( default=None, description="Date-time when resource was created.", alias="createdAt" diff --git a/services/iaas/src/stackit/iaas/models/machine_type.py b/services/iaas/src/stackit/iaas/models/machine_type.py index 97158345..58ec7ec4 100644 --- a/services/iaas/src/stackit/iaas/models/machine_type.py +++ b/services/iaas/src/stackit/iaas/models/machine_type.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, StrictInt, field_validator @@ -26,7 +26,7 @@ class MachineType(BaseModel): """ Machine Type. Filterable Fields: `disk`, `extraSpecs`, `name`, `ram`, `vcpus`. - """ + """ # noqa: E501 description: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field( default=None, description="Description Object. Allows string up to 255 Characters." diff --git a/services/iaas/src/stackit/iaas/models/machine_type_list_response.py b/services/iaas/src/stackit/iaas/models/machine_type_list_response.py index 4f116163..37baec8d 100644 --- a/services/iaas/src/stackit/iaas/models/machine_type_list_response.py +++ b/services/iaas/src/stackit/iaas/models/machine_type_list_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class MachineTypeListResponse(BaseModel): """ Machine type list response. - """ + """ # noqa: E501 items: List[MachineType] = Field(description="Machine type list.") __properties: ClassVar[List[str]] = ["items"] diff --git a/services/iaas/src/stackit/iaas/models/network.py b/services/iaas/src/stackit/iaas/models/network.py index 9ed4fe29..069b6512 100644 --- a/services/iaas/src/stackit/iaas/models/network.py +++ b/services/iaas/src/stackit/iaas/models/network.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from datetime import datetime from typing import Any, ClassVar, Dict, List, Optional, Set @@ -34,11 +34,12 @@ class Network(BaseModel): """ Object that represents a network. - """ + """ # noqa: E501 created_at: Optional[datetime] = Field( default=None, description="Date-time when resource was created.", alias="createdAt" ) + dhcp: Optional[StrictBool] = Field(default=None, description="Enable or disable DHCP for a network.") gateway: Optional[Annotated[str, Field(strict=True)]] = Field( default=None, description="The gateway of a network. If not specified the first IP of the network will be assigned as the gateway. If 'null' is sent, then the network doesn't have a gateway.", @@ -77,6 +78,7 @@ class Network(BaseModel): ) __properties: ClassVar[List[str]] = [ "createdAt", + "dhcp", "gateway", "gatewayv6", "labels", @@ -214,6 +216,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { "createdAt": obj.get("createdAt"), + "dhcp": obj.get("dhcp"), "gateway": obj.get("gateway"), "gatewayv6": obj.get("gatewayv6"), "labels": obj.get("labels"), diff --git a/services/iaas/src/stackit/iaas/models/network_area.py b/services/iaas/src/stackit/iaas/models/network_area.py index a7090734..c5c1eb4d 100644 --- a/services/iaas/src/stackit/iaas/models/network_area.py +++ b/services/iaas/src/stackit/iaas/models/network_area.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from datetime import datetime from typing import Any, ClassVar, Dict, List, Optional, Set @@ -29,7 +29,7 @@ class NetworkArea(BaseModel): """ Object that represents a network area. - """ + """ # noqa: E501 area_id: Annotated[str, Field(min_length=36, strict=True, max_length=36)] = Field( description="Universally Unique Identifier (UUID).", alias="areaId" diff --git a/services/iaas/src/stackit/iaas/models/network_area_ipv4.py b/services/iaas/src/stackit/iaas/models/network_area_ipv4.py index af49d6be..91fa00f7 100644 --- a/services/iaas/src/stackit/iaas/models/network_area_ipv4.py +++ b/services/iaas/src/stackit/iaas/models/network_area_ipv4.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, field_validator @@ -29,7 +29,7 @@ class NetworkAreaIPv4(BaseModel): """ The IPv4 properties of a network area. - """ + """ # noqa: E501 default_nameservers: Optional[Annotated[List[Annotated[str, Field(strict=True)]], Field(max_length=3)]] = Field( default=None, description="A list containing DNS Servers/Nameservers for IPv4.", alias="defaultNameservers" diff --git a/services/iaas/src/stackit/iaas/models/network_area_list_response.py b/services/iaas/src/stackit/iaas/models/network_area_list_response.py index 6f82d20f..0254e9d9 100644 --- a/services/iaas/src/stackit/iaas/models/network_area_list_response.py +++ b/services/iaas/src/stackit/iaas/models/network_area_list_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class NetworkAreaListResponse(BaseModel): """ Network area list response. - """ + """ # noqa: E501 items: List[NetworkArea] = Field(description="A list of network areas.") __properties: ClassVar[List[str]] = ["items"] diff --git a/services/iaas/src/stackit/iaas/models/network_list_response.py b/services/iaas/src/stackit/iaas/models/network_list_response.py index 2845b92f..5e4bb3a6 100644 --- a/services/iaas/src/stackit/iaas/models/network_list_response.py +++ b/services/iaas/src/stackit/iaas/models/network_list_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class NetworkListResponse(BaseModel): """ Network list response. - """ + """ # noqa: E501 items: List[Network] = Field(description="A list of networks.") __properties: ClassVar[List[str]] = ["items"] diff --git a/services/iaas/src/stackit/iaas/models/network_range.py b/services/iaas/src/stackit/iaas/models/network_range.py index ff6df236..d81ac0cc 100644 --- a/services/iaas/src/stackit/iaas/models/network_range.py +++ b/services/iaas/src/stackit/iaas/models/network_range.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from datetime import datetime from typing import Any, ClassVar, Dict, List, Optional, Set @@ -27,7 +27,7 @@ class NetworkRange(BaseModel): """ Object that represents a network range. - """ + """ # noqa: E501 created_at: Optional[datetime] = Field( default=None, description="Date-time when resource was created.", alias="createdAt" diff --git a/services/iaas/src/stackit/iaas/models/network_range_list_response.py b/services/iaas/src/stackit/iaas/models/network_range_list_response.py index 20a18bcc..3d1fc60b 100644 --- a/services/iaas/src/stackit/iaas/models/network_range_list_response.py +++ b/services/iaas/src/stackit/iaas/models/network_range_list_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class NetworkRangeListResponse(BaseModel): """ Network Range list response. - """ + """ # noqa: E501 items: Annotated[List[NetworkRange], Field(min_length=1, max_length=64)] = Field( description="A list of network ranges." diff --git a/services/iaas/src/stackit/iaas/models/nic.py b/services/iaas/src/stackit/iaas/models/nic.py index a9b7dcc4..5f48577a 100644 --- a/services/iaas/src/stackit/iaas/models/nic.py +++ b/services/iaas/src/stackit/iaas/models/nic.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import ( @@ -35,7 +35,7 @@ class NIC(BaseModel): """ Object that represents a network interface. - """ + """ # noqa: E501 allowed_addresses: Optional[List[AllowedAddressesInner]] = Field( default=None, description="A list of IPs or CIDR notations.", alias="allowedAddresses" diff --git a/services/iaas/src/stackit/iaas/models/nic_list_response.py b/services/iaas/src/stackit/iaas/models/nic_list_response.py index 00e4ee19..b8265d23 100644 --- a/services/iaas/src/stackit/iaas/models/nic_list_response.py +++ b/services/iaas/src/stackit/iaas/models/nic_list_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class NICListResponse(BaseModel): """ NIC list response. - """ + """ # noqa: E501 items: List[NIC] = Field(description="A list of network interfaces.") __properties: ClassVar[List[str]] = ["items"] diff --git a/services/iaas/src/stackit/iaas/models/partial_update_network_area_payload.py b/services/iaas/src/stackit/iaas/models/partial_update_network_area_payload.py index bdb0ddaf..a9c6d96a 100644 --- a/services/iaas/src/stackit/iaas/models/partial_update_network_area_payload.py +++ b/services/iaas/src/stackit/iaas/models/partial_update_network_area_payload.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, field_validator @@ -28,7 +28,7 @@ class PartialUpdateNetworkAreaPayload(BaseModel): """ PartialUpdateNetworkAreaPayload - """ + """ # noqa: E501 address_family: Optional[UpdateAreaAddressFamily] = Field(default=None, alias="addressFamily") labels: Optional[Dict[str, Any]] = Field( diff --git a/services/iaas/src/stackit/iaas/models/partial_update_network_payload.py b/services/iaas/src/stackit/iaas/models/partial_update_network_payload.py index a33205a3..0b77afdd 100644 --- a/services/iaas/src/stackit/iaas/models/partial_update_network_payload.py +++ b/services/iaas/src/stackit/iaas/models/partial_update_network_payload.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, StrictBool, field_validator @@ -28,9 +28,10 @@ class PartialUpdateNetworkPayload(BaseModel): """ Object that represents the request body for a network update. - """ + """ # noqa: E501 address_family: Optional[UpdateNetworkAddressFamily] = Field(default=None, alias="addressFamily") + dhcp: Optional[StrictBool] = Field(default=None, description="Enable or disable DHCP for a network.") labels: Optional[Dict[str, Any]] = Field( default=None, description="Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`.", @@ -41,7 +42,7 @@ class PartialUpdateNetworkPayload(BaseModel): routed: Optional[StrictBool] = Field( default=None, description="Shows if the network is routed and therefore accessible from other networks." ) - __properties: ClassVar[List[str]] = ["addressFamily", "labels", "name", "routed"] + __properties: ClassVar[List[str]] = ["addressFamily", "dhcp", "labels", "name", "routed"] @field_validator("name") def name_validate_regular_expression(cls, value): @@ -111,6 +112,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if obj.get("addressFamily") is not None else None ), + "dhcp": obj.get("dhcp"), "labels": obj.get("labels"), "name": obj.get("name"), "routed": obj.get("routed"), diff --git a/services/iaas/src/stackit/iaas/models/port_range.py b/services/iaas/src/stackit/iaas/models/port_range.py index eb020bc8..d2b416a7 100644 --- a/services/iaas/src/stackit/iaas/models/port_range.py +++ b/services/iaas/src/stackit/iaas/models/port_range.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class PortRange(BaseModel): """ Object that represents a range of ports. - """ + """ # noqa: E501 max: Annotated[int, Field(le=65535, strict=True, ge=0)] = Field( description="The maximum port number. Should be greater or equal to the minimum." diff --git a/services/iaas/src/stackit/iaas/models/project_list_response.py b/services/iaas/src/stackit/iaas/models/project_list_response.py index 34bd8fb4..a283b9ec 100644 --- a/services/iaas/src/stackit/iaas/models/project_list_response.py +++ b/services/iaas/src/stackit/iaas/models/project_list_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class ProjectListResponse(BaseModel): """ Project list response. - """ + """ # noqa: E501 items: List[Annotated[str, Field(min_length=36, strict=True, max_length=36)]] = Field( description="A list of STACKIT projects." diff --git a/services/iaas/src/stackit/iaas/models/protocol.py b/services/iaas/src/stackit/iaas/models/protocol.py index 055898bc..6f972070 100644 --- a/services/iaas/src/stackit/iaas/models/protocol.py +++ b/services/iaas/src/stackit/iaas/models/protocol.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class Protocol(BaseModel): """ The schema for a protocol of a security group rule. - """ + """ # noqa: E501 name: Optional[StrictStr] = Field( default=None, diff --git a/services/iaas/src/stackit/iaas/models/public_ip.py b/services/iaas/src/stackit/iaas/models/public_ip.py index 93c62aa9..eff76269 100644 --- a/services/iaas/src/stackit/iaas/models/public_ip.py +++ b/services/iaas/src/stackit/iaas/models/public_ip.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, field_validator @@ -26,7 +26,7 @@ class PublicIp(BaseModel): """ Object that represents a public IP. - """ + """ # noqa: E501 id: Optional[Annotated[str, Field(min_length=36, strict=True, max_length=36)]] = Field( default=None, description="Universally Unique Identifier (UUID)." @@ -39,9 +39,7 @@ class PublicIp(BaseModel): description="Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`.", ) network_interface: Optional[Annotated[str, Field(min_length=36, strict=True, max_length=36)]] = Field( - default=None, - description="Associate the public IP with a network interface or a virtual IP (ID).", - alias="networkInterface", + default=None, description="Associate the public IP with a network interface (ID).", alias="networkInterface" ) __properties: ClassVar[List[str]] = ["id", "ip", "labels", "networkInterface"] diff --git a/services/iaas/src/stackit/iaas/models/public_ip_list_response.py b/services/iaas/src/stackit/iaas/models/public_ip_list_response.py index 9b4b207c..3d4100a4 100644 --- a/services/iaas/src/stackit/iaas/models/public_ip_list_response.py +++ b/services/iaas/src/stackit/iaas/models/public_ip_list_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class PublicIpListResponse(BaseModel): """ Public IP list response. - """ + """ # noqa: E501 items: List[PublicIp] = Field(description="A list of public IPs.") __properties: ClassVar[List[str]] = ["items"] diff --git a/services/iaas/src/stackit/iaas/models/public_network.py b/services/iaas/src/stackit/iaas/models/public_network.py index faa0e37e..4941a30c 100644 --- a/services/iaas/src/stackit/iaas/models/public_network.py +++ b/services/iaas/src/stackit/iaas/models/public_network.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, field_validator @@ -26,7 +26,7 @@ class PublicNetwork(BaseModel): """ Public network. - """ + """ # noqa: E501 cidr: Annotated[str, Field(strict=True)] = Field(description="Classless Inter-Domain Routing (CIDR).") __properties: ClassVar[List[str]] = ["cidr"] diff --git a/services/iaas/src/stackit/iaas/models/public_network_list_response.py b/services/iaas/src/stackit/iaas/models/public_network_list_response.py index e41f05f1..d48df60d 100644 --- a/services/iaas/src/stackit/iaas/models/public_network_list_response.py +++ b/services/iaas/src/stackit/iaas/models/public_network_list_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class PublicNetworkListResponse(BaseModel): """ Public network list response. - """ + """ # noqa: E501 items: List[PublicNetwork] = Field(description="A list of public networks.") __properties: ClassVar[List[str]] = ["items"] diff --git a/services/iaas/src/stackit/iaas/models/quota.py b/services/iaas/src/stackit/iaas/models/quota.py index baf3366d..6494ced7 100644 --- a/services/iaas/src/stackit/iaas/models/quota.py +++ b/services/iaas/src/stackit/iaas/models/quota.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class Quota(BaseModel): """ Object that represents a single resource quota. - """ + """ # noqa: E501 limit: StrictInt usage: StrictInt diff --git a/services/iaas/src/stackit/iaas/models/quota_list.py b/services/iaas/src/stackit/iaas/models/quota_list.py index bc0c439e..391182a0 100644 --- a/services/iaas/src/stackit/iaas/models/quota_list.py +++ b/services/iaas/src/stackit/iaas/models/quota_list.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class QuotaList(BaseModel): """ Object that represents the quotas for a project. - """ + """ # noqa: E501 backup_gigabytes: Quota = Field(description="Total size in GiB of backups.", alias="backupGigabytes") backups: Quota = Field(description="Number of backups.") diff --git a/services/iaas/src/stackit/iaas/models/quota_list_response.py b/services/iaas/src/stackit/iaas/models/quota_list_response.py index ed2b5cbd..b11df4ef 100644 --- a/services/iaas/src/stackit/iaas/models/quota_list_response.py +++ b/services/iaas/src/stackit/iaas/models/quota_list_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class QuotaListResponse(BaseModel): """ Quotas list response. - """ + """ # noqa: E501 quotas: QuotaList __properties: ClassVar[List[str]] = ["quotas"] diff --git a/services/iaas/src/stackit/iaas/models/request.py b/services/iaas/src/stackit/iaas/models/request.py index 9d984384..1aa9a287 100644 --- a/services/iaas/src/stackit/iaas/models/request.py +++ b/services/iaas/src/stackit/iaas/models/request.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator @@ -28,7 +28,7 @@ class Request(BaseModel): """ Object that represents a request. - """ + """ # noqa: E501 details: Optional[StrictStr] = None request_action: StrictStr = Field( diff --git a/services/iaas/src/stackit/iaas/models/request_resource.py b/services/iaas/src/stackit/iaas/models/request_resource.py index 76093c74..8ef0cecc 100644 --- a/services/iaas/src/stackit/iaas/models/request_resource.py +++ b/services/iaas/src/stackit/iaas/models/request_resource.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator @@ -26,7 +26,7 @@ class RequestResource(BaseModel): """ Object that represents a resource as part of a request. - """ + """ # noqa: E501 id: Annotated[str, Field(min_length=36, strict=True, max_length=36)] = Field( description="Universally Unique Identifier (UUID)." diff --git a/services/iaas/src/stackit/iaas/models/rescue_server_payload.py b/services/iaas/src/stackit/iaas/models/rescue_server_payload.py index 098796d7..128f4702 100644 --- a/services/iaas/src/stackit/iaas/models/rescue_server_payload.py +++ b/services/iaas/src/stackit/iaas/models/rescue_server_payload.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, field_validator @@ -26,7 +26,7 @@ class RescueServerPayload(BaseModel): """ RescueServerPayload - """ + """ # noqa: E501 image: Annotated[str, Field(min_length=36, strict=True, max_length=36)] = Field( description="Universally Unique Identifier (UUID)." diff --git a/services/iaas/src/stackit/iaas/models/resize_server_payload.py b/services/iaas/src/stackit/iaas/models/resize_server_payload.py index 42ecfcd4..4b1f0f38 100644 --- a/services/iaas/src/stackit/iaas/models/resize_server_payload.py +++ b/services/iaas/src/stackit/iaas/models/resize_server_payload.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, field_validator @@ -26,7 +26,7 @@ class ResizeServerPayload(BaseModel): """ ResizeServerPayload - """ + """ # noqa: E501 machine_type: Annotated[str, Field(strict=True, max_length=127)] = Field( description="The name for a General Object. Matches Names and also UUIDs.", alias="machineType" diff --git a/services/iaas/src/stackit/iaas/models/resize_volume_payload.py b/services/iaas/src/stackit/iaas/models/resize_volume_payload.py index 2926d2c8..553134bf 100644 --- a/services/iaas/src/stackit/iaas/models/resize_volume_payload.py +++ b/services/iaas/src/stackit/iaas/models/resize_volume_payload.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class ResizeVolumePayload(BaseModel): """ ResizeVolumePayload - """ + """ # noqa: E501 size: StrictInt = Field(description="Size in Gigabyte.") __properties: ClassVar[List[str]] = ["size"] diff --git a/services/iaas/src/stackit/iaas/models/route.py b/services/iaas/src/stackit/iaas/models/route.py index 5151d814..9dc4d39a 100644 --- a/services/iaas/src/stackit/iaas/models/route.py +++ b/services/iaas/src/stackit/iaas/models/route.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from datetime import datetime from typing import Any, ClassVar, Dict, List, Optional, Set @@ -27,7 +27,7 @@ class Route(BaseModel): """ Object represents a network route. - """ + """ # noqa: E501 created_at: Optional[datetime] = Field( default=None, description="Date-time when resource was created.", alias="createdAt" diff --git a/services/iaas/src/stackit/iaas/models/route_list_response.py b/services/iaas/src/stackit/iaas/models/route_list_response.py index 1ad1fa25..2071e5e1 100644 --- a/services/iaas/src/stackit/iaas/models/route_list_response.py +++ b/services/iaas/src/stackit/iaas/models/route_list_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class RouteListResponse(BaseModel): """ Route list response. - """ + """ # noqa: E501 items: List[Route] = Field(description="A list of routes.") __properties: ClassVar[List[str]] = ["items"] diff --git a/services/iaas/src/stackit/iaas/models/security_group.py b/services/iaas/src/stackit/iaas/models/security_group.py index 2a9b858f..1407a0f7 100644 --- a/services/iaas/src/stackit/iaas/models/security_group.py +++ b/services/iaas/src/stackit/iaas/models/security_group.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from datetime import datetime from typing import Any, ClassVar, Dict, List, Optional, Set @@ -29,7 +29,7 @@ class SecurityGroup(BaseModel): """ Object that represents a security group. - """ + """ # noqa: E501 created_at: Optional[datetime] = Field( default=None, description="Date-time when resource was created.", alias="createdAt" diff --git a/services/iaas/src/stackit/iaas/models/security_group_list_response.py b/services/iaas/src/stackit/iaas/models/security_group_list_response.py index b69b374a..ad348dee 100644 --- a/services/iaas/src/stackit/iaas/models/security_group_list_response.py +++ b/services/iaas/src/stackit/iaas/models/security_group_list_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class SecurityGroupListResponse(BaseModel): """ Security group list response. - """ + """ # noqa: E501 items: List[SecurityGroup] = Field(description="A list containing security group objects.") __properties: ClassVar[List[str]] = ["items"] diff --git a/services/iaas/src/stackit/iaas/models/security_group_rule.py b/services/iaas/src/stackit/iaas/models/security_group_rule.py index 862a4f29..91897678 100644 --- a/services/iaas/src/stackit/iaas/models/security_group_rule.py +++ b/services/iaas/src/stackit/iaas/models/security_group_rule.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator @@ -30,7 +30,7 @@ class SecurityGroupRule(BaseModel): """ Object that represents a security group rule. - """ + """ # noqa: E501 description: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field( default=None, description="Description Object. Allows string up to 255 Characters." diff --git a/services/iaas/src/stackit/iaas/models/security_group_rule_list_response.py b/services/iaas/src/stackit/iaas/models/security_group_rule_list_response.py index 165555f7..bb0c6302 100644 --- a/services/iaas/src/stackit/iaas/models/security_group_rule_list_response.py +++ b/services/iaas/src/stackit/iaas/models/security_group_rule_list_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class SecurityGroupRuleListResponse(BaseModel): """ Security group rule list response. - """ + """ # noqa: E501 items: List[SecurityGroupRule] = Field(description="A list containing security group rule objects.") __properties: ClassVar[List[str]] = ["items"] diff --git a/services/iaas/src/stackit/iaas/models/security_group_rule_protocol.py b/services/iaas/src/stackit/iaas/models/security_group_rule_protocol.py index 4593911a..fff68592 100644 --- a/services/iaas/src/stackit/iaas/models/security_group_rule_protocol.py +++ b/services/iaas/src/stackit/iaas/models/security_group_rule_protocol.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class SecurityGroupRuleProtocol(BaseModel): """ The internet protocol which the rule matches. - """ + """ # noqa: E501 protocol: Optional[Protocol] = None __properties: ClassVar[List[str]] = ["protocol"] diff --git a/services/iaas/src/stackit/iaas/models/server.py b/services/iaas/src/stackit/iaas/models/server.py index 3e4cc335..38ba4d7d 100644 --- a/services/iaas/src/stackit/iaas/models/server.py +++ b/services/iaas/src/stackit/iaas/models/server.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from datetime import datetime from typing import Any, ClassVar, Dict, List, Optional, Set, Union @@ -41,7 +41,7 @@ class Server(BaseModel): """ Representation of a single server object. - """ + """ # noqa: E501 affinity_group: Optional[Annotated[str, Field(min_length=36, strict=True, max_length=36)]] = Field( default=None, description="The affinity group the server is assigned to.", alias="affinityGroup" diff --git a/services/iaas/src/stackit/iaas/models/server_console_url.py b/services/iaas/src/stackit/iaas/models/server_console_url.py index 00e8ef5f..629e8fc2 100644 --- a/services/iaas/src/stackit/iaas/models/server_console_url.py +++ b/services/iaas/src/stackit/iaas/models/server_console_url.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class ServerConsoleUrl(BaseModel): """ Object that represents a server console URL. - """ + """ # noqa: E501 url: StrictStr __properties: ClassVar[List[str]] = ["url"] diff --git a/services/iaas/src/stackit/iaas/models/server_list_response.py b/services/iaas/src/stackit/iaas/models/server_list_response.py index 19d3f510..6be59cdc 100644 --- a/services/iaas/src/stackit/iaas/models/server_list_response.py +++ b/services/iaas/src/stackit/iaas/models/server_list_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class ServerListResponse(BaseModel): """ Response object for server list request. - """ + """ # noqa: E501 items: List[Server] = Field(description="A list of servers.") __properties: ClassVar[List[str]] = ["items"] diff --git a/services/iaas/src/stackit/iaas/models/server_maintenance.py b/services/iaas/src/stackit/iaas/models/server_maintenance.py index 8d4e2550..2d71c334 100644 --- a/services/iaas/src/stackit/iaas/models/server_maintenance.py +++ b/services/iaas/src/stackit/iaas/models/server_maintenance.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -26,7 +26,7 @@ class ServerMaintenance(BaseModel): """ Object that represents the information about the next planned server maintenance window. - """ + """ # noqa: E501 details: Optional[StrictStr] = None ends_at: datetime = Field(description="End of the maintenance window.", alias="endsAt") diff --git a/services/iaas/src/stackit/iaas/models/server_network.py b/services/iaas/src/stackit/iaas/models/server_network.py index e8366848..45f1159e 100644 --- a/services/iaas/src/stackit/iaas/models/server_network.py +++ b/services/iaas/src/stackit/iaas/models/server_network.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, StrictBool, field_validator @@ -28,7 +28,7 @@ class ServerNetwork(BaseModel): """ Describes the object that matches servers to its networks. - """ + """ # noqa: E501 allowed_addresses: Optional[List[AllowedAddressesInner]] = Field( default=None, description="A list of IPs or CIDR notations.", alias="allowedAddresses" diff --git a/services/iaas/src/stackit/iaas/models/service_account_mail_list_response.py b/services/iaas/src/stackit/iaas/models/service_account_mail_list_response.py index 114a9f8e..da17ca93 100644 --- a/services/iaas/src/stackit/iaas/models/service_account_mail_list_response.py +++ b/services/iaas/src/stackit/iaas/models/service_account_mail_list_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class ServiceAccountMailListResponse(BaseModel): """ Service account mail list response. - """ + """ # noqa: E501 items: Annotated[List[Annotated[str, Field(strict=True, max_length=255)]], Field(max_length=1)] = Field( description="A list of service account mails." diff --git a/services/iaas/src/stackit/iaas/models/set_image_share_payload.py b/services/iaas/src/stackit/iaas/models/set_image_share_payload.py index a18dbc96..8a85a54a 100644 --- a/services/iaas/src/stackit/iaas/models/set_image_share_payload.py +++ b/services/iaas/src/stackit/iaas/models/set_image_share_payload.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class SetImageSharePayload(BaseModel): """ Share details of an Image. For requests ParentOrganization and Projects are mutually exclusive. - """ + """ # noqa: E501 parent_organization: Optional[StrictBool] = Field( default=None, diff --git a/services/iaas/src/stackit/iaas/models/snapshot.py b/services/iaas/src/stackit/iaas/models/snapshot.py index dac2888a..ee6030f8 100644 --- a/services/iaas/src/stackit/iaas/models/snapshot.py +++ b/services/iaas/src/stackit/iaas/models/snapshot.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from datetime import datetime from typing import Any, ClassVar, Dict, List, Optional, Set @@ -27,7 +27,7 @@ class Snapshot(BaseModel): """ Object that represents a snapshot. - """ + """ # noqa: E501 created_at: Optional[datetime] = Field( default=None, description="Date-time when resource was created.", alias="createdAt" diff --git a/services/iaas/src/stackit/iaas/models/snapshot_list_response.py b/services/iaas/src/stackit/iaas/models/snapshot_list_response.py index 92b62243..bc734291 100644 --- a/services/iaas/src/stackit/iaas/models/snapshot_list_response.py +++ b/services/iaas/src/stackit/iaas/models/snapshot_list_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class SnapshotListResponse(BaseModel): """ Snapshot list response. - """ + """ # noqa: E501 items: List[Snapshot] = Field(description="A list containing snapshot objects.") __properties: ClassVar[List[str]] = ["items"] diff --git a/services/iaas/src/stackit/iaas/models/update_area_address_family.py b/services/iaas/src/stackit/iaas/models/update_area_address_family.py index 0fd0a6f8..b03e91ee 100644 --- a/services/iaas/src/stackit/iaas/models/update_area_address_family.py +++ b/services/iaas/src/stackit/iaas/models/update_area_address_family.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class UpdateAreaAddressFamily(BaseModel): """ The addressFamily object for a area update request. - """ + """ # noqa: E501 ipv4: Optional[UpdateAreaIPv4] = None __properties: ClassVar[List[str]] = ["ipv4"] diff --git a/services/iaas/src/stackit/iaas/models/update_area_ipv4.py b/services/iaas/src/stackit/iaas/models/update_area_ipv4.py index 9d858c03..2b0bae72 100644 --- a/services/iaas/src/stackit/iaas/models/update_area_ipv4.py +++ b/services/iaas/src/stackit/iaas/models/update_area_ipv4.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class UpdateAreaIPv4(BaseModel): """ The update object for a IPv4 network area. - """ + """ # noqa: E501 default_nameservers: Optional[Annotated[List[Annotated[str, Field(strict=True)]], Field(max_length=3)]] = Field( default=None, alias="defaultNameservers" diff --git a/services/iaas/src/stackit/iaas/models/update_attached_volume_payload.py b/services/iaas/src/stackit/iaas/models/update_attached_volume_payload.py index 82cd63ce..f3d12c6e 100644 --- a/services/iaas/src/stackit/iaas/models/update_attached_volume_payload.py +++ b/services/iaas/src/stackit/iaas/models/update_attached_volume_payload.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, StrictBool, field_validator @@ -26,7 +26,7 @@ class UpdateAttachedVolumePayload(BaseModel): """ Object that represents a Volume attachment to a server. - """ + """ # noqa: E501 delete_on_termination: Optional[StrictBool] = Field( default=None, diff --git a/services/iaas/src/stackit/iaas/models/update_backup_payload.py b/services/iaas/src/stackit/iaas/models/update_backup_payload.py index 3d2b6672..49e4a57a 100644 --- a/services/iaas/src/stackit/iaas/models/update_backup_payload.py +++ b/services/iaas/src/stackit/iaas/models/update_backup_payload.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from datetime import datetime from typing import Any, ClassVar, Dict, List, Optional, Set @@ -27,7 +27,7 @@ class UpdateBackupPayload(BaseModel): """ Object that represents a backup. - """ + """ # noqa: E501 availability_zone: Optional[StrictStr] = Field( default=None, description="Object that represents an availability zone.", alias="availabilityZone" diff --git a/services/iaas/src/stackit/iaas/models/update_image_payload.py b/services/iaas/src/stackit/iaas/models/update_image_payload.py index 0ddb8ce4..314a4281 100644 --- a/services/iaas/src/stackit/iaas/models/update_image_payload.py +++ b/services/iaas/src/stackit/iaas/models/update_image_payload.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import ( @@ -36,7 +36,7 @@ class UpdateImagePayload(BaseModel): """ Object that represents an update request body of an Image. - """ + """ # noqa: E501 config: Optional[ImageConfig] = None disk_format: Optional[StrictStr] = Field( diff --git a/services/iaas/src/stackit/iaas/models/update_image_share_payload.py b/services/iaas/src/stackit/iaas/models/update_image_share_payload.py index 9d07bcd0..5a291430 100644 --- a/services/iaas/src/stackit/iaas/models/update_image_share_payload.py +++ b/services/iaas/src/stackit/iaas/models/update_image_share_payload.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class UpdateImageSharePayload(BaseModel): """ Share details of an Image. For requests ParentOrganization and Projects are mutually exclusive. - """ + """ # noqa: E501 parent_organization: Optional[StrictBool] = Field( default=None, diff --git a/services/iaas/src/stackit/iaas/models/update_key_pair_payload.py b/services/iaas/src/stackit/iaas/models/update_key_pair_payload.py index 47c8200c..be1f0952 100644 --- a/services/iaas/src/stackit/iaas/models/update_key_pair_payload.py +++ b/services/iaas/src/stackit/iaas/models/update_key_pair_payload.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class UpdateKeyPairPayload(BaseModel): """ Object that represents an update request body of a public key of an SSH keypair. - """ + """ # noqa: E501 labels: Optional[Dict[str, Any]] = Field( default=None, diff --git a/services/iaas/src/stackit/iaas/models/update_network_address_family.py b/services/iaas/src/stackit/iaas/models/update_network_address_family.py index 0c241666..5d7c4589 100644 --- a/services/iaas/src/stackit/iaas/models/update_network_address_family.py +++ b/services/iaas/src/stackit/iaas/models/update_network_address_family.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -28,7 +28,7 @@ class UpdateNetworkAddressFamily(BaseModel): """ The addressFamily object for a network update request. - """ + """ # noqa: E501 ipv4: Optional[UpdateNetworkIPv4Body] = None ipv6: Optional[UpdateNetworkIPv6Body] = None diff --git a/services/iaas/src/stackit/iaas/models/update_network_area_route_payload.py b/services/iaas/src/stackit/iaas/models/update_network_area_route_payload.py index 2c5f1cff..43c5fac5 100644 --- a/services/iaas/src/stackit/iaas/models/update_network_area_route_payload.py +++ b/services/iaas/src/stackit/iaas/models/update_network_area_route_payload.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class UpdateNetworkAreaRoutePayload(BaseModel): """ Object that represents the request body for a route update. - """ + """ # noqa: E501 labels: Optional[Dict[str, Any]] = Field( default=None, diff --git a/services/iaas/src/stackit/iaas/models/update_network_ipv4_body.py b/services/iaas/src/stackit/iaas/models/update_network_ipv4_body.py index 08fdc92e..d260c85b 100644 --- a/services/iaas/src/stackit/iaas/models/update_network_ipv4_body.py +++ b/services/iaas/src/stackit/iaas/models/update_network_ipv4_body.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, field_validator @@ -26,7 +26,7 @@ class UpdateNetworkIPv4Body(BaseModel): """ The config object for a IPv4 network update. - """ + """ # noqa: E501 gateway: Optional[Annotated[str, Field(strict=True)]] = Field( default=None, diff --git a/services/iaas/src/stackit/iaas/models/update_network_ipv6_body.py b/services/iaas/src/stackit/iaas/models/update_network_ipv6_body.py index 87f14df1..e50d99af 100644 --- a/services/iaas/src/stackit/iaas/models/update_network_ipv6_body.py +++ b/services/iaas/src/stackit/iaas/models/update_network_ipv6_body.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, field_validator @@ -26,7 +26,7 @@ class UpdateNetworkIPv6Body(BaseModel): """ The config object for a IPv6 network update. - """ + """ # noqa: E501 gateway: Optional[Annotated[str, Field(strict=True)]] = Field( default=None, diff --git a/services/iaas/src/stackit/iaas/models/update_nic_payload.py b/services/iaas/src/stackit/iaas/models/update_nic_payload.py index 7443d93a..08fa0e48 100644 --- a/services/iaas/src/stackit/iaas/models/update_nic_payload.py +++ b/services/iaas/src/stackit/iaas/models/update_nic_payload.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, StrictBool, field_validator @@ -28,7 +28,7 @@ class UpdateNicPayload(BaseModel): """ Object that represents a network interface update. - """ + """ # noqa: E501 allowed_addresses: Optional[List[AllowedAddressesInner]] = Field( default=None, description="A list of IPs or CIDR notations.", alias="allowedAddresses" diff --git a/services/iaas/src/stackit/iaas/models/update_public_ip_payload.py b/services/iaas/src/stackit/iaas/models/update_public_ip_payload.py index d6d9d96f..b2062a16 100644 --- a/services/iaas/src/stackit/iaas/models/update_public_ip_payload.py +++ b/services/iaas/src/stackit/iaas/models/update_public_ip_payload.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, field_validator @@ -26,7 +26,7 @@ class UpdatePublicIPPayload(BaseModel): """ Object that represents a public IP. - """ + """ # noqa: E501 id: Optional[Annotated[str, Field(min_length=36, strict=True, max_length=36)]] = Field( default=None, description="Universally Unique Identifier (UUID)." @@ -39,9 +39,7 @@ class UpdatePublicIPPayload(BaseModel): description="Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`.", ) network_interface: Optional[Annotated[str, Field(min_length=36, strict=True, max_length=36)]] = Field( - default=None, - description="Associate the public IP with a network interface or a virtual IP (ID).", - alias="networkInterface", + default=None, description="Associate the public IP with a network interface (ID).", alias="networkInterface" ) __properties: ClassVar[List[str]] = ["id", "ip", "labels", "networkInterface"] diff --git a/services/iaas/src/stackit/iaas/models/update_security_group_payload.py b/services/iaas/src/stackit/iaas/models/update_security_group_payload.py index d1ded6fc..a37be0a0 100644 --- a/services/iaas/src/stackit/iaas/models/update_security_group_payload.py +++ b/services/iaas/src/stackit/iaas/models/update_security_group_payload.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, field_validator @@ -26,7 +26,7 @@ class UpdateSecurityGroupPayload(BaseModel): """ Object that represents an update request body of a security group. - """ + """ # noqa: E501 description: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field( default=None, description="Description Object. Allows string up to 255 Characters." diff --git a/services/iaas/src/stackit/iaas/models/update_server_payload.py b/services/iaas/src/stackit/iaas/models/update_server_payload.py index 9edb6550..a850054d 100644 --- a/services/iaas/src/stackit/iaas/models/update_server_payload.py +++ b/services/iaas/src/stackit/iaas/models/update_server_payload.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, field_validator @@ -26,7 +26,7 @@ class UpdateServerPayload(BaseModel): """ Object that represents an update request body of a server. - """ + """ # noqa: E501 labels: Optional[Dict[str, Any]] = Field( default=None, diff --git a/services/iaas/src/stackit/iaas/models/update_snapshot_payload.py b/services/iaas/src/stackit/iaas/models/update_snapshot_payload.py index b448fa06..98d59d16 100644 --- a/services/iaas/src/stackit/iaas/models/update_snapshot_payload.py +++ b/services/iaas/src/stackit/iaas/models/update_snapshot_payload.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, field_validator @@ -26,7 +26,7 @@ class UpdateSnapshotPayload(BaseModel): """ Object that represents an update request body of a snapshot. - """ + """ # noqa: E501 labels: Optional[Dict[str, Any]] = Field( default=None, diff --git a/services/iaas/src/stackit/iaas/models/update_volume_payload.py b/services/iaas/src/stackit/iaas/models/update_volume_payload.py index d95fa7e7..1eeefe2a 100644 --- a/services/iaas/src/stackit/iaas/models/update_volume_payload.py +++ b/services/iaas/src/stackit/iaas/models/update_volume_payload.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, StrictBool, field_validator @@ -28,7 +28,7 @@ class UpdateVolumePayload(BaseModel): """ Object that represents an update request body of a volume. - """ + """ # noqa: E501 bootable: Optional[StrictBool] = Field(default=None, description="Indicates if a volume is bootable.") description: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field( diff --git a/services/iaas/src/stackit/iaas/models/volume.py b/services/iaas/src/stackit/iaas/models/volume.py index c9800e63..281fc637 100644 --- a/services/iaas/src/stackit/iaas/models/volume.py +++ b/services/iaas/src/stackit/iaas/models/volume.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from datetime import datetime from typing import Any, ClassVar, Dict, List, Optional, Set @@ -38,7 +38,7 @@ class Volume(BaseModel): """ Object that represents a volume and its parameters. Used for Creating and returning (get/list). - """ + """ # noqa: E501 availability_zone: StrictStr = Field( description="Object that represents an availability zone.", alias="availabilityZone" diff --git a/services/iaas/src/stackit/iaas/models/volume_attachment.py b/services/iaas/src/stackit/iaas/models/volume_attachment.py index 13ea8504..cf0cb4d2 100644 --- a/services/iaas/src/stackit/iaas/models/volume_attachment.py +++ b/services/iaas/src/stackit/iaas/models/volume_attachment.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, StrictBool, field_validator @@ -26,7 +26,7 @@ class VolumeAttachment(BaseModel): """ Object that represents a Volume attachment to a server. - """ + """ # noqa: E501 delete_on_termination: Optional[StrictBool] = Field( default=None, diff --git a/services/iaas/src/stackit/iaas/models/volume_attachment_list_response.py b/services/iaas/src/stackit/iaas/models/volume_attachment_list_response.py index 0166f4a0..b4ff23e8 100644 --- a/services/iaas/src/stackit/iaas/models/volume_attachment_list_response.py +++ b/services/iaas/src/stackit/iaas/models/volume_attachment_list_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class VolumeAttachmentListResponse(BaseModel): """ Volume attachment list response. - """ + """ # noqa: E501 items: List[VolumeAttachment] = Field(description="A list containing Volume attachments of a server.") __properties: ClassVar[List[str]] = ["items"] diff --git a/services/iaas/src/stackit/iaas/models/volume_list_response.py b/services/iaas/src/stackit/iaas/models/volume_list_response.py index dd0c5839..1f1efeb6 100644 --- a/services/iaas/src/stackit/iaas/models/volume_list_response.py +++ b/services/iaas/src/stackit/iaas/models/volume_list_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class VolumeListResponse(BaseModel): """ Volume list response. - """ + """ # noqa: E501 items: List[Volume] = Field(description="A list containing volume objects.") __properties: ClassVar[List[str]] = ["items"] diff --git a/services/iaas/src/stackit/iaas/models/volume_performance_class.py b/services/iaas/src/stackit/iaas/models/volume_performance_class.py index 62e7a6b0..8720d728 100644 --- a/services/iaas/src/stackit/iaas/models/volume_performance_class.py +++ b/services/iaas/src/stackit/iaas/models/volume_performance_class.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, StrictInt, field_validator @@ -26,7 +26,7 @@ class VolumePerformanceClass(BaseModel): """ Object that represents a Volume performance class. - """ + """ # noqa: E501 description: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field( default=None, description="Description Object. Allows string up to 255 Characters." diff --git a/services/iaas/src/stackit/iaas/models/volume_performance_class_list_response.py b/services/iaas/src/stackit/iaas/models/volume_performance_class_list_response.py index d26667eb..a446721f 100644 --- a/services/iaas/src/stackit/iaas/models/volume_performance_class_list_response.py +++ b/services/iaas/src/stackit/iaas/models/volume_performance_class_list_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class VolumePerformanceClassListResponse(BaseModel): """ Volume performance class list response. - """ + """ # noqa: E501 items: List[VolumePerformanceClass] = Field(description="A list containing Volume performance classes.") __properties: ClassVar[List[str]] = ["items"] diff --git a/services/iaas/src/stackit/iaas/models/volume_source.py b/services/iaas/src/stackit/iaas/models/volume_source.py index 39f948b4..0d2238aa 100644 --- a/services/iaas/src/stackit/iaas/models/volume_source.py +++ b/services/iaas/src/stackit/iaas/models/volume_source.py @@ -10,13 +10,13 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator @@ -26,7 +26,7 @@ class VolumeSource(BaseModel): """ The source object of a volume. - """ + """ # noqa: E501 id: Annotated[str, Field(min_length=36, strict=True, max_length=36)] = Field( description="Universally Unique Identifier (UUID)." diff --git a/services/iaas/src/stackit/iaas/rest.py b/services/iaas/src/stackit/iaas/rest.py index e500210d..4bdf86cc 100644 --- a/services/iaas/src/stackit/iaas/rest.py +++ b/services/iaas/src/stackit/iaas/rest.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 import io import json @@ -125,7 +125,7 @@ def request(self, method, url, headers=None, body=None, post_params=None, _reque data=body, headers=headers, ) - elif headers["Content-Type"] == "text/plain" and isinstance(body, bool): + elif headers["Content-Type"].startswith("text/") and isinstance(body, bool): request_body = "true" if body else "false" r = self.session.request(method, url, data=request_body, headers=headers) else: diff --git a/services/loadbalancer/CHANGELOG.md b/services/loadbalancer/CHANGELOG.md index 844369b5..91f5fd26 100644 --- a/services/loadbalancer/CHANGELOG.md +++ b/services/loadbalancer/CHANGELOG.md @@ -1,3 +1,6 @@ +## v0.5.0 +- **Feature:** Add new field `load_balancer_security_group` in `LoadBalancer`, `CreateLoadBalancerPayload` and `UpdateLoadBalancerPayload` Models + ## v0.4.1 - **Internal:** Improve deserializing and error types diff --git a/services/loadbalancer/pyproject.toml b/services/loadbalancer/pyproject.toml index e5cbdcce..24af8577 100644 --- a/services/loadbalancer/pyproject.toml +++ b/services/loadbalancer/pyproject.toml @@ -3,7 +3,7 @@ name = "stackit-loadbalancer" [tool.poetry] name = "stackit-loadbalancer" -version = "v0.4.1" +version = "v0.5.0" authors = [ "STACKIT Developer Tools ", ] diff --git a/services/loadbalancer/src/stackit/loadbalancer/models/create_load_balancer_payload.py b/services/loadbalancer/src/stackit/loadbalancer/models/create_load_balancer_payload.py index be20966c..102f75b7 100644 --- a/services/loadbalancer/src/stackit/loadbalancer/models/create_load_balancer_payload.py +++ b/services/loadbalancer/src/stackit/loadbalancer/models/create_load_balancer_payload.py @@ -58,6 +58,11 @@ class CreateLoadBalancerPayload(BaseModel): default=None, description="There is a maximum listener count of 20. Port and protocol limitations: - UDP listeners cannot have the same port. - TCP-derived listeners cannot have the same port. A TCP-derived listener is any listener that listens on a TCP port. As of now those are: TCP, TCP_PROXY, and PROTOCOL_TLS_PASSTHROUGH. The only exception is, if all listeners for the same port are PROTOCOL_TLS_PASSTHROUGH. - PROTOCOL_TLS_PASSTHROUGH listeners cannot have the same port and at least one common domain name. - PROTOCOL_TLS_PASSTHROUGH listeners can have the same domain name and different ports though (e.g. ports 443 and 8443 for domain example.com). - PROTOCOL_TLS_PASSTHROUGH listeners without a domain name serve as a default listener and you can have only one default listener. ", ) + load_balancer_security_group: Optional[SecurityGroup] = Field( + default=None, + description="Security Group permitting network traffic from the LoadBalancer to the targets. Useful when disableTargetSecurityGroupAssignment=true to manually assign target security groups to targets.", + alias="loadBalancerSecurityGroup", + ) name: Optional[Annotated[str, Field(strict=True)]] = Field( default=None, description="Load balancer name. Not changeable after creation." ) @@ -85,7 +90,7 @@ class CreateLoadBalancerPayload(BaseModel): ) target_security_group: Optional[SecurityGroup] = Field( default=None, - description="Security Group permitting network traffic from the LoadBalancer to the targets. Useful when disableTargetSecurityGroupAssignment=true to manually assign target security groups to targets.", + description="Security Group that allows the targets to receive traffic from the LoadBalancer. Useful when disableTargetSecurityGroupAssignment=true to manually assign target security groups to targets.", alias="targetSecurityGroup", ) version: Optional[StrictStr] = Field( @@ -97,6 +102,7 @@ class CreateLoadBalancerPayload(BaseModel): "errors", "externalAddress", "listeners", + "loadBalancerSecurityGroup", "name", "networks", "options", @@ -167,10 +173,12 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set( [ "errors", + "load_balancer_security_group", "private_address", "region", "status", @@ -197,6 +205,9 @@ def to_dict(self) -> Dict[str, Any]: if _item: _items.append(_item.to_dict()) _dict["listeners"] = _items + # override the default output from pydantic by calling `to_dict()` of load_balancer_security_group + if self.load_balancer_security_group: + _dict["loadBalancerSecurityGroup"] = self.load_balancer_security_group.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in networks (list) _items = [] if self.networks: @@ -242,6 +253,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if obj.get("listeners") is not None else None ), + "loadBalancerSecurityGroup": ( + SecurityGroup.from_dict(obj["loadBalancerSecurityGroup"]) + if obj.get("loadBalancerSecurityGroup") is not None + else None + ), "name": obj.get("name"), "networks": ( [Network.from_dict(_item) for _item in obj["networks"]] if obj.get("networks") is not None else None diff --git a/services/loadbalancer/src/stackit/loadbalancer/models/load_balancer.py b/services/loadbalancer/src/stackit/loadbalancer/models/load_balancer.py index 7857cf14..b206b440 100644 --- a/services/loadbalancer/src/stackit/loadbalancer/models/load_balancer.py +++ b/services/loadbalancer/src/stackit/loadbalancer/models/load_balancer.py @@ -58,6 +58,11 @@ class LoadBalancer(BaseModel): default=None, description="There is a maximum listener count of 20. Port and protocol limitations: - UDP listeners cannot have the same port. - TCP-derived listeners cannot have the same port. A TCP-derived listener is any listener that listens on a TCP port. As of now those are: TCP, TCP_PROXY, and PROTOCOL_TLS_PASSTHROUGH. The only exception is, if all listeners for the same port are PROTOCOL_TLS_PASSTHROUGH. - PROTOCOL_TLS_PASSTHROUGH listeners cannot have the same port and at least one common domain name. - PROTOCOL_TLS_PASSTHROUGH listeners can have the same domain name and different ports though (e.g. ports 443 and 8443 for domain example.com). - PROTOCOL_TLS_PASSTHROUGH listeners without a domain name serve as a default listener and you can have only one default listener. ", ) + load_balancer_security_group: Optional[SecurityGroup] = Field( + default=None, + description="Security Group permitting network traffic from the LoadBalancer to the targets. Useful when disableTargetSecurityGroupAssignment=true to manually assign target security groups to targets.", + alias="loadBalancerSecurityGroup", + ) name: Optional[Annotated[str, Field(strict=True)]] = Field( default=None, description="Load balancer name. Not changeable after creation." ) @@ -85,7 +90,7 @@ class LoadBalancer(BaseModel): ) target_security_group: Optional[SecurityGroup] = Field( default=None, - description="Security Group permitting network traffic from the LoadBalancer to the targets. Useful when disableTargetSecurityGroupAssignment=true to manually assign target security groups to targets.", + description="Security Group that allows the targets to receive traffic from the LoadBalancer. Useful when disableTargetSecurityGroupAssignment=true to manually assign target security groups to targets.", alias="targetSecurityGroup", ) version: Optional[StrictStr] = Field( @@ -97,6 +102,7 @@ class LoadBalancer(BaseModel): "errors", "externalAddress", "listeners", + "loadBalancerSecurityGroup", "name", "networks", "options", @@ -167,10 +173,12 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set( [ "errors", + "load_balancer_security_group", "private_address", "region", "status", @@ -197,6 +205,9 @@ def to_dict(self) -> Dict[str, Any]: if _item: _items.append(_item.to_dict()) _dict["listeners"] = _items + # override the default output from pydantic by calling `to_dict()` of load_balancer_security_group + if self.load_balancer_security_group: + _dict["loadBalancerSecurityGroup"] = self.load_balancer_security_group.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in networks (list) _items = [] if self.networks: @@ -242,6 +253,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if obj.get("listeners") is not None else None ), + "loadBalancerSecurityGroup": ( + SecurityGroup.from_dict(obj["loadBalancerSecurityGroup"]) + if obj.get("loadBalancerSecurityGroup") is not None + else None + ), "name": obj.get("name"), "networks": ( [Network.from_dict(_item) for _item in obj["networks"]] if obj.get("networks") is not None else None diff --git a/services/loadbalancer/src/stackit/loadbalancer/models/update_load_balancer_payload.py b/services/loadbalancer/src/stackit/loadbalancer/models/update_load_balancer_payload.py index fc6e50db..e7b95b7b 100644 --- a/services/loadbalancer/src/stackit/loadbalancer/models/update_load_balancer_payload.py +++ b/services/loadbalancer/src/stackit/loadbalancer/models/update_load_balancer_payload.py @@ -58,6 +58,11 @@ class UpdateLoadBalancerPayload(BaseModel): default=None, description="There is a maximum listener count of 20. Port and protocol limitations: - UDP listeners cannot have the same port. - TCP-derived listeners cannot have the same port. A TCP-derived listener is any listener that listens on a TCP port. As of now those are: TCP, TCP_PROXY, and PROTOCOL_TLS_PASSTHROUGH. The only exception is, if all listeners for the same port are PROTOCOL_TLS_PASSTHROUGH. - PROTOCOL_TLS_PASSTHROUGH listeners cannot have the same port and at least one common domain name. - PROTOCOL_TLS_PASSTHROUGH listeners can have the same domain name and different ports though (e.g. ports 443 and 8443 for domain example.com). - PROTOCOL_TLS_PASSTHROUGH listeners without a domain name serve as a default listener and you can have only one default listener. ", ) + load_balancer_security_group: Optional[SecurityGroup] = Field( + default=None, + description="Security Group permitting network traffic from the LoadBalancer to the targets. Useful when disableTargetSecurityGroupAssignment=true to manually assign target security groups to targets.", + alias="loadBalancerSecurityGroup", + ) name: Optional[Annotated[str, Field(strict=True)]] = Field( default=None, description="Load balancer name. Not changeable after creation." ) @@ -85,7 +90,7 @@ class UpdateLoadBalancerPayload(BaseModel): ) target_security_group: Optional[SecurityGroup] = Field( default=None, - description="Security Group permitting network traffic from the LoadBalancer to the targets. Useful when disableTargetSecurityGroupAssignment=true to manually assign target security groups to targets.", + description="Security Group that allows the targets to receive traffic from the LoadBalancer. Useful when disableTargetSecurityGroupAssignment=true to manually assign target security groups to targets.", alias="targetSecurityGroup", ) version: Optional[StrictStr] = Field( @@ -97,6 +102,7 @@ class UpdateLoadBalancerPayload(BaseModel): "errors", "externalAddress", "listeners", + "loadBalancerSecurityGroup", "name", "networks", "options", @@ -167,10 +173,12 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set( [ "errors", + "load_balancer_security_group", "private_address", "region", "status", @@ -197,6 +205,9 @@ def to_dict(self) -> Dict[str, Any]: if _item: _items.append(_item.to_dict()) _dict["listeners"] = _items + # override the default output from pydantic by calling `to_dict()` of load_balancer_security_group + if self.load_balancer_security_group: + _dict["loadBalancerSecurityGroup"] = self.load_balancer_security_group.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in networks (list) _items = [] if self.networks: @@ -242,6 +253,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if obj.get("listeners") is not None else None ), + "loadBalancerSecurityGroup": ( + SecurityGroup.from_dict(obj["loadBalancerSecurityGroup"]) + if obj.get("loadBalancerSecurityGroup") is not None + else None + ), "name": obj.get("name"), "networks": ( [Network.from_dict(_item) for _item in obj["networks"]] if obj.get("networks") is not None else None diff --git a/services/mongodbflex/CHANGELOG.md b/services/mongodbflex/CHANGELOG.md index f4d78582..da842507 100644 --- a/services/mongodbflex/CHANGELOG.md +++ b/services/mongodbflex/CHANGELOG.md @@ -1,3 +1,8 @@ +## v1.1.0 +- **Breaking Change:** Add required `region` parameter to all API methods. +- **Feature:** Add new methods `clone_instance()` and `restore_instance()`. +- **Feature:** Add new models `InstanceFlavor` and `InstanceResponse`. + ## v1.0.1 (2025-05-09) - **Feature:** Update user-agent header diff --git a/services/mongodbflex/pyproject.toml b/services/mongodbflex/pyproject.toml index 45c88a44..6d3f6a93 100644 --- a/services/mongodbflex/pyproject.toml +++ b/services/mongodbflex/pyproject.toml @@ -3,7 +3,7 @@ name = "stackit-mongodbflex" [tool.poetry] name = "stackit-mongodbflex" -version = "v1.0.1" +version = "v1.1.0" authors = [ "STACKIT Developer Tools ", ] diff --git a/services/mongodbflex/src/stackit/mongodbflex/__init__.py b/services/mongodbflex/src/stackit/mongodbflex/__init__.py index edfafab0..08f44bba 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/__init__.py +++ b/services/mongodbflex/src/stackit/mongodbflex/__init__.py @@ -7,97 +7,204 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 __version__ = "1.0.0" +# Define package exports +__all__ = [ + "DefaultApi", + "ApiResponse", + "ApiClient", + "HostConfiguration", + "OpenApiException", + "ApiTypeError", + "ApiValueError", + "ApiKeyError", + "ApiAttributeError", + "ApiException", + "ACL", + "Backup", + "BackupSchedule", + "CloneInstancePayload", + "CloneInstanceResponse", + "CreateInstancePayload", + "CreateInstanceResponse", + "CreateUserPayload", + "CreateUserResponse", + "DataPoint", + "Error", + "Flavor", + "GetBackupResponse", + "GetUserResponse", + "HandlersInstancesSlowQueriesResponse", + "HandlersInstancesSuggestedIndexesResponse", + "Host", + "HostMetric", + "Instance", + "InstanceFlavor", + "InstanceListInstance", + "InstanceResponse", + "InstanceResponseUser", + "ListBackupsResponse", + "ListFlavorsResponse", + "ListInstancesResponse", + "ListMetricsResponse", + "ListRestoreJobsResponse", + "ListStoragesResponse", + "ListUser", + "ListUsersResponse", + "ListVersionsResponse", + "MongodbatlasOperation", + "MongodbatlasStats", + "PartialUpdateInstancePayload", + "PartialUpdateUserPayload", + "RestoreInstancePayload", + "RestoreInstanceResponse", + "RestoreInstanceStatus", + "Shape", + "SlowQuery", + "Storage", + "StorageRange", + "SuggestedIndex", + "UpdateBackupSchedulePayload", + "UpdateInstancePayload", + "UpdateInstanceResponse", + "UpdateUserPayload", + "User", +] + # import apis into sdk package -from stackit.mongodbflex.api.default_api import DefaultApi -from stackit.mongodbflex.api_client import ApiClient +from stackit.mongodbflex.api.default_api import DefaultApi as DefaultApi +from stackit.mongodbflex.api_client import ApiClient as ApiClient # import ApiClient -from stackit.mongodbflex.api_response import ApiResponse -from stackit.mongodbflex.configuration import HostConfiguration -from stackit.mongodbflex.exceptions import ( - ApiAttributeError, - ApiException, - ApiKeyError, - ApiTypeError, - ApiValueError, - OpenApiException, -) +from stackit.mongodbflex.api_response import ApiResponse as ApiResponse +from stackit.mongodbflex.configuration import HostConfiguration as HostConfiguration +from stackit.mongodbflex.exceptions import ApiAttributeError as ApiAttributeError +from stackit.mongodbflex.exceptions import ApiException as ApiException +from stackit.mongodbflex.exceptions import ApiKeyError as ApiKeyError +from stackit.mongodbflex.exceptions import ApiTypeError as ApiTypeError +from stackit.mongodbflex.exceptions import ApiValueError as ApiValueError +from stackit.mongodbflex.exceptions import OpenApiException as OpenApiException # import models into sdk package -from stackit.mongodbflex.models.acl import ACL -from stackit.mongodbflex.models.backup import Backup -from stackit.mongodbflex.models.backup_schedule import BackupSchedule -from stackit.mongodbflex.models.clone_instance_payload import CloneInstancePayload -from stackit.mongodbflex.models.clone_instance_response import CloneInstanceResponse -from stackit.mongodbflex.models.create_instance_payload import CreateInstancePayload -from stackit.mongodbflex.models.create_instance_response import CreateInstanceResponse -from stackit.mongodbflex.models.create_user_payload import CreateUserPayload -from stackit.mongodbflex.models.create_user_response import CreateUserResponse -from stackit.mongodbflex.models.data_point import DataPoint -from stackit.mongodbflex.models.error import Error -from stackit.mongodbflex.models.flavor import Flavor -from stackit.mongodbflex.models.get_backup_response import GetBackupResponse -from stackit.mongodbflex.models.get_instance_response import GetInstanceResponse -from stackit.mongodbflex.models.get_user_response import GetUserResponse -from stackit.mongodbflex.models.handlers_infra_flavor import HandlersInfraFlavor -from stackit.mongodbflex.models.handlers_infra_get_flavors_response import ( - HandlersInfraGetFlavorsResponse, -) -from stackit.mongodbflex.models.handlers_instances_get_instance_response import ( - HandlersInstancesGetInstanceResponse, +from stackit.mongodbflex.models.acl import ACL as ACL +from stackit.mongodbflex.models.backup import Backup as Backup +from stackit.mongodbflex.models.backup_schedule import BackupSchedule as BackupSchedule +from stackit.mongodbflex.models.clone_instance_payload import ( + CloneInstancePayload as CloneInstancePayload, +) +from stackit.mongodbflex.models.clone_instance_response import ( + CloneInstanceResponse as CloneInstanceResponse, +) +from stackit.mongodbflex.models.create_instance_payload import ( + CreateInstancePayload as CreateInstancePayload, +) +from stackit.mongodbflex.models.create_instance_response import ( + CreateInstanceResponse as CreateInstanceResponse, +) +from stackit.mongodbflex.models.create_user_payload import ( + CreateUserPayload as CreateUserPayload, +) +from stackit.mongodbflex.models.create_user_response import ( + CreateUserResponse as CreateUserResponse, +) +from stackit.mongodbflex.models.data_point import DataPoint as DataPoint +from stackit.mongodbflex.models.error import Error as Error +from stackit.mongodbflex.models.flavor import Flavor as Flavor +from stackit.mongodbflex.models.get_backup_response import ( + GetBackupResponse as GetBackupResponse, +) +from stackit.mongodbflex.models.get_user_response import ( + GetUserResponse as GetUserResponse, ) from stackit.mongodbflex.models.handlers_instances_slow_queries_response import ( - HandlersInstancesSlowQueriesResponse, + HandlersInstancesSlowQueriesResponse as HandlersInstancesSlowQueriesResponse, ) from stackit.mongodbflex.models.handlers_instances_suggested_indexes_response import ( - HandlersInstancesSuggestedIndexesResponse, -) -from stackit.mongodbflex.models.host import Host -from stackit.mongodbflex.models.host_metric import HostMetric -from stackit.mongodbflex.models.instance import Instance -from stackit.mongodbflex.models.instance_list_instance import InstanceListInstance -from stackit.mongodbflex.models.instance_response_user import InstanceResponseUser -from stackit.mongodbflex.models.list_backups_response import ListBackupsResponse -from stackit.mongodbflex.models.list_flavors_response import ListFlavorsResponse -from stackit.mongodbflex.models.list_instances_response import ListInstancesResponse -from stackit.mongodbflex.models.list_metrics_response import ListMetricsResponse + HandlersInstancesSuggestedIndexesResponse as HandlersInstancesSuggestedIndexesResponse, +) +from stackit.mongodbflex.models.host import Host as Host +from stackit.mongodbflex.models.host_metric import HostMetric as HostMetric +from stackit.mongodbflex.models.instance import Instance as Instance +from stackit.mongodbflex.models.instance_flavor import InstanceFlavor as InstanceFlavor +from stackit.mongodbflex.models.instance_list_instance import ( + InstanceListInstance as InstanceListInstance, +) +from stackit.mongodbflex.models.instance_response import ( + InstanceResponse as InstanceResponse, +) +from stackit.mongodbflex.models.instance_response_user import ( + InstanceResponseUser as InstanceResponseUser, +) +from stackit.mongodbflex.models.list_backups_response import ( + ListBackupsResponse as ListBackupsResponse, +) +from stackit.mongodbflex.models.list_flavors_response import ( + ListFlavorsResponse as ListFlavorsResponse, +) +from stackit.mongodbflex.models.list_instances_response import ( + ListInstancesResponse as ListInstancesResponse, +) +from stackit.mongodbflex.models.list_metrics_response import ( + ListMetricsResponse as ListMetricsResponse, +) from stackit.mongodbflex.models.list_restore_jobs_response import ( - ListRestoreJobsResponse, -) -from stackit.mongodbflex.models.list_storages_response import ListStoragesResponse -from stackit.mongodbflex.models.list_user import ListUser -from stackit.mongodbflex.models.list_users_response import ListUsersResponse -from stackit.mongodbflex.models.list_versions_response import ListVersionsResponse -from stackit.mongodbflex.models.mongodbatlas_operation import MongodbatlasOperation -from stackit.mongodbflex.models.mongodbatlas_stats import MongodbatlasStats + ListRestoreJobsResponse as ListRestoreJobsResponse, +) +from stackit.mongodbflex.models.list_storages_response import ( + ListStoragesResponse as ListStoragesResponse, +) +from stackit.mongodbflex.models.list_user import ListUser as ListUser +from stackit.mongodbflex.models.list_users_response import ( + ListUsersResponse as ListUsersResponse, +) +from stackit.mongodbflex.models.list_versions_response import ( + ListVersionsResponse as ListVersionsResponse, +) +from stackit.mongodbflex.models.mongodbatlas_operation import ( + MongodbatlasOperation as MongodbatlasOperation, +) +from stackit.mongodbflex.models.mongodbatlas_stats import ( + MongodbatlasStats as MongodbatlasStats, +) from stackit.mongodbflex.models.partial_update_instance_payload import ( - PartialUpdateInstancePayload, + PartialUpdateInstancePayload as PartialUpdateInstancePayload, ) from stackit.mongodbflex.models.partial_update_user_payload import ( - PartialUpdateUserPayload, -) -from stackit.mongodbflex.models.restore_instance_payload import RestoreInstancePayload -from stackit.mongodbflex.models.restore_instance_response import RestoreInstanceResponse -from stackit.mongodbflex.models.restore_instance_status import RestoreInstanceStatus -from stackit.mongodbflex.models.shape import Shape -from stackit.mongodbflex.models.slow_query import SlowQuery -from stackit.mongodbflex.models.storage import Storage -from stackit.mongodbflex.models.storage_range import StorageRange -from stackit.mongodbflex.models.suggested_index import SuggestedIndex + PartialUpdateUserPayload as PartialUpdateUserPayload, +) +from stackit.mongodbflex.models.restore_instance_payload import ( + RestoreInstancePayload as RestoreInstancePayload, +) +from stackit.mongodbflex.models.restore_instance_response import ( + RestoreInstanceResponse as RestoreInstanceResponse, +) +from stackit.mongodbflex.models.restore_instance_status import ( + RestoreInstanceStatus as RestoreInstanceStatus, +) +from stackit.mongodbflex.models.shape import Shape as Shape +from stackit.mongodbflex.models.slow_query import SlowQuery as SlowQuery +from stackit.mongodbflex.models.storage import Storage as Storage +from stackit.mongodbflex.models.storage_range import StorageRange as StorageRange +from stackit.mongodbflex.models.suggested_index import SuggestedIndex as SuggestedIndex from stackit.mongodbflex.models.update_backup_schedule_payload import ( - UpdateBackupSchedulePayload, + UpdateBackupSchedulePayload as UpdateBackupSchedulePayload, +) +from stackit.mongodbflex.models.update_instance_payload import ( + UpdateInstancePayload as UpdateInstancePayload, +) +from stackit.mongodbflex.models.update_instance_response import ( + UpdateInstanceResponse as UpdateInstanceResponse, +) +from stackit.mongodbflex.models.update_user_payload import ( + UpdateUserPayload as UpdateUserPayload, ) -from stackit.mongodbflex.models.update_instance_payload import UpdateInstancePayload -from stackit.mongodbflex.models.update_instance_response import UpdateInstanceResponse -from stackit.mongodbflex.models.update_user_payload import UpdateUserPayload -from stackit.mongodbflex.models.user import User +from stackit.mongodbflex.models.user import User as User diff --git a/services/mongodbflex/src/stackit/mongodbflex/api/default_api.py b/services/mongodbflex/src/stackit/mongodbflex/api/default_api.py index a7d96b49..e6a0d8e4 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/api/default_api.py +++ b/services/mongodbflex/src/stackit/mongodbflex/api/default_api.py @@ -5,16 +5,22 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from typing import Any, Dict, List, Optional, Tuple, Union -from pydantic import Field, StrictFloat, StrictInt, StrictStr, validate_call +from pydantic import ( + Field, + StrictFloat, + StrictInt, + StrictStr, + validate_call, +) from stackit.core.configuration import Configuration from typing_extensions import Annotated @@ -28,7 +34,6 @@ from stackit.mongodbflex.models.create_user_payload import CreateUserPayload from stackit.mongodbflex.models.create_user_response import CreateUserResponse from stackit.mongodbflex.models.get_backup_response import GetBackupResponse -from stackit.mongodbflex.models.get_instance_response import GetInstanceResponse from stackit.mongodbflex.models.get_user_response import GetUserResponse from stackit.mongodbflex.models.handlers_instances_slow_queries_response import ( HandlersInstancesSlowQueriesResponse, @@ -36,6 +41,7 @@ from stackit.mongodbflex.models.handlers_instances_suggested_indexes_response import ( HandlersInstancesSuggestedIndexesResponse, ) +from stackit.mongodbflex.models.instance_response import InstanceResponse from stackit.mongodbflex.models.list_backups_response import ListBackupsResponse from stackit.mongodbflex.models.list_flavors_response import ListFlavorsResponse from stackit.mongodbflex.models.list_instances_response import ListInstancesResponse @@ -82,6 +88,7 @@ def clone_instance( self, project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], clone_instance_payload: Annotated[CloneInstancePayload, Field(description="payload")], _request_timeout: Union[ None, @@ -101,6 +108,8 @@ def clone_instance( :type project_id: str :param instance_id: instance id (required) :type instance_id: str + :param region: The region which should be addressed (required) + :type region: str :param clone_instance_payload: payload (required) :type clone_instance_payload: CloneInstancePayload :param _request_timeout: timeout setting for this request. If one @@ -123,11 +132,12 @@ def clone_instance( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._clone_instance_serialize( project_id=project_id, instance_id=instance_id, + region=region, clone_instance_payload=clone_instance_payload, _request_auth=_request_auth, _content_type=_content_type, @@ -138,6 +148,7 @@ def clone_instance( _response_types_map: Dict[str, Optional[str]] = { "202": "CloneInstanceResponse", "400": "Error", + "401": "Error", "404": "Error", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -152,6 +163,7 @@ def clone_instance_with_http_info( self, project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], clone_instance_payload: Annotated[CloneInstancePayload, Field(description="payload")], _request_timeout: Union[ None, @@ -171,6 +183,8 @@ def clone_instance_with_http_info( :type project_id: str :param instance_id: instance id (required) :type instance_id: str + :param region: The region which should be addressed (required) + :type region: str :param clone_instance_payload: payload (required) :type clone_instance_payload: CloneInstancePayload :param _request_timeout: timeout setting for this request. If one @@ -193,11 +207,12 @@ def clone_instance_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._clone_instance_serialize( project_id=project_id, instance_id=instance_id, + region=region, clone_instance_payload=clone_instance_payload, _request_auth=_request_auth, _content_type=_content_type, @@ -208,6 +223,7 @@ def clone_instance_with_http_info( _response_types_map: Dict[str, Optional[str]] = { "202": "CloneInstanceResponse", "400": "Error", + "401": "Error", "404": "Error", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -222,6 +238,7 @@ def clone_instance_without_preload_content( self, project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], clone_instance_payload: Annotated[CloneInstancePayload, Field(description="payload")], _request_timeout: Union[ None, @@ -241,6 +258,8 @@ def clone_instance_without_preload_content( :type project_id: str :param instance_id: instance id (required) :type instance_id: str + :param region: The region which should be addressed (required) + :type region: str :param clone_instance_payload: payload (required) :type clone_instance_payload: CloneInstancePayload :param _request_timeout: timeout setting for this request. If one @@ -263,11 +282,12 @@ def clone_instance_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._clone_instance_serialize( project_id=project_id, instance_id=instance_id, + region=region, clone_instance_payload=clone_instance_payload, _request_auth=_request_auth, _content_type=_content_type, @@ -278,6 +298,7 @@ def clone_instance_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { "202": "CloneInstanceResponse", "400": "Error", + "401": "Error", "404": "Error", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -287,6 +308,7 @@ def _clone_instance_serialize( self, project_id, instance_id, + region, clone_instance_payload, _request_auth, _content_type, @@ -302,7 +324,7 @@ def _clone_instance_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -310,6 +332,8 @@ def _clone_instance_serialize( _path_params["projectId"] = project_id if instance_id is not None: _path_params["instanceId"] = instance_id + if region is not None: + _path_params["region"] = region # process the query parameters # process the header parameters # process the form parameters @@ -334,7 +358,7 @@ def _clone_instance_serialize( return self.api_client.param_serialize( method="POST", - resource_path="/v1/projects/{projectId}/instances/{instanceId}/clone", + resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/clone", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -351,6 +375,7 @@ def _clone_instance_serialize( def create_instance( self, project_id: Annotated[StrictStr, Field(description="project id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], create_instance_payload: Annotated[CreateInstancePayload, Field(description="payload")], _request_timeout: Union[ None, @@ -368,6 +393,8 @@ def create_instance( :param project_id: project id (required) :type project_id: str + :param region: The region which should be addressed (required) + :type region: str :param create_instance_payload: payload (required) :type create_instance_payload: CreateInstancePayload :param _request_timeout: timeout setting for this request. If one @@ -390,10 +417,11 @@ def create_instance( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_instance_serialize( project_id=project_id, + region=region, create_instance_payload=create_instance_payload, _request_auth=_request_auth, _content_type=_content_type, @@ -404,6 +432,7 @@ def create_instance( _response_types_map: Dict[str, Optional[str]] = { "202": "CreateInstanceResponse", "400": "Error", + "401": "Error", "404": "Error", "500": "Error", } @@ -418,6 +447,7 @@ def create_instance( def create_instance_with_http_info( self, project_id: Annotated[StrictStr, Field(description="project id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], create_instance_payload: Annotated[CreateInstancePayload, Field(description="payload")], _request_timeout: Union[ None, @@ -435,6 +465,8 @@ def create_instance_with_http_info( :param project_id: project id (required) :type project_id: str + :param region: The region which should be addressed (required) + :type region: str :param create_instance_payload: payload (required) :type create_instance_payload: CreateInstancePayload :param _request_timeout: timeout setting for this request. If one @@ -457,10 +489,11 @@ def create_instance_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_instance_serialize( project_id=project_id, + region=region, create_instance_payload=create_instance_payload, _request_auth=_request_auth, _content_type=_content_type, @@ -471,6 +504,7 @@ def create_instance_with_http_info( _response_types_map: Dict[str, Optional[str]] = { "202": "CreateInstanceResponse", "400": "Error", + "401": "Error", "404": "Error", "500": "Error", } @@ -485,6 +519,7 @@ def create_instance_with_http_info( def create_instance_without_preload_content( self, project_id: Annotated[StrictStr, Field(description="project id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], create_instance_payload: Annotated[CreateInstancePayload, Field(description="payload")], _request_timeout: Union[ None, @@ -502,6 +537,8 @@ def create_instance_without_preload_content( :param project_id: project id (required) :type project_id: str + :param region: The region which should be addressed (required) + :type region: str :param create_instance_payload: payload (required) :type create_instance_payload: CreateInstancePayload :param _request_timeout: timeout setting for this request. If one @@ -524,10 +561,11 @@ def create_instance_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_instance_serialize( project_id=project_id, + region=region, create_instance_payload=create_instance_payload, _request_auth=_request_auth, _content_type=_content_type, @@ -538,6 +576,7 @@ def create_instance_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { "202": "CreateInstanceResponse", "400": "Error", + "401": "Error", "404": "Error", "500": "Error", } @@ -547,6 +586,7 @@ def create_instance_without_preload_content( def _create_instance_serialize( self, project_id, + region, create_instance_payload, _request_auth, _content_type, @@ -562,12 +602,14 @@ def _create_instance_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters if project_id is not None: _path_params["projectId"] = project_id + if region is not None: + _path_params["region"] = region # process the query parameters # process the header parameters # process the form parameters @@ -592,7 +634,7 @@ def _create_instance_serialize( return self.api_client.param_serialize( method="POST", - resource_path="/v1/projects/{projectId}/instances", + resource_path="/v2/projects/{projectId}/regions/{region}/instances", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -610,6 +652,7 @@ def create_user( self, project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], create_user_payload: Annotated[CreateUserPayload, Field(description="payload")], _request_timeout: Union[ None, @@ -629,6 +672,8 @@ def create_user( :type project_id: str :param instance_id: instance id (required) :type instance_id: str + :param region: The region which should be addressed (required) + :type region: str :param create_user_payload: payload (required) :type create_user_payload: CreateUserPayload :param _request_timeout: timeout setting for this request. If one @@ -651,11 +696,12 @@ def create_user( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_user_serialize( project_id=project_id, instance_id=instance_id, + region=region, create_user_payload=create_user_payload, _request_auth=_request_auth, _content_type=_content_type, @@ -666,6 +712,7 @@ def create_user( _response_types_map: Dict[str, Optional[str]] = { "202": "CreateUserResponse", "400": "Error", + "401": "Error", "404": "Error", "409": "Error", "500": "Error", @@ -682,6 +729,7 @@ def create_user_with_http_info( self, project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], create_user_payload: Annotated[CreateUserPayload, Field(description="payload")], _request_timeout: Union[ None, @@ -701,6 +749,8 @@ def create_user_with_http_info( :type project_id: str :param instance_id: instance id (required) :type instance_id: str + :param region: The region which should be addressed (required) + :type region: str :param create_user_payload: payload (required) :type create_user_payload: CreateUserPayload :param _request_timeout: timeout setting for this request. If one @@ -723,11 +773,12 @@ def create_user_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_user_serialize( project_id=project_id, instance_id=instance_id, + region=region, create_user_payload=create_user_payload, _request_auth=_request_auth, _content_type=_content_type, @@ -738,6 +789,7 @@ def create_user_with_http_info( _response_types_map: Dict[str, Optional[str]] = { "202": "CreateUserResponse", "400": "Error", + "401": "Error", "404": "Error", "409": "Error", "500": "Error", @@ -754,6 +806,7 @@ def create_user_without_preload_content( self, project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], create_user_payload: Annotated[CreateUserPayload, Field(description="payload")], _request_timeout: Union[ None, @@ -773,6 +826,8 @@ def create_user_without_preload_content( :type project_id: str :param instance_id: instance id (required) :type instance_id: str + :param region: The region which should be addressed (required) + :type region: str :param create_user_payload: payload (required) :type create_user_payload: CreateUserPayload :param _request_timeout: timeout setting for this request. If one @@ -795,11 +850,12 @@ def create_user_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_user_serialize( project_id=project_id, instance_id=instance_id, + region=region, create_user_payload=create_user_payload, _request_auth=_request_auth, _content_type=_content_type, @@ -810,6 +866,7 @@ def create_user_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { "202": "CreateUserResponse", "400": "Error", + "401": "Error", "404": "Error", "409": "Error", "500": "Error", @@ -821,6 +878,7 @@ def _create_user_serialize( self, project_id, instance_id, + region, create_user_payload, _request_auth, _content_type, @@ -836,7 +894,7 @@ def _create_user_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -844,6 +902,8 @@ def _create_user_serialize( _path_params["projectId"] = project_id if instance_id is not None: _path_params["instanceId"] = instance_id + if region is not None: + _path_params["region"] = region # process the query parameters # process the header parameters # process the form parameters @@ -868,7 +928,7 @@ def _create_user_serialize( return self.api_client.param_serialize( method="POST", - resource_path="/v1/projects/{projectId}/instances/{instanceId}/users", + resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/users", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -886,6 +946,7 @@ def delete_instance( self, project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -904,6 +965,8 @@ def delete_instance( :type project_id: str :param instance_id: instance id (required) :type instance_id: str + :param region: The region which should be addressed (required) + :type region: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -924,11 +987,12 @@ def delete_instance( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_instance_serialize( project_id=project_id, instance_id=instance_id, + region=region, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -938,6 +1002,7 @@ def delete_instance( _response_types_map: Dict[str, Optional[str]] = { "200": None, "400": "Error", + "401": "Error", "404": "Error", "500": "Error", } @@ -953,6 +1018,7 @@ def delete_instance_with_http_info( self, project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -971,6 +1037,8 @@ def delete_instance_with_http_info( :type project_id: str :param instance_id: instance id (required) :type instance_id: str + :param region: The region which should be addressed (required) + :type region: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -991,11 +1059,12 @@ def delete_instance_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_instance_serialize( project_id=project_id, instance_id=instance_id, + region=region, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1005,6 +1074,7 @@ def delete_instance_with_http_info( _response_types_map: Dict[str, Optional[str]] = { "200": None, "400": "Error", + "401": "Error", "404": "Error", "500": "Error", } @@ -1020,6 +1090,7 @@ def delete_instance_without_preload_content( self, project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1038,6 +1109,8 @@ def delete_instance_without_preload_content( :type project_id: str :param instance_id: instance id (required) :type instance_id: str + :param region: The region which should be addressed (required) + :type region: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1058,11 +1131,12 @@ def delete_instance_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_instance_serialize( project_id=project_id, instance_id=instance_id, + region=region, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1072,6 +1146,7 @@ def delete_instance_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { "200": None, "400": "Error", + "401": "Error", "404": "Error", "500": "Error", } @@ -1082,6 +1157,7 @@ def _delete_instance_serialize( self, project_id, instance_id, + region, _request_auth, _content_type, _headers, @@ -1096,7 +1172,7 @@ def _delete_instance_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1104,6 +1180,8 @@ def _delete_instance_serialize( _path_params["projectId"] = project_id if instance_id is not None: _path_params["instanceId"] = instance_id + if region is not None: + _path_params["region"] = region # process the query parameters # process the header parameters # process the form parameters @@ -1111,14 +1189,14 @@ def _delete_instance_serialize( # set the HTTP header `Accept` if "Accept" not in _header_params: - _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) + _header_params["Accept"] = self.api_client.select_header_accept(["*/*", "application/json"]) # authentication setting _auth_settings: List[str] = [] return self.api_client.param_serialize( method="DELETE", - resource_path="/v1/projects/{projectId}/instances/{instanceId}", + resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1137,6 +1215,7 @@ def delete_user( project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], user_id: Annotated[StrictStr, Field(description="user id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1157,6 +1236,8 @@ def delete_user( :type instance_id: str :param user_id: user id (required) :type user_id: str + :param region: The region which should be addressed (required) + :type region: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1177,12 +1258,13 @@ def delete_user( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_user_serialize( project_id=project_id, instance_id=instance_id, user_id=user_id, + region=region, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1191,6 +1273,8 @@ def delete_user( _response_types_map: Dict[str, Optional[str]] = { "200": None, + "400": "Error", + "401": "Error", "404": "Error", "500": "Error", } @@ -1207,6 +1291,7 @@ def delete_user_with_http_info( project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], user_id: Annotated[StrictStr, Field(description="user id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1227,6 +1312,8 @@ def delete_user_with_http_info( :type instance_id: str :param user_id: user id (required) :type user_id: str + :param region: The region which should be addressed (required) + :type region: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1247,12 +1334,13 @@ def delete_user_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_user_serialize( project_id=project_id, instance_id=instance_id, user_id=user_id, + region=region, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1261,6 +1349,8 @@ def delete_user_with_http_info( _response_types_map: Dict[str, Optional[str]] = { "200": None, + "400": "Error", + "401": "Error", "404": "Error", "500": "Error", } @@ -1277,6 +1367,7 @@ def delete_user_without_preload_content( project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], user_id: Annotated[StrictStr, Field(description="user id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1297,6 +1388,8 @@ def delete_user_without_preload_content( :type instance_id: str :param user_id: user id (required) :type user_id: str + :param region: The region which should be addressed (required) + :type region: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1317,12 +1410,13 @@ def delete_user_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_user_serialize( project_id=project_id, instance_id=instance_id, user_id=user_id, + region=region, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1331,6 +1425,8 @@ def delete_user_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { "200": None, + "400": "Error", + "401": "Error", "404": "Error", "500": "Error", } @@ -1342,6 +1438,7 @@ def _delete_user_serialize( project_id, instance_id, user_id, + region, _request_auth, _content_type, _headers, @@ -1356,7 +1453,7 @@ def _delete_user_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1366,6 +1463,8 @@ def _delete_user_serialize( _path_params["instanceId"] = instance_id if user_id is not None: _path_params["userId"] = user_id + if region is not None: + _path_params["region"] = region # process the query parameters # process the header parameters # process the form parameters @@ -1380,7 +1479,7 @@ def _delete_user_serialize( return self.api_client.param_serialize( method="DELETE", - resource_path="/v1/projects/{projectId}/instances/{instanceId}/users/{userId}", + resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1399,6 +1498,7 @@ def get_backup( project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], backup_id: Annotated[StrictStr, Field(description="backup id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1419,6 +1519,8 @@ def get_backup( :type instance_id: str :param backup_id: backup id (required) :type backup_id: str + :param region: The region which should be addressed (required) + :type region: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1439,12 +1541,13 @@ def get_backup( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_backup_serialize( project_id=project_id, instance_id=instance_id, backup_id=backup_id, + region=region, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1454,6 +1557,7 @@ def get_backup( _response_types_map: Dict[str, Optional[str]] = { "200": "GetBackupResponse", "400": "Error", + "401": "Error", "404": "Error", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -1469,6 +1573,7 @@ def get_backup_with_http_info( project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], backup_id: Annotated[StrictStr, Field(description="backup id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1489,6 +1594,8 @@ def get_backup_with_http_info( :type instance_id: str :param backup_id: backup id (required) :type backup_id: str + :param region: The region which should be addressed (required) + :type region: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1509,12 +1616,13 @@ def get_backup_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_backup_serialize( project_id=project_id, instance_id=instance_id, backup_id=backup_id, + region=region, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1524,6 +1632,7 @@ def get_backup_with_http_info( _response_types_map: Dict[str, Optional[str]] = { "200": "GetBackupResponse", "400": "Error", + "401": "Error", "404": "Error", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -1539,6 +1648,7 @@ def get_backup_without_preload_content( project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], backup_id: Annotated[StrictStr, Field(description="backup id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1559,6 +1669,8 @@ def get_backup_without_preload_content( :type instance_id: str :param backup_id: backup id (required) :type backup_id: str + :param region: The region which should be addressed (required) + :type region: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1579,12 +1691,13 @@ def get_backup_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_backup_serialize( project_id=project_id, instance_id=instance_id, backup_id=backup_id, + region=region, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1594,6 +1707,7 @@ def get_backup_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { "200": "GetBackupResponse", "400": "Error", + "401": "Error", "404": "Error", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -1604,6 +1718,7 @@ def _get_backup_serialize( project_id, instance_id, backup_id, + region, _request_auth, _content_type, _headers, @@ -1618,7 +1733,7 @@ def _get_backup_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1628,6 +1743,8 @@ def _get_backup_serialize( _path_params["instanceId"] = instance_id if backup_id is not None: _path_params["backupId"] = backup_id + if region is not None: + _path_params["region"] = region # process the query parameters # process the header parameters # process the form parameters @@ -1642,7 +1759,7 @@ def _get_backup_serialize( return self.api_client.param_serialize( method="GET", - resource_path="/v1/projects/{projectId}/instances/{instanceId}/backups/{backupId}", + resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/backups/{backupId}", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1660,6 +1777,7 @@ def get_instance( self, project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1669,7 +1787,7 @@ def get_instance( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetInstanceResponse: + ) -> InstanceResponse: """Get instance gets information of an instance @@ -1678,6 +1796,8 @@ def get_instance( :type project_id: str :param instance_id: instance id (required) :type instance_id: str + :param region: The region which should be addressed (required) + :type region: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1698,11 +1818,12 @@ def get_instance( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_instance_serialize( project_id=project_id, instance_id=instance_id, + region=region, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1710,8 +1831,9 @@ def get_instance( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetInstanceResponse", + "200": "InstanceResponse", "400": "Error", + "401": "Error", "500": "Error", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -1726,6 +1848,7 @@ def get_instance_with_http_info( self, project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1735,7 +1858,7 @@ def get_instance_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetInstanceResponse]: + ) -> ApiResponse[InstanceResponse]: """Get instance gets information of an instance @@ -1744,6 +1867,8 @@ def get_instance_with_http_info( :type project_id: str :param instance_id: instance id (required) :type instance_id: str + :param region: The region which should be addressed (required) + :type region: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1764,11 +1889,12 @@ def get_instance_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_instance_serialize( project_id=project_id, instance_id=instance_id, + region=region, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1776,8 +1902,9 @@ def get_instance_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetInstanceResponse", + "200": "InstanceResponse", "400": "Error", + "401": "Error", "500": "Error", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -1792,6 +1919,7 @@ def get_instance_without_preload_content( self, project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1810,6 +1938,8 @@ def get_instance_without_preload_content( :type project_id: str :param instance_id: instance id (required) :type instance_id: str + :param region: The region which should be addressed (required) + :type region: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1830,11 +1960,12 @@ def get_instance_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_instance_serialize( project_id=project_id, instance_id=instance_id, + region=region, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1842,8 +1973,9 @@ def get_instance_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetInstanceResponse", + "200": "InstanceResponse", "400": "Error", + "401": "Error", "500": "Error", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -1853,6 +1985,7 @@ def _get_instance_serialize( self, project_id, instance_id, + region, _request_auth, _content_type, _headers, @@ -1867,7 +2000,7 @@ def _get_instance_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1875,6 +2008,8 @@ def _get_instance_serialize( _path_params["projectId"] = project_id if instance_id is not None: _path_params["instanceId"] = instance_id + if region is not None: + _path_params["region"] = region # process the query parameters # process the header parameters # process the form parameters @@ -1889,7 +2024,7 @@ def _get_instance_serialize( return self.api_client.param_serialize( method="GET", - resource_path="/v1/projects/{projectId}/instances/{instanceId}", + resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1908,6 +2043,7 @@ def get_user( project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], user_id: Annotated[StrictStr, Field(description="user id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1928,6 +2064,8 @@ def get_user( :type instance_id: str :param user_id: user id (required) :type user_id: str + :param region: The region which should be addressed (required) + :type region: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1948,12 +2086,13 @@ def get_user( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_user_serialize( project_id=project_id, instance_id=instance_id, user_id=user_id, + region=region, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1962,6 +2101,8 @@ def get_user( _response_types_map: Dict[str, Optional[str]] = { "200": "GetUserResponse", + "400": "Error", + "401": "Error", "404": "Error", "500": "Error", } @@ -1978,6 +2119,7 @@ def get_user_with_http_info( project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], user_id: Annotated[StrictStr, Field(description="user id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1998,6 +2140,8 @@ def get_user_with_http_info( :type instance_id: str :param user_id: user id (required) :type user_id: str + :param region: The region which should be addressed (required) + :type region: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2018,12 +2162,13 @@ def get_user_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_user_serialize( project_id=project_id, instance_id=instance_id, user_id=user_id, + region=region, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2032,6 +2177,8 @@ def get_user_with_http_info( _response_types_map: Dict[str, Optional[str]] = { "200": "GetUserResponse", + "400": "Error", + "401": "Error", "404": "Error", "500": "Error", } @@ -2048,6 +2195,7 @@ def get_user_without_preload_content( project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], user_id: Annotated[StrictStr, Field(description="user id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2068,6 +2216,8 @@ def get_user_without_preload_content( :type instance_id: str :param user_id: user id (required) :type user_id: str + :param region: The region which should be addressed (required) + :type region: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2088,12 +2238,13 @@ def get_user_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_user_serialize( project_id=project_id, instance_id=instance_id, user_id=user_id, + region=region, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2102,6 +2253,8 @@ def get_user_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { "200": "GetUserResponse", + "400": "Error", + "401": "Error", "404": "Error", "500": "Error", } @@ -2113,6 +2266,7 @@ def _get_user_serialize( project_id, instance_id, user_id, + region, _request_auth, _content_type, _headers, @@ -2127,7 +2281,7 @@ def _get_user_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -2137,6 +2291,8 @@ def _get_user_serialize( _path_params["instanceId"] = instance_id if user_id is not None: _path_params["userId"] = user_id + if region is not None: + _path_params["region"] = region # process the query parameters # process the header parameters # process the form parameters @@ -2151,7 +2307,7 @@ def _get_user_serialize( return self.api_client.param_serialize( method="GET", - resource_path="/v1/projects/{projectId}/instances/{instanceId}/users/{userId}", + resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2169,6 +2325,7 @@ def list_advisor_slow_queries( self, project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2187,6 +2344,8 @@ def list_advisor_slow_queries( :type project_id: str :param instance_id: instance id (required) :type instance_id: str + :param region: The region which should be addressed (required) + :type region: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2207,11 +2366,12 @@ def list_advisor_slow_queries( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_advisor_slow_queries_serialize( project_id=project_id, instance_id=instance_id, + region=region, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2221,6 +2381,7 @@ def list_advisor_slow_queries( _response_types_map: Dict[str, Optional[str]] = { "200": "HandlersInstancesSlowQueriesResponse", "400": "Error", + "401": "Error", "404": "Error", "500": "Error", } @@ -2236,6 +2397,7 @@ def list_advisor_slow_queries_with_http_info( self, project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2254,6 +2416,8 @@ def list_advisor_slow_queries_with_http_info( :type project_id: str :param instance_id: instance id (required) :type instance_id: str + :param region: The region which should be addressed (required) + :type region: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2274,11 +2438,12 @@ def list_advisor_slow_queries_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_advisor_slow_queries_serialize( project_id=project_id, instance_id=instance_id, + region=region, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2288,6 +2453,7 @@ def list_advisor_slow_queries_with_http_info( _response_types_map: Dict[str, Optional[str]] = { "200": "HandlersInstancesSlowQueriesResponse", "400": "Error", + "401": "Error", "404": "Error", "500": "Error", } @@ -2303,6 +2469,7 @@ def list_advisor_slow_queries_without_preload_content( self, project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2321,6 +2488,8 @@ def list_advisor_slow_queries_without_preload_content( :type project_id: str :param instance_id: instance id (required) :type instance_id: str + :param region: The region which should be addressed (required) + :type region: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2341,11 +2510,12 @@ def list_advisor_slow_queries_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_advisor_slow_queries_serialize( project_id=project_id, instance_id=instance_id, + region=region, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2355,6 +2525,7 @@ def list_advisor_slow_queries_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { "200": "HandlersInstancesSlowQueriesResponse", "400": "Error", + "401": "Error", "404": "Error", "500": "Error", } @@ -2365,6 +2536,7 @@ def _list_advisor_slow_queries_serialize( self, project_id, instance_id, + region, _request_auth, _content_type, _headers, @@ -2379,7 +2551,7 @@ def _list_advisor_slow_queries_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -2387,6 +2559,8 @@ def _list_advisor_slow_queries_serialize( _path_params["projectId"] = project_id if instance_id is not None: _path_params["instanceId"] = instance_id + if region is not None: + _path_params["region"] = region # process the query parameters # process the header parameters # process the form parameters @@ -2401,7 +2575,7 @@ def _list_advisor_slow_queries_serialize( return self.api_client.param_serialize( method="GET", - resource_path="/v1/projects/{projectId}/instances/{instanceId}/advisor/slow-queries", + resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/advisor/slow-queries", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2419,6 +2593,7 @@ def list_backups( self, project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2437,6 +2612,8 @@ def list_backups( :type project_id: str :param instance_id: instance id (required) :type instance_id: str + :param region: The region which should be addressed (required) + :type region: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2457,11 +2634,12 @@ def list_backups( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_backups_serialize( project_id=project_id, instance_id=instance_id, + region=region, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2471,6 +2649,7 @@ def list_backups( _response_types_map: Dict[str, Optional[str]] = { "200": "ListBackupsResponse", "400": "Error", + "401": "Error", "404": "Error", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -2485,6 +2664,7 @@ def list_backups_with_http_info( self, project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2503,6 +2683,8 @@ def list_backups_with_http_info( :type project_id: str :param instance_id: instance id (required) :type instance_id: str + :param region: The region which should be addressed (required) + :type region: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2523,11 +2705,12 @@ def list_backups_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_backups_serialize( project_id=project_id, instance_id=instance_id, + region=region, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2537,6 +2720,7 @@ def list_backups_with_http_info( _response_types_map: Dict[str, Optional[str]] = { "200": "ListBackupsResponse", "400": "Error", + "401": "Error", "404": "Error", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -2551,6 +2735,7 @@ def list_backups_without_preload_content( self, project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2569,6 +2754,8 @@ def list_backups_without_preload_content( :type project_id: str :param instance_id: instance id (required) :type instance_id: str + :param region: The region which should be addressed (required) + :type region: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2589,11 +2776,12 @@ def list_backups_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_backups_serialize( project_id=project_id, instance_id=instance_id, + region=region, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2603,6 +2791,7 @@ def list_backups_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { "200": "ListBackupsResponse", "400": "Error", + "401": "Error", "404": "Error", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -2612,6 +2801,7 @@ def _list_backups_serialize( self, project_id, instance_id, + region, _request_auth, _content_type, _headers, @@ -2626,7 +2816,7 @@ def _list_backups_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -2634,6 +2824,8 @@ def _list_backups_serialize( _path_params["projectId"] = project_id if instance_id is not None: _path_params["instanceId"] = instance_id + if region is not None: + _path_params["region"] = region # process the query parameters # process the header parameters # process the form parameters @@ -2648,7 +2840,7 @@ def _list_backups_serialize( return self.api_client.param_serialize( method="GET", - resource_path="/v1/projects/{projectId}/instances/{instanceId}/backups", + resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/backups", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2665,6 +2857,7 @@ def _list_backups_serialize( def list_flavors( self, project_id: Annotated[StrictStr, Field(description="project id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2681,6 +2874,8 @@ def list_flavors( :param project_id: project id (required) :type project_id: str + :param region: The region which should be addressed (required) + :type region: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2701,10 +2896,11 @@ def list_flavors( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_flavors_serialize( project_id=project_id, + region=region, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2714,6 +2910,7 @@ def list_flavors( _response_types_map: Dict[str, Optional[str]] = { "200": "ListFlavorsResponse", "400": "Error", + "401": "Error", "500": "Error", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -2727,6 +2924,7 @@ def list_flavors( def list_flavors_with_http_info( self, project_id: Annotated[StrictStr, Field(description="project id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2743,6 +2941,8 @@ def list_flavors_with_http_info( :param project_id: project id (required) :type project_id: str + :param region: The region which should be addressed (required) + :type region: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2763,10 +2963,11 @@ def list_flavors_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_flavors_serialize( project_id=project_id, + region=region, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2776,6 +2977,7 @@ def list_flavors_with_http_info( _response_types_map: Dict[str, Optional[str]] = { "200": "ListFlavorsResponse", "400": "Error", + "401": "Error", "500": "Error", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -2789,6 +2991,7 @@ def list_flavors_with_http_info( def list_flavors_without_preload_content( self, project_id: Annotated[StrictStr, Field(description="project id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2805,6 +3008,8 @@ def list_flavors_without_preload_content( :param project_id: project id (required) :type project_id: str + :param region: The region which should be addressed (required) + :type region: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2825,10 +3030,11 @@ def list_flavors_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_flavors_serialize( project_id=project_id, + region=region, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2838,6 +3044,7 @@ def list_flavors_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { "200": "ListFlavorsResponse", "400": "Error", + "401": "Error", "500": "Error", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -2846,6 +3053,7 @@ def list_flavors_without_preload_content( def _list_flavors_serialize( self, project_id, + region, _request_auth, _content_type, _headers, @@ -2860,12 +3068,14 @@ def _list_flavors_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters if project_id is not None: _path_params["projectId"] = project_id + if region is not None: + _path_params["region"] = region # process the query parameters # process the header parameters # process the form parameters @@ -2880,7 +3090,7 @@ def _list_flavors_serialize( return self.api_client.param_serialize( method="GET", - resource_path="/v1/projects/{projectId}/flavors", + resource_path="/v2/projects/{projectId}/regions/{region}/flavors", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2898,6 +3108,7 @@ def list_instances( self, project_id: Annotated[StrictStr, Field(description="project id")], tag: Annotated[StrictStr, Field(description="instance tag")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2916,6 +3127,8 @@ def list_instances( :type project_id: str :param tag: instance tag (required) :type tag: str + :param region: The region which should be addressed (required) + :type region: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2936,11 +3149,12 @@ def list_instances( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_instances_serialize( project_id=project_id, tag=tag, + region=region, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2950,6 +3164,7 @@ def list_instances( _response_types_map: Dict[str, Optional[str]] = { "200": "ListInstancesResponse", "400": "Error", + "401": "Error", "500": "Error", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -2964,6 +3179,7 @@ def list_instances_with_http_info( self, project_id: Annotated[StrictStr, Field(description="project id")], tag: Annotated[StrictStr, Field(description="instance tag")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2982,6 +3198,8 @@ def list_instances_with_http_info( :type project_id: str :param tag: instance tag (required) :type tag: str + :param region: The region which should be addressed (required) + :type region: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3002,11 +3220,12 @@ def list_instances_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_instances_serialize( project_id=project_id, tag=tag, + region=region, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3016,6 +3235,7 @@ def list_instances_with_http_info( _response_types_map: Dict[str, Optional[str]] = { "200": "ListInstancesResponse", "400": "Error", + "401": "Error", "500": "Error", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -3030,6 +3250,7 @@ def list_instances_without_preload_content( self, project_id: Annotated[StrictStr, Field(description="project id")], tag: Annotated[StrictStr, Field(description="instance tag")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3048,6 +3269,8 @@ def list_instances_without_preload_content( :type project_id: str :param tag: instance tag (required) :type tag: str + :param region: The region which should be addressed (required) + :type region: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3068,11 +3291,12 @@ def list_instances_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_instances_serialize( project_id=project_id, tag=tag, + region=region, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3082,6 +3306,7 @@ def list_instances_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { "200": "ListInstancesResponse", "400": "Error", + "401": "Error", "500": "Error", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -3091,6 +3316,7 @@ def _list_instances_serialize( self, project_id, tag, + region, _request_auth, _content_type, _headers, @@ -3105,12 +3331,14 @@ def _list_instances_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters if project_id is not None: _path_params["projectId"] = project_id + if region is not None: + _path_params["region"] = region # process the query parameters if tag is not None: @@ -3129,7 +3357,7 @@ def _list_instances_serialize( return self.api_client.param_serialize( method="GET", - resource_path="/v1/projects/{projectId}/instances", + resource_path="/v2/projects/{projectId}/regions/{region}/instances", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3149,6 +3377,7 @@ def list_metrics( instance_id: Annotated[StrictStr, Field(description="instance id")], metric: Annotated[StrictStr, Field(description="metric type")], granularity: Annotated[StrictStr, Field(description="granularity")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], period: Annotated[Optional[StrictStr], Field(description="period")] = None, start: Annotated[Optional[StrictStr], Field(description="period start")] = None, end: Annotated[Optional[StrictStr], Field(description="period end")] = None, @@ -3174,6 +3403,8 @@ def list_metrics( :type metric: str :param granularity: granularity (required) :type granularity: str + :param region: The region which should be addressed (required) + :type region: str :param period: period :type period: str :param start: period start @@ -3200,13 +3431,14 @@ def list_metrics( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_metrics_serialize( project_id=project_id, instance_id=instance_id, metric=metric, granularity=granularity, + region=region, period=period, start=start, end=end, @@ -3219,6 +3451,7 @@ def list_metrics( _response_types_map: Dict[str, Optional[str]] = { "200": "ListMetricsResponse", "400": "Error", + "401": "Error", "404": "Error", "500": "Error", } @@ -3236,6 +3469,7 @@ def list_metrics_with_http_info( instance_id: Annotated[StrictStr, Field(description="instance id")], metric: Annotated[StrictStr, Field(description="metric type")], granularity: Annotated[StrictStr, Field(description="granularity")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], period: Annotated[Optional[StrictStr], Field(description="period")] = None, start: Annotated[Optional[StrictStr], Field(description="period start")] = None, end: Annotated[Optional[StrictStr], Field(description="period end")] = None, @@ -3261,6 +3495,8 @@ def list_metrics_with_http_info( :type metric: str :param granularity: granularity (required) :type granularity: str + :param region: The region which should be addressed (required) + :type region: str :param period: period :type period: str :param start: period start @@ -3287,13 +3523,14 @@ def list_metrics_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_metrics_serialize( project_id=project_id, instance_id=instance_id, metric=metric, granularity=granularity, + region=region, period=period, start=start, end=end, @@ -3306,6 +3543,7 @@ def list_metrics_with_http_info( _response_types_map: Dict[str, Optional[str]] = { "200": "ListMetricsResponse", "400": "Error", + "401": "Error", "404": "Error", "500": "Error", } @@ -3323,6 +3561,7 @@ def list_metrics_without_preload_content( instance_id: Annotated[StrictStr, Field(description="instance id")], metric: Annotated[StrictStr, Field(description="metric type")], granularity: Annotated[StrictStr, Field(description="granularity")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], period: Annotated[Optional[StrictStr], Field(description="period")] = None, start: Annotated[Optional[StrictStr], Field(description="period start")] = None, end: Annotated[Optional[StrictStr], Field(description="period end")] = None, @@ -3348,6 +3587,8 @@ def list_metrics_without_preload_content( :type metric: str :param granularity: granularity (required) :type granularity: str + :param region: The region which should be addressed (required) + :type region: str :param period: period :type period: str :param start: period start @@ -3374,13 +3615,14 @@ def list_metrics_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_metrics_serialize( project_id=project_id, instance_id=instance_id, metric=metric, granularity=granularity, + region=region, period=period, start=start, end=end, @@ -3393,6 +3635,7 @@ def list_metrics_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { "200": "ListMetricsResponse", "400": "Error", + "401": "Error", "404": "Error", "500": "Error", } @@ -3405,6 +3648,7 @@ def _list_metrics_serialize( instance_id, metric, granularity, + region, period, start, end, @@ -3422,7 +3666,7 @@ def _list_metrics_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -3432,6 +3676,8 @@ def _list_metrics_serialize( _path_params["instanceId"] = instance_id if metric is not None: _path_params["metric"] = metric + if region is not None: + _path_params["region"] = region # process the query parameters if granularity is not None: @@ -3462,7 +3708,7 @@ def _list_metrics_serialize( return self.api_client.param_serialize( method="GET", - resource_path="/v1/projects/{projectId}/instances/{instanceId}/metrics/{metric}", + resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/metrics/{metric}", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3480,6 +3726,7 @@ def list_restore_jobs( self, project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3498,6 +3745,8 @@ def list_restore_jobs( :type project_id: str :param instance_id: instance id (required) :type instance_id: str + :param region: The region which should be addressed (required) + :type region: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3518,11 +3767,12 @@ def list_restore_jobs( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_restore_jobs_serialize( project_id=project_id, instance_id=instance_id, + region=region, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3532,6 +3782,7 @@ def list_restore_jobs( _response_types_map: Dict[str, Optional[str]] = { "200": "ListRestoreJobsResponse", "400": "Error", + "401": "Error", "404": "Error", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -3546,6 +3797,7 @@ def list_restore_jobs_with_http_info( self, project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3564,6 +3816,8 @@ def list_restore_jobs_with_http_info( :type project_id: str :param instance_id: instance id (required) :type instance_id: str + :param region: The region which should be addressed (required) + :type region: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3584,11 +3838,12 @@ def list_restore_jobs_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_restore_jobs_serialize( project_id=project_id, instance_id=instance_id, + region=region, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3598,6 +3853,7 @@ def list_restore_jobs_with_http_info( _response_types_map: Dict[str, Optional[str]] = { "200": "ListRestoreJobsResponse", "400": "Error", + "401": "Error", "404": "Error", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -3612,6 +3868,7 @@ def list_restore_jobs_without_preload_content( self, project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3630,6 +3887,8 @@ def list_restore_jobs_without_preload_content( :type project_id: str :param instance_id: instance id (required) :type instance_id: str + :param region: The region which should be addressed (required) + :type region: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3650,11 +3909,12 @@ def list_restore_jobs_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_restore_jobs_serialize( project_id=project_id, instance_id=instance_id, + region=region, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3664,6 +3924,7 @@ def list_restore_jobs_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { "200": "ListRestoreJobsResponse", "400": "Error", + "401": "Error", "404": "Error", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -3673,6 +3934,7 @@ def _list_restore_jobs_serialize( self, project_id, instance_id, + region, _request_auth, _content_type, _headers, @@ -3687,7 +3949,7 @@ def _list_restore_jobs_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -3695,6 +3957,8 @@ def _list_restore_jobs_serialize( _path_params["projectId"] = project_id if instance_id is not None: _path_params["instanceId"] = instance_id + if region is not None: + _path_params["region"] = region # process the query parameters # process the header parameters # process the form parameters @@ -3709,7 +3973,7 @@ def _list_restore_jobs_serialize( return self.api_client.param_serialize( method="GET", - resource_path="/v1/projects/{projectId}/instances/{instanceId}/restores", + resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/restores", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3727,6 +3991,7 @@ def list_storages( self, project_id: Annotated[StrictStr, Field(description="project id")], flavor: Annotated[StrictStr, Field(description="flavor id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3745,6 +4010,8 @@ def list_storages( :type project_id: str :param flavor: flavor id (required) :type flavor: str + :param region: The region which should be addressed (required) + :type region: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3765,11 +4032,12 @@ def list_storages( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_storages_serialize( project_id=project_id, flavor=flavor, + region=region, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3779,6 +4047,7 @@ def list_storages( _response_types_map: Dict[str, Optional[str]] = { "200": "ListStoragesResponse", "400": "Error", + "401": "Error", "404": "Error", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -3793,6 +4062,7 @@ def list_storages_with_http_info( self, project_id: Annotated[StrictStr, Field(description="project id")], flavor: Annotated[StrictStr, Field(description="flavor id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3811,6 +4081,8 @@ def list_storages_with_http_info( :type project_id: str :param flavor: flavor id (required) :type flavor: str + :param region: The region which should be addressed (required) + :type region: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3831,11 +4103,12 @@ def list_storages_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_storages_serialize( project_id=project_id, flavor=flavor, + region=region, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3845,6 +4118,7 @@ def list_storages_with_http_info( _response_types_map: Dict[str, Optional[str]] = { "200": "ListStoragesResponse", "400": "Error", + "401": "Error", "404": "Error", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -3859,6 +4133,7 @@ def list_storages_without_preload_content( self, project_id: Annotated[StrictStr, Field(description="project id")], flavor: Annotated[StrictStr, Field(description="flavor id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3877,6 +4152,8 @@ def list_storages_without_preload_content( :type project_id: str :param flavor: flavor id (required) :type flavor: str + :param region: The region which should be addressed (required) + :type region: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3897,11 +4174,12 @@ def list_storages_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_storages_serialize( project_id=project_id, flavor=flavor, + region=region, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3911,6 +4189,7 @@ def list_storages_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { "200": "ListStoragesResponse", "400": "Error", + "401": "Error", "404": "Error", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -3920,6 +4199,7 @@ def _list_storages_serialize( self, project_id, flavor, + region, _request_auth, _content_type, _headers, @@ -3934,7 +4214,7 @@ def _list_storages_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -3942,6 +4222,8 @@ def _list_storages_serialize( _path_params["projectId"] = project_id if flavor is not None: _path_params["flavor"] = flavor + if region is not None: + _path_params["region"] = region # process the query parameters # process the header parameters # process the form parameters @@ -3956,7 +4238,7 @@ def _list_storages_serialize( return self.api_client.param_serialize( method="GET", - resource_path="/v1/projects/{projectId}/storages/{flavor}", + resource_path="/v2/projects/{projectId}/regions/{region}/storages/{flavor}", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3974,6 +4256,7 @@ def list_suggested_indexes( self, project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3992,6 +4275,8 @@ def list_suggested_indexes( :type project_id: str :param instance_id: instance id (required) :type instance_id: str + :param region: The region which should be addressed (required) + :type region: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4012,11 +4297,12 @@ def list_suggested_indexes( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_suggested_indexes_serialize( project_id=project_id, instance_id=instance_id, + region=region, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4026,6 +4312,7 @@ def list_suggested_indexes( _response_types_map: Dict[str, Optional[str]] = { "200": "HandlersInstancesSuggestedIndexesResponse", "400": "Error", + "401": "Error", "404": "Error", "500": "Error", } @@ -4041,6 +4328,7 @@ def list_suggested_indexes_with_http_info( self, project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4059,6 +4347,8 @@ def list_suggested_indexes_with_http_info( :type project_id: str :param instance_id: instance id (required) :type instance_id: str + :param region: The region which should be addressed (required) + :type region: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4079,11 +4369,12 @@ def list_suggested_indexes_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_suggested_indexes_serialize( project_id=project_id, instance_id=instance_id, + region=region, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4093,6 +4384,7 @@ def list_suggested_indexes_with_http_info( _response_types_map: Dict[str, Optional[str]] = { "200": "HandlersInstancesSuggestedIndexesResponse", "400": "Error", + "401": "Error", "404": "Error", "500": "Error", } @@ -4108,6 +4400,7 @@ def list_suggested_indexes_without_preload_content( self, project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4126,6 +4419,8 @@ def list_suggested_indexes_without_preload_content( :type project_id: str :param instance_id: instance id (required) :type instance_id: str + :param region: The region which should be addressed (required) + :type region: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4146,11 +4441,12 @@ def list_suggested_indexes_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_suggested_indexes_serialize( project_id=project_id, instance_id=instance_id, + region=region, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4160,6 +4456,7 @@ def list_suggested_indexes_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { "200": "HandlersInstancesSuggestedIndexesResponse", "400": "Error", + "401": "Error", "404": "Error", "500": "Error", } @@ -4170,6 +4467,7 @@ def _list_suggested_indexes_serialize( self, project_id, instance_id, + region, _request_auth, _content_type, _headers, @@ -4184,7 +4482,7 @@ def _list_suggested_indexes_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -4192,6 +4490,8 @@ def _list_suggested_indexes_serialize( _path_params["projectId"] = project_id if instance_id is not None: _path_params["instanceId"] = instance_id + if region is not None: + _path_params["region"] = region # process the query parameters # process the header parameters # process the form parameters @@ -4206,7 +4506,7 @@ def _list_suggested_indexes_serialize( return self.api_client.param_serialize( method="GET", - resource_path="/v1/projects/{projectId}/instances/{instanceId}/advisor/suggested-indexes", + resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/advisor/suggested-indexes", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4224,6 +4524,7 @@ def list_users( self, project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4242,6 +4543,8 @@ def list_users( :type project_id: str :param instance_id: instance id (required) :type instance_id: str + :param region: The region which should be addressed (required) + :type region: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4262,11 +4565,12 @@ def list_users( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_users_serialize( project_id=project_id, instance_id=instance_id, + region=region, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4275,6 +4579,8 @@ def list_users( _response_types_map: Dict[str, Optional[str]] = { "200": "ListUsersResponse", + "400": "Error", + "401": "Error", "404": "Error", "500": "Error", } @@ -4290,6 +4596,7 @@ def list_users_with_http_info( self, project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4308,6 +4615,8 @@ def list_users_with_http_info( :type project_id: str :param instance_id: instance id (required) :type instance_id: str + :param region: The region which should be addressed (required) + :type region: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4328,11 +4637,12 @@ def list_users_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_users_serialize( project_id=project_id, instance_id=instance_id, + region=region, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4341,6 +4651,8 @@ def list_users_with_http_info( _response_types_map: Dict[str, Optional[str]] = { "200": "ListUsersResponse", + "400": "Error", + "401": "Error", "404": "Error", "500": "Error", } @@ -4356,6 +4668,7 @@ def list_users_without_preload_content( self, project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4374,6 +4687,8 @@ def list_users_without_preload_content( :type project_id: str :param instance_id: instance id (required) :type instance_id: str + :param region: The region which should be addressed (required) + :type region: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4394,11 +4709,12 @@ def list_users_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_users_serialize( project_id=project_id, instance_id=instance_id, + region=region, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4407,6 +4723,8 @@ def list_users_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { "200": "ListUsersResponse", + "400": "Error", + "401": "Error", "404": "Error", "500": "Error", } @@ -4417,6 +4735,7 @@ def _list_users_serialize( self, project_id, instance_id, + region, _request_auth, _content_type, _headers, @@ -4431,7 +4750,7 @@ def _list_users_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -4439,6 +4758,8 @@ def _list_users_serialize( _path_params["projectId"] = project_id if instance_id is not None: _path_params["instanceId"] = instance_id + if region is not None: + _path_params["region"] = region # process the query parameters # process the header parameters # process the form parameters @@ -4453,7 +4774,7 @@ def _list_users_serialize( return self.api_client.param_serialize( method="GET", - resource_path="/v1/projects/{projectId}/instances/{instanceId}/users", + resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/users", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4470,6 +4791,7 @@ def _list_users_serialize( def list_versions( self, project_id: Annotated[StrictStr, Field(description="project id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4486,6 +4808,8 @@ def list_versions( :param project_id: project id (required) :type project_id: str + :param region: The region which should be addressed (required) + :type region: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4506,10 +4830,11 @@ def list_versions( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_versions_serialize( project_id=project_id, + region=region, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4519,6 +4844,7 @@ def list_versions( _response_types_map: Dict[str, Optional[str]] = { "200": "ListVersionsResponse", "400": "Error", + "401": "Error", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) response_data.read() @@ -4531,6 +4857,7 @@ def list_versions( def list_versions_with_http_info( self, project_id: Annotated[StrictStr, Field(description="project id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4547,6 +4874,8 @@ def list_versions_with_http_info( :param project_id: project id (required) :type project_id: str + :param region: The region which should be addressed (required) + :type region: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4567,10 +4896,11 @@ def list_versions_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_versions_serialize( project_id=project_id, + region=region, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4580,6 +4910,7 @@ def list_versions_with_http_info( _response_types_map: Dict[str, Optional[str]] = { "200": "ListVersionsResponse", "400": "Error", + "401": "Error", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) response_data.read() @@ -4592,6 +4923,7 @@ def list_versions_with_http_info( def list_versions_without_preload_content( self, project_id: Annotated[StrictStr, Field(description="project id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4608,6 +4940,8 @@ def list_versions_without_preload_content( :param project_id: project id (required) :type project_id: str + :param region: The region which should be addressed (required) + :type region: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4628,10 +4962,11 @@ def list_versions_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_versions_serialize( project_id=project_id, + region=region, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4641,6 +4976,7 @@ def list_versions_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { "200": "ListVersionsResponse", "400": "Error", + "401": "Error", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) return response_data.response @@ -4648,6 +4984,7 @@ def list_versions_without_preload_content( def _list_versions_serialize( self, project_id, + region, _request_auth, _content_type, _headers, @@ -4662,12 +4999,14 @@ def _list_versions_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters if project_id is not None: _path_params["projectId"] = project_id + if region is not None: + _path_params["region"] = region # process the query parameters # process the header parameters # process the form parameters @@ -4682,7 +5021,7 @@ def _list_versions_serialize( return self.api_client.param_serialize( method="GET", - resource_path="/v1/projects/{projectId}/versions", + resource_path="/v2/projects/{projectId}/regions/{region}/versions", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4700,6 +5039,7 @@ def partial_update_instance( self, project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], partial_update_instance_payload: Annotated[PartialUpdateInstancePayload, Field(description="payload")], _request_timeout: Union[ None, @@ -4719,6 +5059,8 @@ def partial_update_instance( :type project_id: str :param instance_id: instance id (required) :type instance_id: str + :param region: The region which should be addressed (required) + :type region: str :param partial_update_instance_payload: payload (required) :type partial_update_instance_payload: PartialUpdateInstancePayload :param _request_timeout: timeout setting for this request. If one @@ -4741,11 +5083,12 @@ def partial_update_instance( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._partial_update_instance_serialize( project_id=project_id, instance_id=instance_id, + region=region, partial_update_instance_payload=partial_update_instance_payload, _request_auth=_request_auth, _content_type=_content_type, @@ -4757,6 +5100,7 @@ def partial_update_instance( "200": "UpdateInstanceResponse", "202": "UpdateInstanceResponse", "400": "Error", + "401": "Error", "404": "Error", "409": "Error", "500": "Error", @@ -4773,6 +5117,7 @@ def partial_update_instance_with_http_info( self, project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], partial_update_instance_payload: Annotated[PartialUpdateInstancePayload, Field(description="payload")], _request_timeout: Union[ None, @@ -4792,6 +5137,8 @@ def partial_update_instance_with_http_info( :type project_id: str :param instance_id: instance id (required) :type instance_id: str + :param region: The region which should be addressed (required) + :type region: str :param partial_update_instance_payload: payload (required) :type partial_update_instance_payload: PartialUpdateInstancePayload :param _request_timeout: timeout setting for this request. If one @@ -4814,11 +5161,12 @@ def partial_update_instance_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._partial_update_instance_serialize( project_id=project_id, instance_id=instance_id, + region=region, partial_update_instance_payload=partial_update_instance_payload, _request_auth=_request_auth, _content_type=_content_type, @@ -4830,6 +5178,7 @@ def partial_update_instance_with_http_info( "200": "UpdateInstanceResponse", "202": "UpdateInstanceResponse", "400": "Error", + "401": "Error", "404": "Error", "409": "Error", "500": "Error", @@ -4846,6 +5195,7 @@ def partial_update_instance_without_preload_content( self, project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], partial_update_instance_payload: Annotated[PartialUpdateInstancePayload, Field(description="payload")], _request_timeout: Union[ None, @@ -4865,6 +5215,8 @@ def partial_update_instance_without_preload_content( :type project_id: str :param instance_id: instance id (required) :type instance_id: str + :param region: The region which should be addressed (required) + :type region: str :param partial_update_instance_payload: payload (required) :type partial_update_instance_payload: PartialUpdateInstancePayload :param _request_timeout: timeout setting for this request. If one @@ -4887,11 +5239,12 @@ def partial_update_instance_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._partial_update_instance_serialize( project_id=project_id, instance_id=instance_id, + region=region, partial_update_instance_payload=partial_update_instance_payload, _request_auth=_request_auth, _content_type=_content_type, @@ -4903,6 +5256,7 @@ def partial_update_instance_without_preload_content( "200": "UpdateInstanceResponse", "202": "UpdateInstanceResponse", "400": "Error", + "401": "Error", "404": "Error", "409": "Error", "500": "Error", @@ -4914,6 +5268,7 @@ def _partial_update_instance_serialize( self, project_id, instance_id, + region, partial_update_instance_payload, _request_auth, _content_type, @@ -4929,7 +5284,7 @@ def _partial_update_instance_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -4937,6 +5292,8 @@ def _partial_update_instance_serialize( _path_params["projectId"] = project_id if instance_id is not None: _path_params["instanceId"] = instance_id + if region is not None: + _path_params["region"] = region # process the query parameters # process the header parameters # process the form parameters @@ -4961,7 +5318,7 @@ def _partial_update_instance_serialize( return self.api_client.param_serialize( method="PATCH", - resource_path="/v1/projects/{projectId}/instances/{instanceId}", + resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4980,6 +5337,7 @@ def partial_update_user( project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], user_id: Annotated[StrictStr, Field(description="user id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], partial_update_user_payload: Annotated[PartialUpdateUserPayload, Field(description="payload")], _request_timeout: Union[ None, @@ -5001,6 +5359,8 @@ def partial_update_user( :type instance_id: str :param user_id: user id (required) :type user_id: str + :param region: The region which should be addressed (required) + :type region: str :param partial_update_user_payload: payload (required) :type partial_update_user_payload: PartialUpdateUserPayload :param _request_timeout: timeout setting for this request. If one @@ -5023,12 +5383,13 @@ def partial_update_user( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._partial_update_user_serialize( project_id=project_id, instance_id=instance_id, user_id=user_id, + region=region, partial_update_user_payload=partial_update_user_payload, _request_auth=_request_auth, _content_type=_content_type, @@ -5039,6 +5400,7 @@ def partial_update_user( _response_types_map: Dict[str, Optional[str]] = { "200": None, "400": "Error", + "401": "Error", "404": "Error", "409": "Error", } @@ -5055,6 +5417,7 @@ def partial_update_user_with_http_info( project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], user_id: Annotated[StrictStr, Field(description="user id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], partial_update_user_payload: Annotated[PartialUpdateUserPayload, Field(description="payload")], _request_timeout: Union[ None, @@ -5076,6 +5439,8 @@ def partial_update_user_with_http_info( :type instance_id: str :param user_id: user id (required) :type user_id: str + :param region: The region which should be addressed (required) + :type region: str :param partial_update_user_payload: payload (required) :type partial_update_user_payload: PartialUpdateUserPayload :param _request_timeout: timeout setting for this request. If one @@ -5098,12 +5463,13 @@ def partial_update_user_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._partial_update_user_serialize( project_id=project_id, instance_id=instance_id, user_id=user_id, + region=region, partial_update_user_payload=partial_update_user_payload, _request_auth=_request_auth, _content_type=_content_type, @@ -5114,6 +5480,7 @@ def partial_update_user_with_http_info( _response_types_map: Dict[str, Optional[str]] = { "200": None, "400": "Error", + "401": "Error", "404": "Error", "409": "Error", } @@ -5130,6 +5497,7 @@ def partial_update_user_without_preload_content( project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], user_id: Annotated[StrictStr, Field(description="user id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], partial_update_user_payload: Annotated[PartialUpdateUserPayload, Field(description="payload")], _request_timeout: Union[ None, @@ -5151,6 +5519,8 @@ def partial_update_user_without_preload_content( :type instance_id: str :param user_id: user id (required) :type user_id: str + :param region: The region which should be addressed (required) + :type region: str :param partial_update_user_payload: payload (required) :type partial_update_user_payload: PartialUpdateUserPayload :param _request_timeout: timeout setting for this request. If one @@ -5173,12 +5543,13 @@ def partial_update_user_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._partial_update_user_serialize( project_id=project_id, instance_id=instance_id, user_id=user_id, + region=region, partial_update_user_payload=partial_update_user_payload, _request_auth=_request_auth, _content_type=_content_type, @@ -5189,6 +5560,7 @@ def partial_update_user_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { "200": None, "400": "Error", + "401": "Error", "404": "Error", "409": "Error", } @@ -5200,6 +5572,7 @@ def _partial_update_user_serialize( project_id, instance_id, user_id, + region, partial_update_user_payload, _request_auth, _content_type, @@ -5215,7 +5588,7 @@ def _partial_update_user_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -5225,6 +5598,8 @@ def _partial_update_user_serialize( _path_params["instanceId"] = instance_id if user_id is not None: _path_params["userId"] = user_id + if region is not None: + _path_params["region"] = region # process the query parameters # process the header parameters # process the form parameters @@ -5249,7 +5624,7 @@ def _partial_update_user_serialize( return self.api_client.param_serialize( method="PATCH", - resource_path="/v1/projects/{projectId}/instances/{instanceId}/users/{userId}", + resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5268,6 +5643,7 @@ def reset_user( project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], user_id: Annotated[StrictStr, Field(description="user id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5288,6 +5664,8 @@ def reset_user( :type instance_id: str :param user_id: user id (required) :type user_id: str + :param region: The region which should be addressed (required) + :type region: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5308,12 +5686,13 @@ def reset_user( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._reset_user_serialize( project_id=project_id, instance_id=instance_id, user_id=user_id, + region=region, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5322,6 +5701,8 @@ def reset_user( _response_types_map: Dict[str, Optional[str]] = { "202": "User", + "400": "Error", + "401": "Error", "404": "Error", "500": "Error", } @@ -5338,6 +5719,7 @@ def reset_user_with_http_info( project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], user_id: Annotated[StrictStr, Field(description="user id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5358,6 +5740,8 @@ def reset_user_with_http_info( :type instance_id: str :param user_id: user id (required) :type user_id: str + :param region: The region which should be addressed (required) + :type region: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5378,12 +5762,13 @@ def reset_user_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._reset_user_serialize( project_id=project_id, instance_id=instance_id, user_id=user_id, + region=region, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5392,6 +5777,8 @@ def reset_user_with_http_info( _response_types_map: Dict[str, Optional[str]] = { "202": "User", + "400": "Error", + "401": "Error", "404": "Error", "500": "Error", } @@ -5408,6 +5795,7 @@ def reset_user_without_preload_content( project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], user_id: Annotated[StrictStr, Field(description="user id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5428,6 +5816,8 @@ def reset_user_without_preload_content( :type instance_id: str :param user_id: user id (required) :type user_id: str + :param region: The region which should be addressed (required) + :type region: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5448,12 +5838,13 @@ def reset_user_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._reset_user_serialize( project_id=project_id, instance_id=instance_id, user_id=user_id, + region=region, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5462,6 +5853,8 @@ def reset_user_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { "202": "User", + "400": "Error", + "401": "Error", "404": "Error", "500": "Error", } @@ -5473,6 +5866,7 @@ def _reset_user_serialize( project_id, instance_id, user_id, + region, _request_auth, _content_type, _headers, @@ -5487,7 +5881,7 @@ def _reset_user_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -5497,6 +5891,8 @@ def _reset_user_serialize( _path_params["instanceId"] = instance_id if user_id is not None: _path_params["userId"] = user_id + if region is not None: + _path_params["region"] = region # process the query parameters # process the header parameters # process the form parameters @@ -5511,7 +5907,7 @@ def _reset_user_serialize( return self.api_client.param_serialize( method="POST", - resource_path="/v1/projects/{projectId}/instances/{instanceId}/users/{userId}/reset", + resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}/reset", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5529,6 +5925,7 @@ def restore_instance( self, project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], restore_instance_payload: Annotated[RestoreInstancePayload, Field(description="payload")], _request_timeout: Union[ None, @@ -5548,6 +5945,8 @@ def restore_instance( :type project_id: str :param instance_id: instance id (required) :type instance_id: str + :param region: The region which should be addressed (required) + :type region: str :param restore_instance_payload: payload (required) :type restore_instance_payload: RestoreInstancePayload :param _request_timeout: timeout setting for this request. If one @@ -5570,11 +5969,12 @@ def restore_instance( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._restore_instance_serialize( project_id=project_id, instance_id=instance_id, + region=region, restore_instance_payload=restore_instance_payload, _request_auth=_request_auth, _content_type=_content_type, @@ -5585,6 +5985,7 @@ def restore_instance( _response_types_map: Dict[str, Optional[str]] = { "202": "RestoreInstanceResponse", "400": "Error", + "401": "Error", "404": "Error", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -5599,6 +6000,7 @@ def restore_instance_with_http_info( self, project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], restore_instance_payload: Annotated[RestoreInstancePayload, Field(description="payload")], _request_timeout: Union[ None, @@ -5618,6 +6020,8 @@ def restore_instance_with_http_info( :type project_id: str :param instance_id: instance id (required) :type instance_id: str + :param region: The region which should be addressed (required) + :type region: str :param restore_instance_payload: payload (required) :type restore_instance_payload: RestoreInstancePayload :param _request_timeout: timeout setting for this request. If one @@ -5640,11 +6044,12 @@ def restore_instance_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._restore_instance_serialize( project_id=project_id, instance_id=instance_id, + region=region, restore_instance_payload=restore_instance_payload, _request_auth=_request_auth, _content_type=_content_type, @@ -5655,6 +6060,7 @@ def restore_instance_with_http_info( _response_types_map: Dict[str, Optional[str]] = { "202": "RestoreInstanceResponse", "400": "Error", + "401": "Error", "404": "Error", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -5669,6 +6075,7 @@ def restore_instance_without_preload_content( self, project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], restore_instance_payload: Annotated[RestoreInstancePayload, Field(description="payload")], _request_timeout: Union[ None, @@ -5688,6 +6095,8 @@ def restore_instance_without_preload_content( :type project_id: str :param instance_id: instance id (required) :type instance_id: str + :param region: The region which should be addressed (required) + :type region: str :param restore_instance_payload: payload (required) :type restore_instance_payload: RestoreInstancePayload :param _request_timeout: timeout setting for this request. If one @@ -5710,11 +6119,12 @@ def restore_instance_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._restore_instance_serialize( project_id=project_id, instance_id=instance_id, + region=region, restore_instance_payload=restore_instance_payload, _request_auth=_request_auth, _content_type=_content_type, @@ -5725,6 +6135,7 @@ def restore_instance_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { "202": "RestoreInstanceResponse", "400": "Error", + "401": "Error", "404": "Error", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -5734,6 +6145,7 @@ def _restore_instance_serialize( self, project_id, instance_id, + region, restore_instance_payload, _request_auth, _content_type, @@ -5749,7 +6161,7 @@ def _restore_instance_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -5757,6 +6169,8 @@ def _restore_instance_serialize( _path_params["projectId"] = project_id if instance_id is not None: _path_params["instanceId"] = instance_id + if region is not None: + _path_params["region"] = region # process the query parameters # process the header parameters # process the form parameters @@ -5781,7 +6195,7 @@ def _restore_instance_serialize( return self.api_client.param_serialize( method="POST", - resource_path="/v1/projects/{projectId}/instances/{instanceId}/restores", + resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/restores", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5799,6 +6213,7 @@ def update_backup_schedule( self, project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], update_backup_schedule_payload: Annotated[UpdateBackupSchedulePayload, Field(description="payload")], _request_timeout: Union[ None, @@ -5818,6 +6233,8 @@ def update_backup_schedule( :type project_id: str :param instance_id: instance id (required) :type instance_id: str + :param region: The region which should be addressed (required) + :type region: str :param update_backup_schedule_payload: payload (required) :type update_backup_schedule_payload: UpdateBackupSchedulePayload :param _request_timeout: timeout setting for this request. If one @@ -5840,11 +6257,12 @@ def update_backup_schedule( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_backup_schedule_serialize( project_id=project_id, instance_id=instance_id, + region=region, update_backup_schedule_payload=update_backup_schedule_payload, _request_auth=_request_auth, _content_type=_content_type, @@ -5855,6 +6273,7 @@ def update_backup_schedule( _response_types_map: Dict[str, Optional[str]] = { "200": "BackupSchedule", "400": "Error", + "401": "Error", "404": "Error", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -5869,6 +6288,7 @@ def update_backup_schedule_with_http_info( self, project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], update_backup_schedule_payload: Annotated[UpdateBackupSchedulePayload, Field(description="payload")], _request_timeout: Union[ None, @@ -5888,6 +6308,8 @@ def update_backup_schedule_with_http_info( :type project_id: str :param instance_id: instance id (required) :type instance_id: str + :param region: The region which should be addressed (required) + :type region: str :param update_backup_schedule_payload: payload (required) :type update_backup_schedule_payload: UpdateBackupSchedulePayload :param _request_timeout: timeout setting for this request. If one @@ -5910,11 +6332,12 @@ def update_backup_schedule_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_backup_schedule_serialize( project_id=project_id, instance_id=instance_id, + region=region, update_backup_schedule_payload=update_backup_schedule_payload, _request_auth=_request_auth, _content_type=_content_type, @@ -5925,6 +6348,7 @@ def update_backup_schedule_with_http_info( _response_types_map: Dict[str, Optional[str]] = { "200": "BackupSchedule", "400": "Error", + "401": "Error", "404": "Error", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -5939,6 +6363,7 @@ def update_backup_schedule_without_preload_content( self, project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], update_backup_schedule_payload: Annotated[UpdateBackupSchedulePayload, Field(description="payload")], _request_timeout: Union[ None, @@ -5958,6 +6383,8 @@ def update_backup_schedule_without_preload_content( :type project_id: str :param instance_id: instance id (required) :type instance_id: str + :param region: The region which should be addressed (required) + :type region: str :param update_backup_schedule_payload: payload (required) :type update_backup_schedule_payload: UpdateBackupSchedulePayload :param _request_timeout: timeout setting for this request. If one @@ -5980,11 +6407,12 @@ def update_backup_schedule_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_backup_schedule_serialize( project_id=project_id, instance_id=instance_id, + region=region, update_backup_schedule_payload=update_backup_schedule_payload, _request_auth=_request_auth, _content_type=_content_type, @@ -5995,6 +6423,7 @@ def update_backup_schedule_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { "200": "BackupSchedule", "400": "Error", + "401": "Error", "404": "Error", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -6004,6 +6433,7 @@ def _update_backup_schedule_serialize( self, project_id, instance_id, + region, update_backup_schedule_payload, _request_auth, _content_type, @@ -6019,7 +6449,7 @@ def _update_backup_schedule_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -6027,6 +6457,8 @@ def _update_backup_schedule_serialize( _path_params["projectId"] = project_id if instance_id is not None: _path_params["instanceId"] = instance_id + if region is not None: + _path_params["region"] = region # process the query parameters # process the header parameters # process the form parameters @@ -6051,7 +6483,7 @@ def _update_backup_schedule_serialize( return self.api_client.param_serialize( method="PUT", - resource_path="/v1/projects/{projectId}/instances/{instanceId}/backups", + resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/backups", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6069,6 +6501,7 @@ def update_instance( self, project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], update_instance_payload: Annotated[UpdateInstancePayload, Field(description="payload")], _request_timeout: Union[ None, @@ -6088,6 +6521,8 @@ def update_instance( :type project_id: str :param instance_id: instance id (required) :type instance_id: str + :param region: The region which should be addressed (required) + :type region: str :param update_instance_payload: payload (required) :type update_instance_payload: UpdateInstancePayload :param _request_timeout: timeout setting for this request. If one @@ -6110,11 +6545,12 @@ def update_instance( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_instance_serialize( project_id=project_id, instance_id=instance_id, + region=region, update_instance_payload=update_instance_payload, _request_auth=_request_auth, _content_type=_content_type, @@ -6126,6 +6562,7 @@ def update_instance( "200": "UpdateInstanceResponse", "202": "UpdateInstanceResponse", "400": "Error", + "401": "Error", "404": "Error", "409": "Error", "500": "Error", @@ -6142,6 +6579,7 @@ def update_instance_with_http_info( self, project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], update_instance_payload: Annotated[UpdateInstancePayload, Field(description="payload")], _request_timeout: Union[ None, @@ -6161,6 +6599,8 @@ def update_instance_with_http_info( :type project_id: str :param instance_id: instance id (required) :type instance_id: str + :param region: The region which should be addressed (required) + :type region: str :param update_instance_payload: payload (required) :type update_instance_payload: UpdateInstancePayload :param _request_timeout: timeout setting for this request. If one @@ -6183,11 +6623,12 @@ def update_instance_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_instance_serialize( project_id=project_id, instance_id=instance_id, + region=region, update_instance_payload=update_instance_payload, _request_auth=_request_auth, _content_type=_content_type, @@ -6199,6 +6640,7 @@ def update_instance_with_http_info( "200": "UpdateInstanceResponse", "202": "UpdateInstanceResponse", "400": "Error", + "401": "Error", "404": "Error", "409": "Error", "500": "Error", @@ -6215,6 +6657,7 @@ def update_instance_without_preload_content( self, project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], update_instance_payload: Annotated[UpdateInstancePayload, Field(description="payload")], _request_timeout: Union[ None, @@ -6234,6 +6677,8 @@ def update_instance_without_preload_content( :type project_id: str :param instance_id: instance id (required) :type instance_id: str + :param region: The region which should be addressed (required) + :type region: str :param update_instance_payload: payload (required) :type update_instance_payload: UpdateInstancePayload :param _request_timeout: timeout setting for this request. If one @@ -6256,11 +6701,12 @@ def update_instance_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_instance_serialize( project_id=project_id, instance_id=instance_id, + region=region, update_instance_payload=update_instance_payload, _request_auth=_request_auth, _content_type=_content_type, @@ -6272,6 +6718,7 @@ def update_instance_without_preload_content( "200": "UpdateInstanceResponse", "202": "UpdateInstanceResponse", "400": "Error", + "401": "Error", "404": "Error", "409": "Error", "500": "Error", @@ -6283,6 +6730,7 @@ def _update_instance_serialize( self, project_id, instance_id, + region, update_instance_payload, _request_auth, _content_type, @@ -6298,7 +6746,7 @@ def _update_instance_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -6306,6 +6754,8 @@ def _update_instance_serialize( _path_params["projectId"] = project_id if instance_id is not None: _path_params["instanceId"] = instance_id + if region is not None: + _path_params["region"] = region # process the query parameters # process the header parameters # process the form parameters @@ -6330,7 +6780,7 @@ def _update_instance_serialize( return self.api_client.param_serialize( method="PUT", - resource_path="/v1/projects/{projectId}/instances/{instanceId}", + resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6349,6 +6799,7 @@ def update_user( project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], user_id: Annotated[StrictStr, Field(description="user id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], update_user_payload: Annotated[UpdateUserPayload, Field(description="payload")], _request_timeout: Union[ None, @@ -6370,6 +6821,8 @@ def update_user( :type instance_id: str :param user_id: user id (required) :type user_id: str + :param region: The region which should be addressed (required) + :type region: str :param update_user_payload: payload (required) :type update_user_payload: UpdateUserPayload :param _request_timeout: timeout setting for this request. If one @@ -6392,12 +6845,13 @@ def update_user( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_user_serialize( project_id=project_id, instance_id=instance_id, user_id=user_id, + region=region, update_user_payload=update_user_payload, _request_auth=_request_auth, _content_type=_content_type, @@ -6408,6 +6862,7 @@ def update_user( _response_types_map: Dict[str, Optional[str]] = { "200": None, "400": "Error", + "401": "Error", "404": "Error", "409": "Error", } @@ -6424,6 +6879,7 @@ def update_user_with_http_info( project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], user_id: Annotated[StrictStr, Field(description="user id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], update_user_payload: Annotated[UpdateUserPayload, Field(description="payload")], _request_timeout: Union[ None, @@ -6445,6 +6901,8 @@ def update_user_with_http_info( :type instance_id: str :param user_id: user id (required) :type user_id: str + :param region: The region which should be addressed (required) + :type region: str :param update_user_payload: payload (required) :type update_user_payload: UpdateUserPayload :param _request_timeout: timeout setting for this request. If one @@ -6467,12 +6925,13 @@ def update_user_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_user_serialize( project_id=project_id, instance_id=instance_id, user_id=user_id, + region=region, update_user_payload=update_user_payload, _request_auth=_request_auth, _content_type=_content_type, @@ -6483,6 +6942,7 @@ def update_user_with_http_info( _response_types_map: Dict[str, Optional[str]] = { "200": None, "400": "Error", + "401": "Error", "404": "Error", "409": "Error", } @@ -6499,6 +6959,7 @@ def update_user_without_preload_content( project_id: Annotated[StrictStr, Field(description="project id")], instance_id: Annotated[StrictStr, Field(description="instance id")], user_id: Annotated[StrictStr, Field(description="user id")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], update_user_payload: Annotated[UpdateUserPayload, Field(description="payload")], _request_timeout: Union[ None, @@ -6520,6 +6981,8 @@ def update_user_without_preload_content( :type instance_id: str :param user_id: user id (required) :type user_id: str + :param region: The region which should be addressed (required) + :type region: str :param update_user_payload: payload (required) :type update_user_payload: UpdateUserPayload :param _request_timeout: timeout setting for this request. If one @@ -6542,12 +7005,13 @@ def update_user_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_user_serialize( project_id=project_id, instance_id=instance_id, user_id=user_id, + region=region, update_user_payload=update_user_payload, _request_auth=_request_auth, _content_type=_content_type, @@ -6558,6 +7022,7 @@ def update_user_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { "200": None, "400": "Error", + "401": "Error", "404": "Error", "409": "Error", } @@ -6569,6 +7034,7 @@ def _update_user_serialize( project_id, instance_id, user_id, + region, update_user_payload, _request_auth, _content_type, @@ -6584,7 +7050,7 @@ def _update_user_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -6594,6 +7060,8 @@ def _update_user_serialize( _path_params["instanceId"] = instance_id if user_id is not None: _path_params["userId"] = user_id + if region is not None: + _path_params["region"] = region # process the query parameters # process the header parameters # process the form parameters @@ -6618,7 +7086,7 @@ def _update_user_serialize( return self.api_client.param_serialize( method="PUT", - resource_path="/v1/projects/{projectId}/instances/{instanceId}/users/{userId}", + resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}", path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/services/mongodbflex/src/stackit/mongodbflex/api_client.py b/services/mongodbflex/src/stackit/mongodbflex/api_client.py index 86324df8..46fb6b4f 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/api_client.py +++ b/services/mongodbflex/src/stackit/mongodbflex/api_client.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 import datetime import json @@ -332,6 +332,10 @@ def sanitize_for_serialization(self, obj): else: obj_dict = obj.__dict__ + if isinstance(obj_dict, list): + # here we handle instances that can either be a list or something else, and only became a real list by calling to_dict() # noqa: E501 + return self.sanitize_for_serialization(obj_dict) + return {key: self.sanitize_for_serialization(val) for key, val in obj_dict.items()} def deserialize(self, response_text: str, response_type: str, content_type: Optional[str]): @@ -351,12 +355,12 @@ def deserialize(self, response_text: str, response_type: str, content_type: Opti data = json.loads(response_text) except ValueError: data = response_text - elif content_type.startswith("application/json"): + elif re.match(r"^application/(json|[\w!#$&.+-^_]+\+json)\s*(;|$)", content_type, re.IGNORECASE): if response_text == "": data = "" else: data = json.loads(response_text) - elif content_type.startswith("text/plain"): + elif re.match(r"^text\/[a-z.+-]+\s*(;|$)", content_type, re.IGNORECASE): data = response_text else: raise ApiException(status=0, reason="Unsupported content type: {0}".format(content_type)) @@ -458,7 +462,7 @@ def parameters_to_url_query(self, params, collection_formats): if k in collection_formats: collection_format = collection_formats[k] if collection_format == "multi": - new_params.extend((k, str(value)) for value in v) + new_params.extend((k, quote(str(value))) for value in v) else: if collection_format == "ssv": delimiter = " " @@ -474,7 +478,10 @@ def parameters_to_url_query(self, params, collection_formats): return "&".join(["=".join(map(str, item)) for item in new_params]) - def files_parameters(self, files: Dict[str, Union[str, bytes]]): + def files_parameters( + self, + files: Dict[str, Union[str, bytes, List[str], List[bytes], Tuple[str, bytes]]], + ): """Builds form parameters. :param files: File parameters. @@ -489,6 +496,12 @@ def files_parameters(self, files: Dict[str, Union[str, bytes]]): elif isinstance(v, bytes): filename = k filedata = v + elif isinstance(v, tuple): + filename, filedata = v + elif isinstance(v, list): + for file_param in v: + params.extend(self.files_parameters({k: file_param})) + continue else: raise ValueError("Unsupported file value") mimetype = mimetypes.guess_type(filename)[0] or "application/octet-stream" diff --git a/services/mongodbflex/src/stackit/mongodbflex/configuration.py b/services/mongodbflex/src/stackit/mongodbflex/configuration.py index 0b458a38..eb2beb5c 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/configuration.py +++ b/services/mongodbflex/src/stackit/mongodbflex/configuration.py @@ -1,21 +1,38 @@ # coding: utf-8 -import sys - -import os - - """ STACKIT MongoDB Service API This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 + +import sys +from typing import Dict, List, Optional, TypedDict + +from typing_extensions import NotRequired + +import os + + +ServerVariablesT = Dict[str, str] + + +class HostSettingVariable(TypedDict): + description: str + default_value: str + enum_values: List[str] + + +class HostSetting(TypedDict): + url: str + description: str + variables: NotRequired[Dict[str, HostSettingVariable]] class HostConfiguration: @@ -37,7 +54,7 @@ def __init__( ) """Constructor """ - self._base_path = "https://mongodb-flex-service.api.eu01.stackit.cloud" + self._base_path = "https://mongodb-flex-service.api.stackit.cloud" """Default Base url """ self.server_index = 0 if server_index is None else server_index @@ -54,26 +71,30 @@ def __init__( """Ignore operation servers """ - def get_host_settings(self): + def get_host_settings(self) -> List[HostSetting]: """Gets an array of host settings :return: An array of host settings """ return [ { - "url": "https://mongodb-flex-service.api.{region}stackit.cloud", + "url": "https://mongodb-flex-service.api.stackit.cloud", "description": "No description provided", "variables": { "region": { "description": "No description provided", - "default_value": "eu01.", - "enum_values": ["eu01."], + "default_value": "global", } }, } ] - def get_host_from_settings(self, index, variables=None, servers=None): + def get_host_from_settings( + self, + index: Optional[int], + variables: Optional[ServerVariablesT] = None, + servers: Optional[List[HostSetting]] = None, + ) -> str: """Gets host URL based on the index and variables :param index: array index of the host settings :param variables: hash of variable and the corresponding value @@ -113,7 +134,7 @@ def get_host_from_settings(self, index, variables=None, servers=None): and variables.get(variable_name) is not None ): raise ValueError( - "this API does not support setting a region in the the client configuration, " + "this API does not support setting a region in the client configuration, " "please check if the region can be specified as a function parameter" ) used_value = variables.get(variable_name, variable["default_value"]) @@ -132,12 +153,12 @@ def get_host_from_settings(self, index, variables=None, servers=None): return url @property - def host(self): + def host(self) -> str: """Return generated host.""" return self.get_host_from_settings(self.server_index, variables=self.server_variables) @host.setter - def host(self, value): + def host(self, value: str) -> None: """Fix base path.""" self._base_path = value self.server_index = None diff --git a/services/mongodbflex/src/stackit/mongodbflex/exceptions.py b/services/mongodbflex/src/stackit/mongodbflex/exceptions.py index 15ea88ee..4c4dcdec 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/exceptions.py +++ b/services/mongodbflex/src/stackit/mongodbflex/exceptions.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from typing import Any, Optional @@ -152,6 +152,13 @@ def from_response( if http_resp.status == 404: raise NotFoundException(http_resp=http_resp, body=body, data=data) + # Added new conditions for 409 and 422 + if http_resp.status == 409: + raise ConflictException(http_resp=http_resp, body=body, data=data) + + if http_resp.status == 422: + raise UnprocessableEntityException(http_resp=http_resp, body=body, data=data) + if 500 <= http_resp.status <= 599: raise ServiceException(http_resp=http_resp, body=body, data=data) raise ApiException(http_resp=http_resp, body=body, data=data) @@ -188,6 +195,18 @@ class ServiceException(ApiException): pass +class ConflictException(ApiException): + """Exception for HTTP 409 Conflict.""" + + pass + + +class UnprocessableEntityException(ApiException): + """Exception for HTTP 422 Unprocessable Entity.""" + + pass + + def render_path(path_to_item): """Returns a string representation of a path""" result = "" diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/__init__.py b/services/mongodbflex/src/stackit/mongodbflex/models/__init__.py index 6bccfe3d..cbf18326 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/__init__.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/__init__.py @@ -6,12 +6,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 # import models into model package @@ -28,15 +28,7 @@ from stackit.mongodbflex.models.error import Error from stackit.mongodbflex.models.flavor import Flavor from stackit.mongodbflex.models.get_backup_response import GetBackupResponse -from stackit.mongodbflex.models.get_instance_response import GetInstanceResponse from stackit.mongodbflex.models.get_user_response import GetUserResponse -from stackit.mongodbflex.models.handlers_infra_flavor import HandlersInfraFlavor -from stackit.mongodbflex.models.handlers_infra_get_flavors_response import ( - HandlersInfraGetFlavorsResponse, -) -from stackit.mongodbflex.models.handlers_instances_get_instance_response import ( - HandlersInstancesGetInstanceResponse, -) from stackit.mongodbflex.models.handlers_instances_slow_queries_response import ( HandlersInstancesSlowQueriesResponse, ) @@ -46,7 +38,9 @@ from stackit.mongodbflex.models.host import Host from stackit.mongodbflex.models.host_metric import HostMetric from stackit.mongodbflex.models.instance import Instance +from stackit.mongodbflex.models.instance_flavor import InstanceFlavor from stackit.mongodbflex.models.instance_list_instance import InstanceListInstance +from stackit.mongodbflex.models.instance_response import InstanceResponse from stackit.mongodbflex.models.instance_response_user import InstanceResponseUser from stackit.mongodbflex.models.list_backups_response import ListBackupsResponse from stackit.mongodbflex.models.list_flavors_response import ListFlavorsResponse diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/acl.py b/services/mongodbflex/src/stackit/mongodbflex/models/acl.py index fd76b039..69b633d4 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/acl.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/acl.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class ACL(BaseModel): """ ACL - """ + """ # noqa: E501 items: Optional[List[StrictStr]] = None __properties: ClassVar[List[str]] = ["items"] diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/backup.py b/services/mongodbflex/src/stackit/mongodbflex/models/backup.py index 900036d7..52823957 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/backup.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/backup.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class Backup(BaseModel): """ Backup - """ + """ # noqa: E501 end_time: Optional[StrictStr] = Field(default=None, alias="endTime") error: Optional[StrictStr] = None diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/backup_schedule.py b/services/mongodbflex/src/stackit/mongodbflex/models/backup_schedule.py index 93a671d1..6fa3ad66 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/backup_schedule.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/backup_schedule.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class BackupSchedule(BaseModel): """ BackupSchedule - """ + """ # noqa: E501 backup_schedule: Optional[StrictStr] = Field(default=None, alias="backupSchedule") daily_snapshot_retention_days: Optional[StrictInt] = Field(default=None, alias="dailySnapshotRetentionDays") diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/clone_instance_payload.py b/services/mongodbflex/src/stackit/mongodbflex/models/clone_instance_payload.py index bf2560b2..3d980322 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/clone_instance_payload.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/clone_instance_payload.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class CloneInstancePayload(BaseModel): """ CloneInstancePayload - """ + """ # noqa: E501 instance_id: StrictStr = Field(alias="instanceId") timestamp: Optional[StrictStr] = None diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/clone_instance_response.py b/services/mongodbflex/src/stackit/mongodbflex/models/clone_instance_response.py index 2b19e095..dd17da38 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/clone_instance_response.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/clone_instance_response.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class CloneInstanceResponse(BaseModel): """ CloneInstanceResponse - """ + """ # noqa: E501 instance_id: Optional[StrictStr] = Field(default=None, alias="instanceId") __properties: ClassVar[List[str]] = ["instanceId"] diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/create_instance_payload.py b/services/mongodbflex/src/stackit/mongodbflex/models/create_instance_payload.py index dba81a9e..e7846d71 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/create_instance_payload.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/create_instance_payload.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -28,9 +28,11 @@ class CreateInstancePayload(BaseModel): """ CreateInstancePayload - """ + """ # noqa: E501 - acl: ACL + acl: ACL = Field( + description="ACL is the Access Control List defining the IP ranges allowed to connect to the database" + ) backup_schedule: StrictStr = Field(alias="backupSchedule") flavor_id: StrictStr = Field(alias="flavorId") labels: Optional[Dict[str, StrictStr]] = Field(default=None, description="Labels field is not certain/clear") diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/create_instance_response.py b/services/mongodbflex/src/stackit/mongodbflex/models/create_instance_response.py index 81d456e5..6a68772f 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/create_instance_response.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/create_instance_response.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class CreateInstanceResponse(BaseModel): """ CreateInstanceResponse - """ + """ # noqa: E501 id: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["id"] diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/create_user_payload.py b/services/mongodbflex/src/stackit/mongodbflex/models/create_user_payload.py index 4735745a..6b9f0f1a 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/create_user_payload.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/create_user_payload.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class CreateUserPayload(BaseModel): """ CreateUserPayload - """ + """ # noqa: E501 database: StrictStr roles: List[StrictStr] diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/create_user_response.py b/services/mongodbflex/src/stackit/mongodbflex/models/create_user_response.py index 70807043..207b9f66 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/create_user_response.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/create_user_response.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class CreateUserResponse(BaseModel): """ CreateUserResponse - """ + """ # noqa: E501 item: Optional[User] = None __properties: ClassVar[List[str]] = ["item"] diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/data_point.py b/services/mongodbflex/src/stackit/mongodbflex/models/data_point.py index c01ea2db..8d49b263 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/data_point.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/data_point.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class DataPoint(BaseModel): """ DataPoint - """ + """ # noqa: E501 timestamp: Optional[StrictStr] = None value: Optional[Union[StrictFloat, StrictInt]] = None diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/error.py b/services/mongodbflex/src/stackit/mongodbflex/models/error.py index b5c7a2b1..ec652464 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/error.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/error.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class Error(BaseModel): """ Error - """ + """ # noqa: E501 code: Optional[StrictInt] = None fields: Optional[Dict[str, List[StrictStr]]] = None diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/flavor.py b/services/mongodbflex/src/stackit/mongodbflex/models/flavor.py index 128fbe89..81b637ed 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/flavor.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/flavor.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class Flavor(BaseModel): """ Flavor - """ + """ # noqa: E501 cpu: Optional[StrictInt] = None description: Optional[StrictStr] = None diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/get_backup_response.py b/services/mongodbflex/src/stackit/mongodbflex/models/get_backup_response.py index d7ad9884..afe68046 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/get_backup_response.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/get_backup_response.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class GetBackupResponse(BaseModel): """ GetBackupResponse - """ + """ # noqa: E501 item: Optional[Backup] = None __properties: ClassVar[List[str]] = ["item"] diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/get_user_response.py b/services/mongodbflex/src/stackit/mongodbflex/models/get_user_response.py index 214c707f..02bfedb5 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/get_user_response.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/get_user_response.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class GetUserResponse(BaseModel): """ GetUserResponse - """ + """ # noqa: E501 item: Optional[InstanceResponseUser] = None __properties: ClassVar[List[str]] = ["item"] diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/handlers_instances_slow_queries_response.py b/services/mongodbflex/src/stackit/mongodbflex/models/handlers_instances_slow_queries_response.py index 3131c5a1..4e7014b1 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/handlers_instances_slow_queries_response.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/handlers_instances_slow_queries_response.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class HandlersInstancesSlowQueriesResponse(BaseModel): """ HandlersInstancesSlowQueriesResponse - """ + """ # noqa: E501 slow_queries: Optional[List[SlowQuery]] = Field( default=None, diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/handlers_instances_suggested_indexes_response.py b/services/mongodbflex/src/stackit/mongodbflex/models/handlers_instances_suggested_indexes_response.py index d767ea53..27355987 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/handlers_instances_suggested_indexes_response.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/handlers_instances_suggested_indexes_response.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -28,7 +28,7 @@ class HandlersInstancesSuggestedIndexesResponse(BaseModel): """ HandlersInstancesSuggestedIndexesResponse - """ + """ # noqa: E501 shapes: Optional[List[Shape]] = Field( default=None, diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/host.py b/services/mongodbflex/src/stackit/mongodbflex/models/host.py index 874a169b..aa76dbbf 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/host.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/host.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class Host(BaseModel): """ Host - """ + """ # noqa: E501 host_metrics: Optional[List[HostMetric]] = Field(default=None, alias="hostMetrics") id: Optional[StrictStr] = None diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/host_metric.py b/services/mongodbflex/src/stackit/mongodbflex/models/host_metric.py index c8c8dd55..7c923f07 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/host_metric.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/host_metric.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class HostMetric(BaseModel): """ HostMetric - """ + """ # noqa: E501 datapoints: Optional[List[DataPoint]] = None name: Optional[StrictStr] = None diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/instance.py b/services/mongodbflex/src/stackit/mongodbflex/models/instance.py index b0a4d1cf..51ab4820 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/instance.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/instance.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -29,7 +29,7 @@ class Instance(BaseModel): """ Instance - """ + """ # noqa: E501 acl: Optional[ACL] = None backup_schedule: Optional[StrictStr] = Field(default=None, alias="backupSchedule") diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/handlers_infra_flavor.py b/services/mongodbflex/src/stackit/mongodbflex/models/instance_flavor.py similarity index 89% rename from services/mongodbflex/src/stackit/mongodbflex/models/handlers_infra_flavor.py rename to services/mongodbflex/src/stackit/mongodbflex/models/instance_flavor.py index ad71aeaf..91117dc5 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/handlers_infra_flavor.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/instance_flavor.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -22,10 +22,10 @@ from typing_extensions import Self -class HandlersInfraFlavor(BaseModel): - """ - HandlersInfraFlavor +class InstanceFlavor(BaseModel): """ + InstanceFlavor + """ # noqa: E501 categories: Optional[List[StrictStr]] = None cpu: Optional[StrictInt] = None @@ -51,7 +51,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of HandlersInfraFlavor from a JSON string""" + """Create an instance of InstanceFlavor from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -75,7 +75,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of HandlersInfraFlavor from a dict""" + """Create an instance of InstanceFlavor from a dict""" if obj is None: return None diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/instance_list_instance.py b/services/mongodbflex/src/stackit/mongodbflex/models/instance_list_instance.py index dfd495e2..507579a7 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/instance_list_instance.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/instance_list_instance.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class InstanceListInstance(BaseModel): """ InstanceListInstance - """ + """ # noqa: E501 id: Optional[StrictStr] = None name: Optional[StrictStr] = None diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/get_instance_response.py b/services/mongodbflex/src/stackit/mongodbflex/models/instance_response.py similarity index 88% rename from services/mongodbflex/src/stackit/mongodbflex/models/get_instance_response.py rename to services/mongodbflex/src/stackit/mongodbflex/models/instance_response.py index d4be3d49..5ed6ae04 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/get_instance_response.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/instance_response.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -24,10 +24,10 @@ from stackit.mongodbflex.models.instance import Instance -class GetInstanceResponse(BaseModel): - """ - GetInstanceResponse +class InstanceResponse(BaseModel): """ + InstanceResponse + """ # noqa: E501 item: Optional[Instance] = None __properties: ClassVar[List[str]] = ["item"] @@ -49,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetInstanceResponse from a JSON string""" + """Create an instance of InstanceResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -76,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetInstanceResponse from a dict""" + """Create an instance of InstanceResponse from a dict""" if obj is None: return None diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/instance_response_user.py b/services/mongodbflex/src/stackit/mongodbflex/models/instance_response_user.py index 8ec7b15f..a98436ad 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/instance_response_user.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/instance_response_user.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class InstanceResponseUser(BaseModel): """ InstanceResponseUser - """ + """ # noqa: E501 database: Optional[StrictStr] = None host: Optional[StrictStr] = None diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/list_backups_response.py b/services/mongodbflex/src/stackit/mongodbflex/models/list_backups_response.py index ba158364..e81fdc6c 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/list_backups_response.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/list_backups_response.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class ListBackupsResponse(BaseModel): """ ListBackupsResponse - """ + """ # noqa: E501 count: Optional[StrictInt] = None items: Optional[List[Backup]] = None diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/list_flavors_response.py b/services/mongodbflex/src/stackit/mongodbflex/models/list_flavors_response.py index 5d3333fb..ffb42d64 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/list_flavors_response.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/list_flavors_response.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -21,15 +21,15 @@ from pydantic import BaseModel, ConfigDict from typing_extensions import Self -from stackit.mongodbflex.models.handlers_infra_flavor import HandlersInfraFlavor +from stackit.mongodbflex.models.instance_flavor import InstanceFlavor class ListFlavorsResponse(BaseModel): """ ListFlavorsResponse - """ + """ # noqa: E501 - flavors: Optional[List[HandlersInfraFlavor]] = None + flavors: Optional[List[InstanceFlavor]] = None __properties: ClassVar[List[str]] = ["flavors"] model_config = ConfigDict( @@ -90,7 +90,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { "flavors": ( - [HandlersInfraFlavor.from_dict(_item) for _item in obj["flavors"]] + [InstanceFlavor.from_dict(_item) for _item in obj["flavors"]] if obj.get("flavors") is not None else None ) diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/list_instances_response.py b/services/mongodbflex/src/stackit/mongodbflex/models/list_instances_response.py index 96bfa0ef..f43a4fc2 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/list_instances_response.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/list_instances_response.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class ListInstancesResponse(BaseModel): """ ListInstancesResponse - """ + """ # noqa: E501 count: Optional[StrictInt] = None items: Optional[List[InstanceListInstance]] = None diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/list_metrics_response.py b/services/mongodbflex/src/stackit/mongodbflex/models/list_metrics_response.py index a9d0c0ec..222f54ba 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/list_metrics_response.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/list_metrics_response.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class ListMetricsResponse(BaseModel): """ ListMetricsResponse - """ + """ # noqa: E501 hosts: Optional[List[Host]] = None __properties: ClassVar[List[str]] = ["hosts"] diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/list_restore_jobs_response.py b/services/mongodbflex/src/stackit/mongodbflex/models/list_restore_jobs_response.py index 376cd503..af32667d 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/list_restore_jobs_response.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/list_restore_jobs_response.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class ListRestoreJobsResponse(BaseModel): """ ListRestoreJobsResponse - """ + """ # noqa: E501 items: Optional[List[RestoreInstanceStatus]] = None __properties: ClassVar[List[str]] = ["items"] diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/list_storages_response.py b/services/mongodbflex/src/stackit/mongodbflex/models/list_storages_response.py index 9b26e1c3..0a90804f 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/list_storages_response.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/list_storages_response.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class ListStoragesResponse(BaseModel): """ ListStoragesResponse - """ + """ # noqa: E501 storage_classes: Optional[List[StrictStr]] = Field(default=None, alias="storageClasses") storage_range: Optional[StorageRange] = Field(default=None, alias="storageRange") diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/list_user.py b/services/mongodbflex/src/stackit/mongodbflex/models/list_user.py index 2d20201e..4eeb4ebc 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/list_user.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/list_user.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class ListUser(BaseModel): """ ListUser - """ + """ # noqa: E501 id: Optional[StrictStr] = None username: Optional[StrictStr] = None diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/list_users_response.py b/services/mongodbflex/src/stackit/mongodbflex/models/list_users_response.py index 2c90b78b..d7723ce5 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/list_users_response.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/list_users_response.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class ListUsersResponse(BaseModel): """ ListUsersResponse - """ + """ # noqa: E501 count: Optional[StrictInt] = None items: Optional[List[ListUser]] = None diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/list_versions_response.py b/services/mongodbflex/src/stackit/mongodbflex/models/list_versions_response.py index ed4b45cb..df16cbca 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/list_versions_response.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/list_versions_response.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class ListVersionsResponse(BaseModel): """ ListVersionsResponse - """ + """ # noqa: E501 versions: Optional[List[StrictStr]] = None __properties: ClassVar[List[str]] = ["versions"] diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/mongodbatlas_operation.py b/services/mongodbflex/src/stackit/mongodbflex/models/mongodbatlas_operation.py index fd188528..e9b1adf2 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/mongodbatlas_operation.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/mongodbatlas_operation.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class MongodbatlasOperation(BaseModel): """ MongodbatlasOperation - """ + """ # noqa: E501 predicates: Optional[List[Dict[str, Any]]] = Field( default=None, description="Documents containing the search criteria used by the query." diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/mongodbatlas_stats.py b/services/mongodbflex/src/stackit/mongodbflex/models/mongodbatlas_stats.py index a8b61286..3be06ac0 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/mongodbatlas_stats.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/mongodbatlas_stats.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class MongodbatlasStats(BaseModel): """ MongodbatlasStats - """ + """ # noqa: E501 ms: Optional[Union[StrictFloat, StrictInt]] = Field( default=None, description="Duration in milliseconds of the query." diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/partial_update_instance_payload.py b/services/mongodbflex/src/stackit/mongodbflex/models/partial_update_instance_payload.py index 96beae0a..60ad4ea3 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/partial_update_instance_payload.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/partial_update_instance_payload.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -28,7 +28,7 @@ class PartialUpdateInstancePayload(BaseModel): """ PartialUpdateInstancePayload - """ + """ # noqa: E501 acl: Optional[ACL] = None backup_schedule: Optional[StrictStr] = Field(default=None, alias="backupSchedule") diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/partial_update_user_payload.py b/services/mongodbflex/src/stackit/mongodbflex/models/partial_update_user_payload.py index 6e136561..48b79fdf 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/partial_update_user_payload.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/partial_update_user_payload.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class PartialUpdateUserPayload(BaseModel): """ PartialUpdateUserPayload - """ + """ # noqa: E501 database: Optional[StrictStr] = None roles: Optional[List[StrictStr]] = None diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/restore_instance_payload.py b/services/mongodbflex/src/stackit/mongodbflex/models/restore_instance_payload.py index 9611c997..e5df7c65 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/restore_instance_payload.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/restore_instance_payload.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class RestoreInstancePayload(BaseModel): """ RestoreInstancePayload - """ + """ # noqa: E501 backup_id: StrictStr = Field(alias="backupId") instance_id: StrictStr = Field(alias="instanceId") diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/restore_instance_response.py b/services/mongodbflex/src/stackit/mongodbflex/models/restore_instance_response.py index 14b21d82..c1189c7a 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/restore_instance_response.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/restore_instance_response.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class RestoreInstanceResponse(BaseModel): """ RestoreInstanceResponse - """ + """ # noqa: E501 item: Optional[RestoreInstanceStatus] = None __properties: ClassVar[List[str]] = ["item"] diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/restore_instance_status.py b/services/mongodbflex/src/stackit/mongodbflex/models/restore_instance_status.py index 67ccf118..0ac67b28 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/restore_instance_status.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/restore_instance_status.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class RestoreInstanceStatus(BaseModel): """ RestoreInstanceStatus - """ + """ # noqa: E501 backup_id: Optional[StrictStr] = Field(default=None, alias="backupID") var_date: Optional[StrictStr] = Field(default=None, alias="date") diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/shape.py b/services/mongodbflex/src/stackit/mongodbflex/models/shape.py index bc3b4fcd..34838495 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/shape.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/shape.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class Shape(BaseModel): """ Shape - """ + """ # noqa: E501 avg_ms: Optional[Union[StrictFloat, StrictInt]] = Field( default=None, diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/slow_query.py b/services/mongodbflex/src/stackit/mongodbflex/models/slow_query.py index 9d66f328..d24ec22d 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/slow_query.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/slow_query.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class SlowQuery(BaseModel): """ SlowQuery - """ + """ # noqa: E501 line: Optional[StrictStr] = Field(default=None, description="The raw log line pertaining to the slow query.") namespace: Optional[StrictStr] = Field(default=None, description="The namespace in which the slow query ran.") diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/storage.py b/services/mongodbflex/src/stackit/mongodbflex/models/storage.py index b128d6d7..5f01b0ab 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/storage.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/storage.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class Storage(BaseModel): """ Storage - """ + """ # noqa: E501 var_class: Optional[StrictStr] = Field(default=None, alias="class") size: Optional[StrictInt] = None diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/storage_range.py b/services/mongodbflex/src/stackit/mongodbflex/models/storage_range.py index 03ca8ac1..2d7fbaa3 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/storage_range.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/storage_range.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class StorageRange(BaseModel): """ StorageRange - """ + """ # noqa: E501 max: Optional[StrictInt] = None min: Optional[StrictInt] = None diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/suggested_index.py b/services/mongodbflex/src/stackit/mongodbflex/models/suggested_index.py index f3c5bfc8..b8c8883d 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/suggested_index.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/suggested_index.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class SuggestedIndex(BaseModel): """ SuggestedIndex - """ + """ # noqa: E501 id: Optional[StrictStr] = Field(default=None, description="Unique id for this suggested index.") impact: Optional[List[StrictStr]] = Field( diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/update_backup_schedule_payload.py b/services/mongodbflex/src/stackit/mongodbflex/models/update_backup_schedule_payload.py index 01855bd0..eae84e23 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/update_backup_schedule_payload.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/update_backup_schedule_payload.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class UpdateBackupSchedulePayload(BaseModel): """ UpdateBackupSchedulePayload - """ + """ # noqa: E501 backup_schedule: Optional[StrictStr] = Field(default=None, alias="backupSchedule") daily_snapshot_retention_days: Optional[StrictInt] = Field(default=None, alias="dailySnapshotRetentionDays") diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/update_instance_payload.py b/services/mongodbflex/src/stackit/mongodbflex/models/update_instance_payload.py index 92f657bc..7477585b 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/update_instance_payload.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/update_instance_payload.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -28,7 +28,7 @@ class UpdateInstancePayload(BaseModel): """ UpdateInstancePayload - """ + """ # noqa: E501 acl: ACL backup_schedule: StrictStr = Field(alias="backupSchedule") diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/update_instance_response.py b/services/mongodbflex/src/stackit/mongodbflex/models/update_instance_response.py index 8bc2a7d6..e6423082 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/update_instance_response.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/update_instance_response.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class UpdateInstanceResponse(BaseModel): """ UpdateInstanceResponse - """ + """ # noqa: E501 item: Optional[Instance] = None __properties: ClassVar[List[str]] = ["item"] diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/update_user_payload.py b/services/mongodbflex/src/stackit/mongodbflex/models/update_user_payload.py index d01aa979..fd57ef89 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/update_user_payload.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/update_user_payload.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class UpdateUserPayload(BaseModel): """ UpdateUserPayload - """ + """ # noqa: E501 database: StrictStr roles: List[StrictStr] diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/user.py b/services/mongodbflex/src/stackit/mongodbflex/models/user.py index f34eca78..98aa0a57 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/user.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/user.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class User(BaseModel): """ User - """ + """ # noqa: E501 database: Optional[StrictStr] = None host: Optional[StrictStr] = None diff --git a/services/mongodbflex/src/stackit/mongodbflex/rest.py b/services/mongodbflex/src/stackit/mongodbflex/rest.py index c5559b93..a8bfd49a 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/rest.py +++ b/services/mongodbflex/src/stackit/mongodbflex/rest.py @@ -5,12 +5,12 @@ This is the documentation for the STACKIT MongoDB Flex Service API - The version of the OpenAPI document: 1.0.0 + The version of the OpenAPI document: 2.0.0 Contact: support@stackit.cloud Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 import io import json @@ -125,7 +125,7 @@ def request(self, method, url, headers=None, body=None, post_params=None, _reque data=body, headers=headers, ) - elif headers["Content-Type"] == "text/plain" and isinstance(body, bool): + elif headers["Content-Type"].startswith("text/") and isinstance(body, bool): request_body = "true" if body else "false" r = self.session.request(method, url, data=request_body, headers=headers) else: diff --git a/services/observability/CHANGELOG.md b/services/observability/CHANGELOG.md index a994235a..2c304c68 100644 --- a/services/observability/CHANGELOG.md +++ b/services/observability/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.6.0 +- **Feature:** Add new methods `get_logs_configs()`, `update_logs_configs()`, `get_traces_configs()`, `update_traces_configs()`, `get_metrics_storage_retention()`, `update_metrics_storage_retention()`, `get_scrape_config()`, `update_scrape_config()`, `list_acl()`, `update_acl()`, `list_alert_config_receivers()`, `list_alert_config_routes()`, `update_alert_config_receiver()`, `update_alert_config_route()`, `list_alertgroups()`, `list_alertrules()`, `list_credentials()`, `list_instances()` +- **Feature:** Add new models `LogsConfig`, `LogsConfigResponse`, `TraceConfig`, `TracesConfigResponse`, `UpdateLogsConfigsPayload`, `UpdateTracesConfigsPayload` + ## v0.5.1 - **Internal:** Improve deserializing and error types diff --git a/services/observability/pyproject.toml b/services/observability/pyproject.toml index e5829008..c5ebcaef 100644 --- a/services/observability/pyproject.toml +++ b/services/observability/pyproject.toml @@ -3,7 +3,7 @@ name = "stackit-observability" [tool.poetry] name = "stackit-observability" -version = "v0.5.1" +version = "v0.6.0" authors = [ "STACKIT Developer Tools ", ] diff --git a/services/observability/src/stackit/observability/__init__.py b/services/observability/src/stackit/observability/__init__.py index 2c06e2ca..ed4a582d 100644 --- a/services/observability/src/stackit/observability/__init__.py +++ b/services/observability/src/stackit/observability/__init__.py @@ -81,6 +81,8 @@ "ListCredentialsResponse", "ListInstancesResponse", "ListScrapeConfigsResponse", + "LogsConfig", + "LogsConfigResponse", "Message", "MetricsRelabelConfig", "ModelGlobal", @@ -99,6 +101,8 @@ "ServiceKeysList", "StaticConfigs", "TLSConfig", + "TraceConfig", + "TracesConfigResponse", "UpdateACLPayload", "UpdateAlertConfigReceiverPayload", "UpdateAlertConfigRoutePayload", @@ -116,9 +120,11 @@ "UpdateGrafanaConfigsPayloadGenericOauth", "UpdateInstancePayload", "UpdateLogsAlertgroupPayload", + "UpdateLogsConfigsPayload", "UpdateMetricsStorageRetentionPayload", "UpdateScrapeConfigPayload", "UpdateScrapeConfigPayloadStaticConfigsInner", + "UpdateTracesConfigsPayload", "WebHook", ] @@ -269,6 +275,10 @@ from stackit.observability.models.list_scrape_configs_response import ( ListScrapeConfigsResponse as ListScrapeConfigsResponse, ) +from stackit.observability.models.logs_config import LogsConfig as LogsConfig +from stackit.observability.models.logs_config_response import ( + LogsConfigResponse as LogsConfigResponse, +) from stackit.observability.models.message import Message as Message from stackit.observability.models.metrics_relabel_config import ( MetricsRelabelConfig as MetricsRelabelConfig, @@ -301,6 +311,10 @@ ) from stackit.observability.models.static_configs import StaticConfigs as StaticConfigs from stackit.observability.models.tls_config import TLSConfig as TLSConfig +from stackit.observability.models.trace_config import TraceConfig as TraceConfig +from stackit.observability.models.traces_config_response import ( + TracesConfigResponse as TracesConfigResponse, +) from stackit.observability.models.update_acl_payload import ( UpdateACLPayload as UpdateACLPayload, ) @@ -352,6 +366,9 @@ from stackit.observability.models.update_logs_alertgroup_payload import ( UpdateLogsAlertgroupPayload as UpdateLogsAlertgroupPayload, ) +from stackit.observability.models.update_logs_configs_payload import ( + UpdateLogsConfigsPayload as UpdateLogsConfigsPayload, +) from stackit.observability.models.update_metrics_storage_retention_payload import ( UpdateMetricsStorageRetentionPayload as UpdateMetricsStorageRetentionPayload, ) @@ -361,4 +378,7 @@ from stackit.observability.models.update_scrape_config_payload_static_configs_inner import ( UpdateScrapeConfigPayloadStaticConfigsInner as UpdateScrapeConfigPayloadStaticConfigsInner, ) +from stackit.observability.models.update_traces_configs_payload import ( + UpdateTracesConfigsPayload as UpdateTracesConfigsPayload, +) from stackit.observability.models.web_hook import WebHook as WebHook diff --git a/services/observability/src/stackit/observability/api/default_api.py b/services/observability/src/stackit/observability/api/default_api.py index 8ca22fd8..2752f1dd 100644 --- a/services/observability/src/stackit/observability/api/default_api.py +++ b/services/observability/src/stackit/observability/api/default_api.py @@ -82,10 +82,12 @@ from stackit.observability.models.list_scrape_configs_response import ( ListScrapeConfigsResponse, ) +from stackit.observability.models.logs_config_response import LogsConfigResponse from stackit.observability.models.message import Message from stackit.observability.models.plans_response import PlansResponse from stackit.observability.models.receiver import Receiver from stackit.observability.models.scrape_configs_response import ScrapeConfigsResponse +from stackit.observability.models.traces_config_response import TracesConfigResponse from stackit.observability.models.update_acl_payload import UpdateACLPayload from stackit.observability.models.update_alert_config_receiver_payload import ( UpdateAlertConfigReceiverPayload, @@ -118,12 +120,18 @@ from stackit.observability.models.update_logs_alertgroup_payload import ( UpdateLogsAlertgroupPayload, ) +from stackit.observability.models.update_logs_configs_payload import ( + UpdateLogsConfigsPayload, +) from stackit.observability.models.update_metrics_storage_retention_payload import ( UpdateMetricsStorageRetentionPayload, ) from stackit.observability.models.update_scrape_config_payload import ( UpdateScrapeConfigPayload, ) +from stackit.observability.models.update_traces_configs_payload import ( + UpdateTracesConfigsPayload, +) from stackit.observability.rest import RESTResponseType @@ -7219,7 +7227,7 @@ def _get_logs_alertgroup_serialize( ) @validate_call - def get_metrics_storage_retention( + def get_logs_configs( self, instance_id: StrictStr, project_id: StrictStr, @@ -7232,10 +7240,10 @@ def get_metrics_storage_retention( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetMetricsStorageRetentionResponse: - """get_metrics_storage_retention + ) -> LogsConfigResponse: + """get_logs_configs - Get metric storage retention time. + Get logs configuration. :param instance_id: (required) :type instance_id: str @@ -7263,7 +7271,7 @@ def get_metrics_storage_retention( :return: Returns the result object. """ # noqa: E501 - _param = self._get_metrics_storage_retention_serialize( + _param = self._get_logs_configs_serialize( instance_id=instance_id, project_id=project_id, _request_auth=_request_auth, @@ -7273,7 +7281,7 @@ def get_metrics_storage_retention( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetMetricsStorageRetentionResponse", + "200": "LogsConfigResponse", "403": "PermissionDenied", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -7284,7 +7292,7 @@ def get_metrics_storage_retention( ).data @validate_call - def get_metrics_storage_retention_with_http_info( + def get_logs_configs_with_http_info( self, instance_id: StrictStr, project_id: StrictStr, @@ -7297,10 +7305,10 @@ def get_metrics_storage_retention_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetMetricsStorageRetentionResponse]: - """get_metrics_storage_retention + ) -> ApiResponse[LogsConfigResponse]: + """get_logs_configs - Get metric storage retention time. + Get logs configuration. :param instance_id: (required) :type instance_id: str @@ -7328,7 +7336,7 @@ def get_metrics_storage_retention_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_metrics_storage_retention_serialize( + _param = self._get_logs_configs_serialize( instance_id=instance_id, project_id=project_id, _request_auth=_request_auth, @@ -7338,7 +7346,7 @@ def get_metrics_storage_retention_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetMetricsStorageRetentionResponse", + "200": "LogsConfigResponse", "403": "PermissionDenied", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -7349,7 +7357,7 @@ def get_metrics_storage_retention_with_http_info( ) @validate_call - def get_metrics_storage_retention_without_preload_content( + def get_logs_configs_without_preload_content( self, instance_id: StrictStr, project_id: StrictStr, @@ -7363,9 +7371,9 @@ def get_metrics_storage_retention_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_metrics_storage_retention + """get_logs_configs - Get metric storage retention time. + Get logs configuration. :param instance_id: (required) :type instance_id: str @@ -7393,7 +7401,7 @@ def get_metrics_storage_retention_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_metrics_storage_retention_serialize( + _param = self._get_logs_configs_serialize( instance_id=instance_id, project_id=project_id, _request_auth=_request_auth, @@ -7403,13 +7411,13 @@ def get_metrics_storage_retention_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetMetricsStorageRetentionResponse", + "200": "LogsConfigResponse", "403": "PermissionDenied", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) return response_data.response - def _get_metrics_storage_retention_serialize( + def _get_logs_configs_serialize( self, instance_id, project_id, @@ -7449,7 +7457,7 @@ def _get_metrics_storage_retention_serialize( return self.api_client.param_serialize( method="GET", - resource_path="/v1/projects/{projectId}/instances/{instanceId}/metrics-storage-retentions", + resource_path="/v1/projects/{projectId}/instances/{instanceId}/logs-configs", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -7463,10 +7471,9 @@ def _get_metrics_storage_retention_serialize( ) @validate_call - def get_scrape_config( + def get_metrics_storage_retention( self, instance_id: StrictStr, - job_name: StrictStr, project_id: StrictStr, _request_timeout: Union[ None, @@ -7477,15 +7484,13 @@ def get_scrape_config( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetScrapeConfigResponse: - """get_scrape_config + ) -> GetMetricsStorageRetentionResponse: + """get_metrics_storage_retention - Get scrape config. + Get metric storage retention time. :param instance_id: (required) :type instance_id: str - :param job_name: (required) - :type job_name: str :param project_id: (required) :type project_id: str :param _request_timeout: timeout setting for this request. If one @@ -7510,9 +7515,8 @@ def get_scrape_config( :return: Returns the result object. """ # noqa: E501 - _param = self._get_scrape_config_serialize( + _param = self._get_metrics_storage_retention_serialize( instance_id=instance_id, - job_name=job_name, project_id=project_id, _request_auth=_request_auth, _content_type=_content_type, @@ -7521,7 +7525,7 @@ def get_scrape_config( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetScrapeConfigResponse", + "200": "GetMetricsStorageRetentionResponse", "403": "PermissionDenied", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -7532,10 +7536,9 @@ def get_scrape_config( ).data @validate_call - def get_scrape_config_with_http_info( + def get_metrics_storage_retention_with_http_info( self, instance_id: StrictStr, - job_name: StrictStr, project_id: StrictStr, _request_timeout: Union[ None, @@ -7546,15 +7549,13 @@ def get_scrape_config_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetScrapeConfigResponse]: - """get_scrape_config + ) -> ApiResponse[GetMetricsStorageRetentionResponse]: + """get_metrics_storage_retention - Get scrape config. + Get metric storage retention time. :param instance_id: (required) :type instance_id: str - :param job_name: (required) - :type job_name: str :param project_id: (required) :type project_id: str :param _request_timeout: timeout setting for this request. If one @@ -7579,9 +7580,8 @@ def get_scrape_config_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_scrape_config_serialize( + _param = self._get_metrics_storage_retention_serialize( instance_id=instance_id, - job_name=job_name, project_id=project_id, _request_auth=_request_auth, _content_type=_content_type, @@ -7590,7 +7590,7 @@ def get_scrape_config_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetScrapeConfigResponse", + "200": "GetMetricsStorageRetentionResponse", "403": "PermissionDenied", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -7601,10 +7601,9 @@ def get_scrape_config_with_http_info( ) @validate_call - def get_scrape_config_without_preload_content( + def get_metrics_storage_retention_without_preload_content( self, instance_id: StrictStr, - job_name: StrictStr, project_id: StrictStr, _request_timeout: Union[ None, @@ -7616,14 +7615,12 @@ def get_scrape_config_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_scrape_config + """get_metrics_storage_retention - Get scrape config. + Get metric storage retention time. :param instance_id: (required) :type instance_id: str - :param job_name: (required) - :type job_name: str :param project_id: (required) :type project_id: str :param _request_timeout: timeout setting for this request. If one @@ -7648,9 +7645,8 @@ def get_scrape_config_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_scrape_config_serialize( + _param = self._get_metrics_storage_retention_serialize( instance_id=instance_id, - job_name=job_name, project_id=project_id, _request_auth=_request_auth, _content_type=_content_type, @@ -7659,16 +7655,15 @@ def get_scrape_config_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GetScrapeConfigResponse", + "200": "GetMetricsStorageRetentionResponse", "403": "PermissionDenied", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) return response_data.response - def _get_scrape_config_serialize( + def _get_metrics_storage_retention_serialize( self, instance_id, - job_name, project_id, _request_auth, _content_type, @@ -7690,8 +7685,6 @@ def _get_scrape_config_serialize( # process the path parameters if instance_id is not None: _path_params["instanceId"] = instance_id - if job_name is not None: - _path_params["jobName"] = job_name if project_id is not None: _path_params["projectId"] = project_id # process the query parameters @@ -7708,7 +7701,7 @@ def _get_scrape_config_serialize( return self.api_client.param_serialize( method="GET", - resource_path="/v1/projects/{projectId}/instances/{instanceId}/scrapeconfigs/{jobName}", + resource_path="/v1/projects/{projectId}/instances/{instanceId}/metrics-storage-retentions", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -7722,9 +7715,10 @@ def _get_scrape_config_serialize( ) @validate_call - def list_acl( + def get_scrape_config( self, instance_id: StrictStr, + job_name: StrictStr, project_id: StrictStr, _request_timeout: Union[ None, @@ -7735,13 +7729,15 @@ def list_acl( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ListACLResponse: - """list_acl + ) -> GetScrapeConfigResponse: + """get_scrape_config - Get acl for instance. + Get scrape config. :param instance_id: (required) :type instance_id: str + :param job_name: (required) + :type job_name: str :param project_id: (required) :type project_id: str :param _request_timeout: timeout setting for this request. If one @@ -7766,8 +7762,9 @@ def list_acl( :return: Returns the result object. """ # noqa: E501 - _param = self._list_acl_serialize( + _param = self._get_scrape_config_serialize( instance_id=instance_id, + job_name=job_name, project_id=project_id, _request_auth=_request_auth, _content_type=_content_type, @@ -7776,7 +7773,7 @@ def list_acl( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListACLResponse", + "200": "GetScrapeConfigResponse", "403": "PermissionDenied", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -7787,9 +7784,10 @@ def list_acl( ).data @validate_call - def list_acl_with_http_info( + def get_scrape_config_with_http_info( self, instance_id: StrictStr, + job_name: StrictStr, project_id: StrictStr, _request_timeout: Union[ None, @@ -7800,13 +7798,15 @@ def list_acl_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ListACLResponse]: - """list_acl + ) -> ApiResponse[GetScrapeConfigResponse]: + """get_scrape_config - Get acl for instance. + Get scrape config. :param instance_id: (required) :type instance_id: str + :param job_name: (required) + :type job_name: str :param project_id: (required) :type project_id: str :param _request_timeout: timeout setting for this request. If one @@ -7831,8 +7831,9 @@ def list_acl_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_acl_serialize( + _param = self._get_scrape_config_serialize( instance_id=instance_id, + job_name=job_name, project_id=project_id, _request_auth=_request_auth, _content_type=_content_type, @@ -7841,7 +7842,7 @@ def list_acl_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListACLResponse", + "200": "GetScrapeConfigResponse", "403": "PermissionDenied", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -7852,9 +7853,10 @@ def list_acl_with_http_info( ) @validate_call - def list_acl_without_preload_content( + def get_scrape_config_without_preload_content( self, instance_id: StrictStr, + job_name: StrictStr, project_id: StrictStr, _request_timeout: Union[ None, @@ -7866,12 +7868,14 @@ def list_acl_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """list_acl + """get_scrape_config - Get acl for instance. + Get scrape config. :param instance_id: (required) :type instance_id: str + :param job_name: (required) + :type job_name: str :param project_id: (required) :type project_id: str :param _request_timeout: timeout setting for this request. If one @@ -7896,8 +7900,9 @@ def list_acl_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._list_acl_serialize( + _param = self._get_scrape_config_serialize( instance_id=instance_id, + job_name=job_name, project_id=project_id, _request_auth=_request_auth, _content_type=_content_type, @@ -7906,15 +7911,16 @@ def list_acl_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListACLResponse", + "200": "GetScrapeConfigResponse", "403": "PermissionDenied", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) return response_data.response - def _list_acl_serialize( + def _get_scrape_config_serialize( self, instance_id, + job_name, project_id, _request_auth, _content_type, @@ -7936,6 +7942,8 @@ def _list_acl_serialize( # process the path parameters if instance_id is not None: _path_params["instanceId"] = instance_id + if job_name is not None: + _path_params["jobName"] = job_name if project_id is not None: _path_params["projectId"] = project_id # process the query parameters @@ -7952,7 +7960,7 @@ def _list_acl_serialize( return self.api_client.param_serialize( method="GET", - resource_path="/v1/projects/{projectId}/instances/{instanceId}/acl", + resource_path="/v1/projects/{projectId}/instances/{instanceId}/scrapeconfigs/{jobName}", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -7966,7 +7974,7 @@ def _list_acl_serialize( ) @validate_call - def list_alert_config_receivers( + def get_traces_configs( self, instance_id: StrictStr, project_id: StrictStr, @@ -7979,10 +7987,10 @@ def list_alert_config_receivers( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AlertConfigReceiversResponse: - """list_alert_config_receivers + ) -> TracesConfigResponse: + """get_traces_configs - Get alert config receivers. + Get traces config. :param instance_id: (required) :type instance_id: str @@ -8010,7 +8018,7 @@ def list_alert_config_receivers( :return: Returns the result object. """ # noqa: E501 - _param = self._list_alert_config_receivers_serialize( + _param = self._get_traces_configs_serialize( instance_id=instance_id, project_id=project_id, _request_auth=_request_auth, @@ -8020,7 +8028,7 @@ def list_alert_config_receivers( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "AlertConfigReceiversResponse", + "200": "TracesConfigResponse", "403": "PermissionDenied", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -8031,7 +8039,7 @@ def list_alert_config_receivers( ).data @validate_call - def list_alert_config_receivers_with_http_info( + def get_traces_configs_with_http_info( self, instance_id: StrictStr, project_id: StrictStr, @@ -8044,10 +8052,10 @@ def list_alert_config_receivers_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AlertConfigReceiversResponse]: - """list_alert_config_receivers + ) -> ApiResponse[TracesConfigResponse]: + """get_traces_configs - Get alert config receivers. + Get traces config. :param instance_id: (required) :type instance_id: str @@ -8075,7 +8083,7 @@ def list_alert_config_receivers_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_alert_config_receivers_serialize( + _param = self._get_traces_configs_serialize( instance_id=instance_id, project_id=project_id, _request_auth=_request_auth, @@ -8085,7 +8093,7 @@ def list_alert_config_receivers_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "AlertConfigReceiversResponse", + "200": "TracesConfigResponse", "403": "PermissionDenied", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -8096,7 +8104,7 @@ def list_alert_config_receivers_with_http_info( ) @validate_call - def list_alert_config_receivers_without_preload_content( + def get_traces_configs_without_preload_content( self, instance_id: StrictStr, project_id: StrictStr, @@ -8110,9 +8118,9 @@ def list_alert_config_receivers_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """list_alert_config_receivers + """get_traces_configs - Get alert config receivers. + Get traces config. :param instance_id: (required) :type instance_id: str @@ -8140,7 +8148,7 @@ def list_alert_config_receivers_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._list_alert_config_receivers_serialize( + _param = self._get_traces_configs_serialize( instance_id=instance_id, project_id=project_id, _request_auth=_request_auth, @@ -8150,13 +8158,13 @@ def list_alert_config_receivers_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "AlertConfigReceiversResponse", + "200": "TracesConfigResponse", "403": "PermissionDenied", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) return response_data.response - def _list_alert_config_receivers_serialize( + def _get_traces_configs_serialize( self, instance_id, project_id, @@ -8196,7 +8204,7 @@ def _list_alert_config_receivers_serialize( return self.api_client.param_serialize( method="GET", - resource_path="/v1/projects/{projectId}/instances/{instanceId}/alertconfigs/receivers", + resource_path="/v1/projects/{projectId}/instances/{instanceId}/traces-configs", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -8210,7 +8218,7 @@ def _list_alert_config_receivers_serialize( ) @validate_call - def list_alert_config_routes( + def list_acl( self, instance_id: StrictStr, project_id: StrictStr, @@ -8223,10 +8231,10 @@ def list_alert_config_routes( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AlertConfigRouteResponse: - """list_alert_config_routes + ) -> ListACLResponse: + """list_acl - Get alert config route. + Get acl for instance. :param instance_id: (required) :type instance_id: str @@ -8254,7 +8262,7 @@ def list_alert_config_routes( :return: Returns the result object. """ # noqa: E501 - _param = self._list_alert_config_routes_serialize( + _param = self._list_acl_serialize( instance_id=instance_id, project_id=project_id, _request_auth=_request_auth, @@ -8264,7 +8272,7 @@ def list_alert_config_routes( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "AlertConfigRouteResponse", + "200": "ListACLResponse", "403": "PermissionDenied", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -8275,7 +8283,7 @@ def list_alert_config_routes( ).data @validate_call - def list_alert_config_routes_with_http_info( + def list_acl_with_http_info( self, instance_id: StrictStr, project_id: StrictStr, @@ -8288,10 +8296,10 @@ def list_alert_config_routes_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AlertConfigRouteResponse]: - """list_alert_config_routes + ) -> ApiResponse[ListACLResponse]: + """list_acl - Get alert config route. + Get acl for instance. :param instance_id: (required) :type instance_id: str @@ -8319,7 +8327,7 @@ def list_alert_config_routes_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_alert_config_routes_serialize( + _param = self._list_acl_serialize( instance_id=instance_id, project_id=project_id, _request_auth=_request_auth, @@ -8329,7 +8337,7 @@ def list_alert_config_routes_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "AlertConfigRouteResponse", + "200": "ListACLResponse", "403": "PermissionDenied", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -8340,7 +8348,7 @@ def list_alert_config_routes_with_http_info( ) @validate_call - def list_alert_config_routes_without_preload_content( + def list_acl_without_preload_content( self, instance_id: StrictStr, project_id: StrictStr, @@ -8354,9 +8362,9 @@ def list_alert_config_routes_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """list_alert_config_routes + """list_acl - Get alert config route. + Get acl for instance. :param instance_id: (required) :type instance_id: str @@ -8384,7 +8392,7 @@ def list_alert_config_routes_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._list_alert_config_routes_serialize( + _param = self._list_acl_serialize( instance_id=instance_id, project_id=project_id, _request_auth=_request_auth, @@ -8394,13 +8402,13 @@ def list_alert_config_routes_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "AlertConfigRouteResponse", + "200": "ListACLResponse", "403": "PermissionDenied", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) return response_data.response - def _list_alert_config_routes_serialize( + def _list_acl_serialize( self, instance_id, project_id, @@ -8440,7 +8448,7 @@ def _list_alert_config_routes_serialize( return self.api_client.param_serialize( method="GET", - resource_path="/v1/projects/{projectId}/instances/{instanceId}/alertconfigs/routes", + resource_path="/v1/projects/{projectId}/instances/{instanceId}/acl", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -8454,7 +8462,7 @@ def _list_alert_config_routes_serialize( ) @validate_call - def list_alertgroups( + def list_alert_config_receivers( self, instance_id: StrictStr, project_id: StrictStr, @@ -8467,10 +8475,10 @@ def list_alertgroups( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AlertGroupsResponse: - """list_alertgroups + ) -> AlertConfigReceiversResponse: + """list_alert_config_receivers - Get alert groups. + Get alert config receivers. :param instance_id: (required) :type instance_id: str @@ -8498,7 +8506,7 @@ def list_alertgroups( :return: Returns the result object. """ # noqa: E501 - _param = self._list_alertgroups_serialize( + _param = self._list_alert_config_receivers_serialize( instance_id=instance_id, project_id=project_id, _request_auth=_request_auth, @@ -8508,8 +8516,7 @@ def list_alertgroups( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "AlertGroupsResponse", - "400": "Error", + "200": "AlertConfigReceiversResponse", "403": "PermissionDenied", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -8520,7 +8527,7 @@ def list_alertgroups( ).data @validate_call - def list_alertgroups_with_http_info( + def list_alert_config_receivers_with_http_info( self, instance_id: StrictStr, project_id: StrictStr, @@ -8533,10 +8540,10 @@ def list_alertgroups_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AlertGroupsResponse]: - """list_alertgroups + ) -> ApiResponse[AlertConfigReceiversResponse]: + """list_alert_config_receivers - Get alert groups. + Get alert config receivers. :param instance_id: (required) :type instance_id: str @@ -8564,7 +8571,7 @@ def list_alertgroups_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_alertgroups_serialize( + _param = self._list_alert_config_receivers_serialize( instance_id=instance_id, project_id=project_id, _request_auth=_request_auth, @@ -8574,8 +8581,7 @@ def list_alertgroups_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "AlertGroupsResponse", - "400": "Error", + "200": "AlertConfigReceiversResponse", "403": "PermissionDenied", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -8586,7 +8592,7 @@ def list_alertgroups_with_http_info( ) @validate_call - def list_alertgroups_without_preload_content( + def list_alert_config_receivers_without_preload_content( self, instance_id: StrictStr, project_id: StrictStr, @@ -8600,9 +8606,9 @@ def list_alertgroups_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """list_alertgroups + """list_alert_config_receivers - Get alert groups. + Get alert config receivers. :param instance_id: (required) :type instance_id: str @@ -8630,7 +8636,7 @@ def list_alertgroups_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._list_alertgroups_serialize( + _param = self._list_alert_config_receivers_serialize( instance_id=instance_id, project_id=project_id, _request_auth=_request_auth, @@ -8640,14 +8646,13 @@ def list_alertgroups_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "AlertGroupsResponse", - "400": "Error", + "200": "AlertConfigReceiversResponse", "403": "PermissionDenied", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) return response_data.response - def _list_alertgroups_serialize( + def _list_alert_config_receivers_serialize( self, instance_id, project_id, @@ -8687,7 +8692,7 @@ def _list_alertgroups_serialize( return self.api_client.param_serialize( method="GET", - resource_path="/v1/projects/{projectId}/instances/{instanceId}/alertgroups", + resource_path="/v1/projects/{projectId}/instances/{instanceId}/alertconfigs/receivers", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -8701,9 +8706,8 @@ def _list_alertgroups_serialize( ) @validate_call - def list_alertrules( + def list_alert_config_routes( self, - group_name: StrictStr, instance_id: StrictStr, project_id: StrictStr, _request_timeout: Union[ @@ -8715,13 +8719,11 @@ def list_alertrules( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AlertRulesResponse: - """list_alertrules + ) -> AlertConfigRouteResponse: + """list_alert_config_routes - Get alert rules. + Get alert config route. - :param group_name: (required) - :type group_name: str :param instance_id: (required) :type instance_id: str :param project_id: (required) @@ -8748,8 +8750,7 @@ def list_alertrules( :return: Returns the result object. """ # noqa: E501 - _param = self._list_alertrules_serialize( - group_name=group_name, + _param = self._list_alert_config_routes_serialize( instance_id=instance_id, project_id=project_id, _request_auth=_request_auth, @@ -8759,7 +8760,7 @@ def list_alertrules( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "AlertRulesResponse", + "200": "AlertConfigRouteResponse", "403": "PermissionDenied", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -8770,9 +8771,8 @@ def list_alertrules( ).data @validate_call - def list_alertrules_with_http_info( + def list_alert_config_routes_with_http_info( self, - group_name: StrictStr, instance_id: StrictStr, project_id: StrictStr, _request_timeout: Union[ @@ -8784,13 +8784,11 @@ def list_alertrules_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AlertRulesResponse]: - """list_alertrules + ) -> ApiResponse[AlertConfigRouteResponse]: + """list_alert_config_routes - Get alert rules. + Get alert config route. - :param group_name: (required) - :type group_name: str :param instance_id: (required) :type instance_id: str :param project_id: (required) @@ -8817,8 +8815,7 @@ def list_alertrules_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_alertrules_serialize( - group_name=group_name, + _param = self._list_alert_config_routes_serialize( instance_id=instance_id, project_id=project_id, _request_auth=_request_auth, @@ -8828,7 +8825,7 @@ def list_alertrules_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "AlertRulesResponse", + "200": "AlertConfigRouteResponse", "403": "PermissionDenied", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -8839,9 +8836,8 @@ def list_alertrules_with_http_info( ) @validate_call - def list_alertrules_without_preload_content( + def list_alert_config_routes_without_preload_content( self, - group_name: StrictStr, instance_id: StrictStr, project_id: StrictStr, _request_timeout: Union[ @@ -8854,12 +8850,10 @@ def list_alertrules_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """list_alertrules + """list_alert_config_routes - Get alert rules. + Get alert config route. - :param group_name: (required) - :type group_name: str :param instance_id: (required) :type instance_id: str :param project_id: (required) @@ -8886,8 +8880,7 @@ def list_alertrules_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._list_alertrules_serialize( - group_name=group_name, + _param = self._list_alert_config_routes_serialize( instance_id=instance_id, project_id=project_id, _request_auth=_request_auth, @@ -8897,15 +8890,14 @@ def list_alertrules_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "AlertRulesResponse", + "200": "AlertConfigRouteResponse", "403": "PermissionDenied", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) return response_data.response - def _list_alertrules_serialize( + def _list_alert_config_routes_serialize( self, - group_name, instance_id, project_id, _request_auth, @@ -8926,8 +8918,6 @@ def _list_alertrules_serialize( _body_params: Optional[bytes] = None # process the path parameters - if group_name is not None: - _path_params["groupName"] = group_name if instance_id is not None: _path_params["instanceId"] = instance_id if project_id is not None: @@ -8946,7 +8936,7 @@ def _list_alertrules_serialize( return self.api_client.param_serialize( method="GET", - resource_path="/v1/projects/{projectId}/instances/{instanceId}/alertgroups/{groupName}/alertrules", + resource_path="/v1/projects/{projectId}/instances/{instanceId}/alertconfigs/routes", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -8960,7 +8950,7 @@ def _list_alertrules_serialize( ) @validate_call - def list_credentials( + def list_alertgroups( self, instance_id: StrictStr, project_id: StrictStr, @@ -8973,10 +8963,10 @@ def list_credentials( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ListCredentialsResponse: - """list_credentials + ) -> AlertGroupsResponse: + """list_alertgroups - Get all technical user credentials. + Get alert groups. :param instance_id: (required) :type instance_id: str @@ -9004,7 +8994,7 @@ def list_credentials( :return: Returns the result object. """ # noqa: E501 - _param = self._list_credentials_serialize( + _param = self._list_alertgroups_serialize( instance_id=instance_id, project_id=project_id, _request_auth=_request_auth, @@ -9014,7 +9004,8 @@ def list_credentials( ) _response_types_map: Dict[str, Optional[str]] = { - "201": "ListCredentialsResponse", + "200": "AlertGroupsResponse", + "400": "Error", "403": "PermissionDenied", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -9025,7 +9016,7 @@ def list_credentials( ).data @validate_call - def list_credentials_with_http_info( + def list_alertgroups_with_http_info( self, instance_id: StrictStr, project_id: StrictStr, @@ -9038,10 +9029,10 @@ def list_credentials_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ListCredentialsResponse]: - """list_credentials + ) -> ApiResponse[AlertGroupsResponse]: + """list_alertgroups - Get all technical user credentials. + Get alert groups. :param instance_id: (required) :type instance_id: str @@ -9069,7 +9060,7 @@ def list_credentials_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_credentials_serialize( + _param = self._list_alertgroups_serialize( instance_id=instance_id, project_id=project_id, _request_auth=_request_auth, @@ -9079,7 +9070,8 @@ def list_credentials_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - "201": "ListCredentialsResponse", + "200": "AlertGroupsResponse", + "400": "Error", "403": "PermissionDenied", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -9090,7 +9082,7 @@ def list_credentials_with_http_info( ) @validate_call - def list_credentials_without_preload_content( + def list_alertgroups_without_preload_content( self, instance_id: StrictStr, project_id: StrictStr, @@ -9104,9 +9096,9 @@ def list_credentials_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """list_credentials + """list_alertgroups - Get all technical user credentials. + Get alert groups. :param instance_id: (required) :type instance_id: str @@ -9134,7 +9126,7 @@ def list_credentials_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._list_credentials_serialize( + _param = self._list_alertgroups_serialize( instance_id=instance_id, project_id=project_id, _request_auth=_request_auth, @@ -9144,13 +9136,14 @@ def list_credentials_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - "201": "ListCredentialsResponse", + "200": "AlertGroupsResponse", + "400": "Error", "403": "PermissionDenied", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) return response_data.response - def _list_credentials_serialize( + def _list_alertgroups_serialize( self, instance_id, project_id, @@ -9190,7 +9183,7 @@ def _list_credentials_serialize( return self.api_client.param_serialize( method="GET", - resource_path="/v1/projects/{projectId}/instances/{instanceId}/credentials", + resource_path="/v1/projects/{projectId}/instances/{instanceId}/alertgroups", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -9204,8 +9197,10 @@ def _list_credentials_serialize( ) @validate_call - def list_instances( + def list_alertrules( self, + group_name: StrictStr, + instance_id: StrictStr, project_id: StrictStr, _request_timeout: Union[ None, @@ -9216,11 +9211,15 @@ def list_instances( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ListInstancesResponse: - """list_instances + ) -> AlertRulesResponse: + """list_alertrules - Get all instances for a project. + Get alert rules. + :param group_name: (required) + :type group_name: str + :param instance_id: (required) + :type instance_id: str :param project_id: (required) :type project_id: str :param _request_timeout: timeout setting for this request. If one @@ -9245,7 +9244,9 @@ def list_instances( :return: Returns the result object. """ # noqa: E501 - _param = self._list_instances_serialize( + _param = self._list_alertrules_serialize( + group_name=group_name, + instance_id=instance_id, project_id=project_id, _request_auth=_request_auth, _content_type=_content_type, @@ -9254,7 +9255,7 @@ def list_instances( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListInstancesResponse", + "200": "AlertRulesResponse", "403": "PermissionDenied", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -9265,8 +9266,10 @@ def list_instances( ).data @validate_call - def list_instances_with_http_info( + def list_alertrules_with_http_info( self, + group_name: StrictStr, + instance_id: StrictStr, project_id: StrictStr, _request_timeout: Union[ None, @@ -9277,11 +9280,15 @@ def list_instances_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ListInstancesResponse]: - """list_instances + ) -> ApiResponse[AlertRulesResponse]: + """list_alertrules - Get all instances for a project. + Get alert rules. + :param group_name: (required) + :type group_name: str + :param instance_id: (required) + :type instance_id: str :param project_id: (required) :type project_id: str :param _request_timeout: timeout setting for this request. If one @@ -9306,7 +9313,9 @@ def list_instances_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_instances_serialize( + _param = self._list_alertrules_serialize( + group_name=group_name, + instance_id=instance_id, project_id=project_id, _request_auth=_request_auth, _content_type=_content_type, @@ -9315,7 +9324,7 @@ def list_instances_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListInstancesResponse", + "200": "AlertRulesResponse", "403": "PermissionDenied", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -9326,8 +9335,10 @@ def list_instances_with_http_info( ) @validate_call - def list_instances_without_preload_content( + def list_alertrules_without_preload_content( self, + group_name: StrictStr, + instance_id: StrictStr, project_id: StrictStr, _request_timeout: Union[ None, @@ -9339,10 +9350,14 @@ def list_instances_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """list_instances + """list_alertrules - Get all instances for a project. + Get alert rules. + :param group_name: (required) + :type group_name: str + :param instance_id: (required) + :type instance_id: str :param project_id: (required) :type project_id: str :param _request_timeout: timeout setting for this request. If one @@ -9367,7 +9382,9 @@ def list_instances_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._list_instances_serialize( + _param = self._list_alertrules_serialize( + group_name=group_name, + instance_id=instance_id, project_id=project_id, _request_auth=_request_auth, _content_type=_content_type, @@ -9376,14 +9393,16 @@ def list_instances_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListInstancesResponse", + "200": "AlertRulesResponse", "403": "PermissionDenied", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) return response_data.response - def _list_instances_serialize( + def _list_alertrules_serialize( self, + group_name, + instance_id, project_id, _request_auth, _content_type, @@ -9403,6 +9422,10 @@ def _list_instances_serialize( _body_params: Optional[bytes] = None # process the path parameters + if group_name is not None: + _path_params["groupName"] = group_name + if instance_id is not None: + _path_params["instanceId"] = instance_id if project_id is not None: _path_params["projectId"] = project_id # process the query parameters @@ -9419,7 +9442,7 @@ def _list_instances_serialize( return self.api_client.param_serialize( method="GET", - resource_path="/v1/projects/{projectId}/instances", + resource_path="/v1/projects/{projectId}/instances/{instanceId}/alertgroups/{groupName}/alertrules", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -9433,7 +9456,7 @@ def _list_instances_serialize( ) @validate_call - def list_logs_alertgroups( + def list_credentials( self, instance_id: StrictStr, project_id: StrictStr, @@ -9446,10 +9469,10 @@ def list_logs_alertgroups( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AlertGroupsResponse: - """list_logs_alertgroups + ) -> ListCredentialsResponse: + """list_credentials - Get logs alert groups config. + Get all technical user credentials. :param instance_id: (required) :type instance_id: str @@ -9477,7 +9500,7 @@ def list_logs_alertgroups( :return: Returns the result object. """ # noqa: E501 - _param = self._list_logs_alertgroups_serialize( + _param = self._list_credentials_serialize( instance_id=instance_id, project_id=project_id, _request_auth=_request_auth, @@ -9487,8 +9510,7 @@ def list_logs_alertgroups( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "AlertGroupsResponse", - "400": "Error", + "201": "ListCredentialsResponse", "403": "PermissionDenied", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -9499,7 +9521,7 @@ def list_logs_alertgroups( ).data @validate_call - def list_logs_alertgroups_with_http_info( + def list_credentials_with_http_info( self, instance_id: StrictStr, project_id: StrictStr, @@ -9512,10 +9534,10 @@ def list_logs_alertgroups_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AlertGroupsResponse]: - """list_logs_alertgroups + ) -> ApiResponse[ListCredentialsResponse]: + """list_credentials - Get logs alert groups config. + Get all technical user credentials. :param instance_id: (required) :type instance_id: str @@ -9543,7 +9565,7 @@ def list_logs_alertgroups_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_logs_alertgroups_serialize( + _param = self._list_credentials_serialize( instance_id=instance_id, project_id=project_id, _request_auth=_request_auth, @@ -9553,8 +9575,7 @@ def list_logs_alertgroups_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "AlertGroupsResponse", - "400": "Error", + "201": "ListCredentialsResponse", "403": "PermissionDenied", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -9565,7 +9586,7 @@ def list_logs_alertgroups_with_http_info( ) @validate_call - def list_logs_alertgroups_without_preload_content( + def list_credentials_without_preload_content( self, instance_id: StrictStr, project_id: StrictStr, @@ -9579,9 +9600,9 @@ def list_logs_alertgroups_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """list_logs_alertgroups + """list_credentials - Get logs alert groups config. + Get all technical user credentials. :param instance_id: (required) :type instance_id: str @@ -9609,7 +9630,7 @@ def list_logs_alertgroups_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._list_logs_alertgroups_serialize( + _param = self._list_credentials_serialize( instance_id=instance_id, project_id=project_id, _request_auth=_request_auth, @@ -9619,14 +9640,13 @@ def list_logs_alertgroups_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "AlertGroupsResponse", - "400": "Error", + "201": "ListCredentialsResponse", "403": "PermissionDenied", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) return response_data.response - def _list_logs_alertgroups_serialize( + def _list_credentials_serialize( self, instance_id, project_id, @@ -9666,7 +9686,7 @@ def _list_logs_alertgroups_serialize( return self.api_client.param_serialize( method="GET", - resource_path="/v1/projects/{projectId}/instances/{instanceId}/logs-alertgroups", + resource_path="/v1/projects/{projectId}/instances/{instanceId}/credentials", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -9680,7 +9700,7 @@ def _list_logs_alertgroups_serialize( ) @validate_call - def list_plans( + def list_instances( self, project_id: StrictStr, _request_timeout: Union[ @@ -9692,10 +9712,10 @@ def list_plans( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PlansResponse: - """list_plans + ) -> ListInstancesResponse: + """list_instances - Get all plans. + Get all instances for a project. :param project_id: (required) :type project_id: str @@ -9721,7 +9741,7 @@ def list_plans( :return: Returns the result object. """ # noqa: E501 - _param = self._list_plans_serialize( + _param = self._list_instances_serialize( project_id=project_id, _request_auth=_request_auth, _content_type=_content_type, @@ -9730,7 +9750,7 @@ def list_plans( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PlansResponse", + "200": "ListInstancesResponse", "403": "PermissionDenied", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -9741,7 +9761,7 @@ def list_plans( ).data @validate_call - def list_plans_with_http_info( + def list_instances_with_http_info( self, project_id: StrictStr, _request_timeout: Union[ @@ -9753,10 +9773,10 @@ def list_plans_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PlansResponse]: - """list_plans + ) -> ApiResponse[ListInstancesResponse]: + """list_instances - Get all plans. + Get all instances for a project. :param project_id: (required) :type project_id: str @@ -9782,7 +9802,7 @@ def list_plans_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_plans_serialize( + _param = self._list_instances_serialize( project_id=project_id, _request_auth=_request_auth, _content_type=_content_type, @@ -9791,7 +9811,7 @@ def list_plans_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PlansResponse", + "200": "ListInstancesResponse", "403": "PermissionDenied", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -9802,7 +9822,7 @@ def list_plans_with_http_info( ) @validate_call - def list_plans_without_preload_content( + def list_instances_without_preload_content( self, project_id: StrictStr, _request_timeout: Union[ @@ -9815,9 +9835,9 @@ def list_plans_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """list_plans + """list_instances - Get all plans. + Get all instances for a project. :param project_id: (required) :type project_id: str @@ -9843,7 +9863,7 @@ def list_plans_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._list_plans_serialize( + _param = self._list_instances_serialize( project_id=project_id, _request_auth=_request_auth, _content_type=_content_type, @@ -9852,13 +9872,13 @@ def list_plans_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PlansResponse", + "200": "ListInstancesResponse", "403": "PermissionDenied", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) return response_data.response - def _list_plans_serialize( + def _list_instances_serialize( self, project_id, _request_auth, @@ -9895,7 +9915,7 @@ def _list_plans_serialize( return self.api_client.param_serialize( method="GET", - resource_path="/v1/projects/{projectId}/plans", + resource_path="/v1/projects/{projectId}/instances", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -9909,7 +9929,7 @@ def _list_plans_serialize( ) @validate_call - def list_scrape_configs( + def list_logs_alertgroups( self, instance_id: StrictStr, project_id: StrictStr, @@ -9922,10 +9942,10 @@ def list_scrape_configs( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ListScrapeConfigsResponse: - """list_scrape_configs + ) -> AlertGroupsResponse: + """list_logs_alertgroups - Get scrape configs. + Get logs alert groups config. :param instance_id: (required) :type instance_id: str @@ -9953,7 +9973,7 @@ def list_scrape_configs( :return: Returns the result object. """ # noqa: E501 - _param = self._list_scrape_configs_serialize( + _param = self._list_logs_alertgroups_serialize( instance_id=instance_id, project_id=project_id, _request_auth=_request_auth, @@ -9963,7 +9983,8 @@ def list_scrape_configs( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListScrapeConfigsResponse", + "200": "AlertGroupsResponse", + "400": "Error", "403": "PermissionDenied", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -9974,7 +9995,7 @@ def list_scrape_configs( ).data @validate_call - def list_scrape_configs_with_http_info( + def list_logs_alertgroups_with_http_info( self, instance_id: StrictStr, project_id: StrictStr, @@ -9987,10 +10008,10 @@ def list_scrape_configs_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ListScrapeConfigsResponse]: - """list_scrape_configs + ) -> ApiResponse[AlertGroupsResponse]: + """list_logs_alertgroups - Get scrape configs. + Get logs alert groups config. :param instance_id: (required) :type instance_id: str @@ -10018,7 +10039,7 @@ def list_scrape_configs_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_scrape_configs_serialize( + _param = self._list_logs_alertgroups_serialize( instance_id=instance_id, project_id=project_id, _request_auth=_request_auth, @@ -10028,7 +10049,8 @@ def list_scrape_configs_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListScrapeConfigsResponse", + "200": "AlertGroupsResponse", + "400": "Error", "403": "PermissionDenied", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -10039,7 +10061,7 @@ def list_scrape_configs_with_http_info( ) @validate_call - def list_scrape_configs_without_preload_content( + def list_logs_alertgroups_without_preload_content( self, instance_id: StrictStr, project_id: StrictStr, @@ -10053,9 +10075,9 @@ def list_scrape_configs_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """list_scrape_configs + """list_logs_alertgroups - Get scrape configs. + Get logs alert groups config. :param instance_id: (required) :type instance_id: str @@ -10083,7 +10105,7 @@ def list_scrape_configs_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._list_scrape_configs_serialize( + _param = self._list_logs_alertgroups_serialize( instance_id=instance_id, project_id=project_id, _request_auth=_request_auth, @@ -10093,13 +10115,14 @@ def list_scrape_configs_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ListScrapeConfigsResponse", + "200": "AlertGroupsResponse", + "400": "Error", "403": "PermissionDenied", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) return response_data.response - def _list_scrape_configs_serialize( + def _list_logs_alertgroups_serialize( self, instance_id, project_id, @@ -10139,7 +10162,7 @@ def _list_scrape_configs_serialize( return self.api_client.param_serialize( method="GET", - resource_path="/v1/projects/{projectId}/instances/{instanceId}/scrapeconfigs", + resource_path="/v1/projects/{projectId}/instances/{instanceId}/logs-alertgroups", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -10153,11 +10176,9 @@ def _list_scrape_configs_serialize( ) @validate_call - def partial_update_alertgroups( + def list_plans( self, - instance_id: StrictStr, project_id: StrictStr, - update_alertgroups_request_inner: List[UpdateAlertgroupsRequestInner], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10167,17 +10188,13 @@ def partial_update_alertgroups( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AlertGroupsResponse: - """partial_update_alertgroups + ) -> PlansResponse: + """list_plans - Patch alert groups. + Get all plans. - :param instance_id: (required) - :type instance_id: str :param project_id: (required) :type project_id: str - :param update_alertgroups_request_inner: (required) - :type update_alertgroups_request_inner: List[UpdateAlertgroupsRequestInner] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10200,10 +10217,8 @@ def partial_update_alertgroups( :return: Returns the result object. """ # noqa: E501 - _param = self._partial_update_alertgroups_serialize( - instance_id=instance_id, + _param = self._list_plans_serialize( project_id=project_id, - update_alertgroups_request_inner=update_alertgroups_request_inner, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10211,8 +10226,7 @@ def partial_update_alertgroups( ) _response_types_map: Dict[str, Optional[str]] = { - "202": "AlertGroupsResponse", - "400": "Error", + "200": "PlansResponse", "403": "PermissionDenied", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -10223,11 +10237,9 @@ def partial_update_alertgroups( ).data @validate_call - def partial_update_alertgroups_with_http_info( + def list_plans_with_http_info( self, - instance_id: StrictStr, project_id: StrictStr, - update_alertgroups_request_inner: List[UpdateAlertgroupsRequestInner], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10237,17 +10249,13 @@ def partial_update_alertgroups_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AlertGroupsResponse]: - """partial_update_alertgroups + ) -> ApiResponse[PlansResponse]: + """list_plans - Patch alert groups. + Get all plans. - :param instance_id: (required) - :type instance_id: str :param project_id: (required) :type project_id: str - :param update_alertgroups_request_inner: (required) - :type update_alertgroups_request_inner: List[UpdateAlertgroupsRequestInner] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10270,10 +10278,8 @@ def partial_update_alertgroups_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._partial_update_alertgroups_serialize( - instance_id=instance_id, + _param = self._list_plans_serialize( project_id=project_id, - update_alertgroups_request_inner=update_alertgroups_request_inner, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10281,8 +10287,7 @@ def partial_update_alertgroups_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - "202": "AlertGroupsResponse", - "400": "Error", + "200": "PlansResponse", "403": "PermissionDenied", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -10293,11 +10298,9 @@ def partial_update_alertgroups_with_http_info( ) @validate_call - def partial_update_alertgroups_without_preload_content( + def list_plans_without_preload_content( self, - instance_id: StrictStr, project_id: StrictStr, - update_alertgroups_request_inner: List[UpdateAlertgroupsRequestInner], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10308,16 +10311,12 @@ def partial_update_alertgroups_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """partial_update_alertgroups + """list_plans - Patch alert groups. + Get all plans. - :param instance_id: (required) - :type instance_id: str :param project_id: (required) :type project_id: str - :param update_alertgroups_request_inner: (required) - :type update_alertgroups_request_inner: List[UpdateAlertgroupsRequestInner] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10340,10 +10339,8 @@ def partial_update_alertgroups_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._partial_update_alertgroups_serialize( - instance_id=instance_id, + _param = self._list_plans_serialize( project_id=project_id, - update_alertgroups_request_inner=update_alertgroups_request_inner, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10351,18 +10348,15 @@ def partial_update_alertgroups_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - "202": "AlertGroupsResponse", - "400": "Error", + "200": "PlansResponse", "403": "PermissionDenied", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) return response_data.response - def _partial_update_alertgroups_serialize( + def _list_plans_serialize( self, - instance_id, project_id, - update_alertgroups_request_inner, _request_auth, _content_type, _headers, @@ -10371,9 +10365,7 @@ def _partial_update_alertgroups_serialize( _host = None - _collection_formats: Dict[str, str] = { - "UpdateAlertgroupsRequestInner": "", - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -10383,35 +10375,23 @@ def _partial_update_alertgroups_serialize( _body_params: Optional[bytes] = None # process the path parameters - if instance_id is not None: - _path_params["instanceId"] = instance_id if project_id is not None: _path_params["projectId"] = project_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter - if update_alertgroups_request_inner is not None: - _body_params = update_alertgroups_request_inner # set the HTTP header `Accept` if "Accept" not in _header_params: _header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) - # set the HTTP header `Content-Type` - if _content_type: - _header_params["Content-Type"] = _content_type - else: - _default_content_type = self.api_client.select_header_content_type(["application/json"]) - if _default_content_type is not None: - _header_params["Content-Type"] = _default_content_type - # authentication setting _auth_settings: List[str] = [] return self.api_client.param_serialize( - method="PATCH", - resource_path="/v1/projects/{projectId}/instances/{instanceId}/alertgroups", + method="GET", + resource_path="/v1/projects/{projectId}/plans", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -10425,12 +10405,10 @@ def _partial_update_alertgroups_serialize( ) @validate_call - def partial_update_alertrules( + def list_scrape_configs( self, - group_name: StrictStr, instance_id: StrictStr, project_id: StrictStr, - update_alertgroups_request_inner_rules_inner: List[UpdateAlertgroupsRequestInnerRulesInner], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10440,19 +10418,15 @@ def partial_update_alertrules( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AlertRulesResponse: - """partial_update_alertrules + ) -> ListScrapeConfigsResponse: + """list_scrape_configs - Patch alert rules. + Get scrape configs. - :param group_name: (required) - :type group_name: str :param instance_id: (required) :type instance_id: str :param project_id: (required) :type project_id: str - :param update_alertgroups_request_inner_rules_inner: (required) - :type update_alertgroups_request_inner_rules_inner: List[UpdateAlertgroupsRequestInnerRulesInner] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10475,11 +10449,9 @@ def partial_update_alertrules( :return: Returns the result object. """ # noqa: E501 - _param = self._partial_update_alertrules_serialize( - group_name=group_name, + _param = self._list_scrape_configs_serialize( instance_id=instance_id, project_id=project_id, - update_alertgroups_request_inner_rules_inner=update_alertgroups_request_inner_rules_inner, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10487,8 +10459,7 @@ def partial_update_alertrules( ) _response_types_map: Dict[str, Optional[str]] = { - "202": "AlertRulesResponse", - "400": "Error", + "200": "ListScrapeConfigsResponse", "403": "PermissionDenied", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -10499,12 +10470,10 @@ def partial_update_alertrules( ).data @validate_call - def partial_update_alertrules_with_http_info( + def list_scrape_configs_with_http_info( self, - group_name: StrictStr, instance_id: StrictStr, project_id: StrictStr, - update_alertgroups_request_inner_rules_inner: List[UpdateAlertgroupsRequestInnerRulesInner], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10514,19 +10483,15 @@ def partial_update_alertrules_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AlertRulesResponse]: - """partial_update_alertrules + ) -> ApiResponse[ListScrapeConfigsResponse]: + """list_scrape_configs - Patch alert rules. + Get scrape configs. - :param group_name: (required) - :type group_name: str :param instance_id: (required) :type instance_id: str :param project_id: (required) :type project_id: str - :param update_alertgroups_request_inner_rules_inner: (required) - :type update_alertgroups_request_inner_rules_inner: List[UpdateAlertgroupsRequestInnerRulesInner] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10549,11 +10514,9 @@ def partial_update_alertrules_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._partial_update_alertrules_serialize( - group_name=group_name, + _param = self._list_scrape_configs_serialize( instance_id=instance_id, project_id=project_id, - update_alertgroups_request_inner_rules_inner=update_alertgroups_request_inner_rules_inner, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10561,8 +10524,7 @@ def partial_update_alertrules_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - "202": "AlertRulesResponse", - "400": "Error", + "200": "ListScrapeConfigsResponse", "403": "PermissionDenied", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) @@ -10573,12 +10535,10 @@ def partial_update_alertrules_with_http_info( ) @validate_call - def partial_update_alertrules_without_preload_content( + def list_scrape_configs_without_preload_content( self, - group_name: StrictStr, instance_id: StrictStr, project_id: StrictStr, - update_alertgroups_request_inner_rules_inner: List[UpdateAlertgroupsRequestInnerRulesInner], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10589,18 +10549,14 @@ def partial_update_alertrules_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """partial_update_alertrules + """list_scrape_configs - Patch alert rules. + Get scrape configs. - :param group_name: (required) - :type group_name: str :param instance_id: (required) :type instance_id: str :param project_id: (required) :type project_id: str - :param update_alertgroups_request_inner_rules_inner: (required) - :type update_alertgroups_request_inner_rules_inner: List[UpdateAlertgroupsRequestInnerRulesInner] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10623,11 +10579,9 @@ def partial_update_alertrules_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._partial_update_alertrules_serialize( - group_name=group_name, + _param = self._list_scrape_configs_serialize( instance_id=instance_id, project_id=project_id, - update_alertgroups_request_inner_rules_inner=update_alertgroups_request_inner_rules_inner, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10635,19 +10589,16 @@ def partial_update_alertrules_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - "202": "AlertRulesResponse", - "400": "Error", + "200": "ListScrapeConfigsResponse", "403": "PermissionDenied", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) return response_data.response - def _partial_update_alertrules_serialize( + def _list_scrape_configs_serialize( self, - group_name, instance_id, project_id, - update_alertgroups_request_inner_rules_inner, _request_auth, _content_type, _headers, @@ -10656,9 +10607,7 @@ def _partial_update_alertrules_serialize( _host = None - _collection_formats: Dict[str, str] = { - "UpdateAlertgroupsRequestInnerRulesInner": "", - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -10668,8 +10617,6 @@ def _partial_update_alertrules_serialize( _body_params: Optional[bytes] = None # process the path parameters - if group_name is not None: - _path_params["groupName"] = group_name if instance_id is not None: _path_params["instanceId"] = instance_id if project_id is not None: @@ -10678,27 +10625,17 @@ def _partial_update_alertrules_serialize( # process the header parameters # process the form parameters # process the body parameter - if update_alertgroups_request_inner_rules_inner is not None: - _body_params = update_alertgroups_request_inner_rules_inner # set the HTTP header `Accept` if "Accept" not in _header_params: _header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) - # set the HTTP header `Content-Type` - if _content_type: - _header_params["Content-Type"] = _content_type - else: - _default_content_type = self.api_client.select_header_content_type(["application/json"]) - if _default_content_type is not None: - _header_params["Content-Type"] = _default_content_type - # authentication setting _auth_settings: List[str] = [] return self.api_client.param_serialize( - method="PATCH", - resource_path="/v1/projects/{projectId}/instances/{instanceId}/alertgroups/{groupName}/alertrules", + method="GET", + resource_path="/v1/projects/{projectId}/instances/{instanceId}/scrapeconfigs", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -10712,11 +10649,11 @@ def _partial_update_alertrules_serialize( ) @validate_call - def update_acl( + def partial_update_alertgroups( self, instance_id: StrictStr, project_id: StrictStr, - update_acl_payload: Optional[UpdateACLPayload] = None, + update_alertgroups_request_inner: List[UpdateAlertgroupsRequestInner], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10726,17 +10663,17 @@ def update_acl( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Message: - """update_acl + ) -> AlertGroupsResponse: + """partial_update_alertgroups - Update acl config. + Patch alert groups. :param instance_id: (required) :type instance_id: str :param project_id: (required) :type project_id: str - :param update_acl_payload: - :type update_acl_payload: UpdateACLPayload + :param update_alertgroups_request_inner: (required) + :type update_alertgroups_request_inner: List[UpdateAlertgroupsRequestInner] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10759,10 +10696,10 @@ def update_acl( :return: Returns the result object. """ # noqa: E501 - _param = self._update_acl_serialize( + _param = self._partial_update_alertgroups_serialize( instance_id=instance_id, project_id=project_id, - update_acl_payload=update_acl_payload, + update_alertgroups_request_inner=update_alertgroups_request_inner, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10770,7 +10707,7 @@ def update_acl( ) _response_types_map: Dict[str, Optional[str]] = { - "202": "Message", + "202": "AlertGroupsResponse", "400": "Error", "403": "PermissionDenied", } @@ -10782,11 +10719,11 @@ def update_acl( ).data @validate_call - def update_acl_with_http_info( + def partial_update_alertgroups_with_http_info( self, instance_id: StrictStr, project_id: StrictStr, - update_acl_payload: Optional[UpdateACLPayload] = None, + update_alertgroups_request_inner: List[UpdateAlertgroupsRequestInner], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10796,17 +10733,17 @@ def update_acl_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[Message]: - """update_acl + ) -> ApiResponse[AlertGroupsResponse]: + """partial_update_alertgroups - Update acl config. + Patch alert groups. :param instance_id: (required) :type instance_id: str :param project_id: (required) :type project_id: str - :param update_acl_payload: - :type update_acl_payload: UpdateACLPayload + :param update_alertgroups_request_inner: (required) + :type update_alertgroups_request_inner: List[UpdateAlertgroupsRequestInner] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10829,10 +10766,10 @@ def update_acl_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._update_acl_serialize( + _param = self._partial_update_alertgroups_serialize( instance_id=instance_id, project_id=project_id, - update_acl_payload=update_acl_payload, + update_alertgroups_request_inner=update_alertgroups_request_inner, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10840,7 +10777,7 @@ def update_acl_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - "202": "Message", + "202": "AlertGroupsResponse", "400": "Error", "403": "PermissionDenied", } @@ -10852,11 +10789,11 @@ def update_acl_with_http_info( ) @validate_call - def update_acl_without_preload_content( + def partial_update_alertgroups_without_preload_content( self, instance_id: StrictStr, project_id: StrictStr, - update_acl_payload: Optional[UpdateACLPayload] = None, + update_alertgroups_request_inner: List[UpdateAlertgroupsRequestInner], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10867,16 +10804,16 @@ def update_acl_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """update_acl + """partial_update_alertgroups - Update acl config. + Patch alert groups. :param instance_id: (required) :type instance_id: str :param project_id: (required) :type project_id: str - :param update_acl_payload: - :type update_acl_payload: UpdateACLPayload + :param update_alertgroups_request_inner: (required) + :type update_alertgroups_request_inner: List[UpdateAlertgroupsRequestInner] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10899,10 +10836,10 @@ def update_acl_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._update_acl_serialize( + _param = self._partial_update_alertgroups_serialize( instance_id=instance_id, project_id=project_id, - update_acl_payload=update_acl_payload, + update_alertgroups_request_inner=update_alertgroups_request_inner, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10910,18 +10847,18 @@ def update_acl_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - "202": "Message", + "202": "AlertGroupsResponse", "400": "Error", "403": "PermissionDenied", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) return response_data.response - def _update_acl_serialize( + def _partial_update_alertgroups_serialize( self, instance_id, project_id, - update_acl_payload, + update_alertgroups_request_inner, _request_auth, _content_type, _headers, @@ -10930,7 +10867,9 @@ def _update_acl_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + "UpdateAlertgroupsRequestInner": "", + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -10948,8 +10887,8 @@ def _update_acl_serialize( # process the header parameters # process the form parameters # process the body parameter - if update_acl_payload is not None: - _body_params = update_acl_payload + if update_alertgroups_request_inner is not None: + _body_params = update_alertgroups_request_inner # set the HTTP header `Accept` if "Accept" not in _header_params: @@ -10967,8 +10906,8 @@ def _update_acl_serialize( _auth_settings: List[str] = [] return self.api_client.param_serialize( - method="PUT", - resource_path="/v1/projects/{projectId}/instances/{instanceId}/acl", + method="PATCH", + resource_path="/v1/projects/{projectId}/instances/{instanceId}/alertgroups", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -10982,12 +10921,12 @@ def _update_acl_serialize( ) @validate_call - def update_alert_config_receiver( + def partial_update_alertrules( self, + group_name: StrictStr, instance_id: StrictStr, project_id: StrictStr, - receiver: StrictStr, - update_alert_config_receiver_payload: UpdateAlertConfigReceiverPayload, + update_alertgroups_request_inner_rules_inner: List[UpdateAlertgroupsRequestInnerRulesInner], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10997,18 +10936,725 @@ def update_alert_config_receiver( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AlertConfigReceiversResponse: - """update_alert_config_receiver + ) -> AlertRulesResponse: + """partial_update_alertrules - Update alert config receiver. + Patch alert rules. + :param group_name: (required) + :type group_name: str :param instance_id: (required) :type instance_id: str :param project_id: (required) :type project_id: str - :param receiver: (required) - :type receiver: str - :param update_alert_config_receiver_payload: (required) + :param update_alertgroups_request_inner_rules_inner: (required) + :type update_alertgroups_request_inner_rules_inner: List[UpdateAlertgroupsRequestInnerRulesInner] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._partial_update_alertrules_serialize( + group_name=group_name, + instance_id=instance_id, + project_id=project_id, + update_alertgroups_request_inner_rules_inner=update_alertgroups_request_inner_rules_inner, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "202": "AlertRulesResponse", + "400": "Error", + "403": "PermissionDenied", + } + response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + @validate_call + def partial_update_alertrules_with_http_info( + self, + group_name: StrictStr, + instance_id: StrictStr, + project_id: StrictStr, + update_alertgroups_request_inner_rules_inner: List[UpdateAlertgroupsRequestInnerRulesInner], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AlertRulesResponse]: + """partial_update_alertrules + + Patch alert rules. + + :param group_name: (required) + :type group_name: str + :param instance_id: (required) + :type instance_id: str + :param project_id: (required) + :type project_id: str + :param update_alertgroups_request_inner_rules_inner: (required) + :type update_alertgroups_request_inner_rules_inner: List[UpdateAlertgroupsRequestInnerRulesInner] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._partial_update_alertrules_serialize( + group_name=group_name, + instance_id=instance_id, + project_id=project_id, + update_alertgroups_request_inner_rules_inner=update_alertgroups_request_inner_rules_inner, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "202": "AlertRulesResponse", + "400": "Error", + "403": "PermissionDenied", + } + response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + @validate_call + def partial_update_alertrules_without_preload_content( + self, + group_name: StrictStr, + instance_id: StrictStr, + project_id: StrictStr, + update_alertgroups_request_inner_rules_inner: List[UpdateAlertgroupsRequestInnerRulesInner], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """partial_update_alertrules + + Patch alert rules. + + :param group_name: (required) + :type group_name: str + :param instance_id: (required) + :type instance_id: str + :param project_id: (required) + :type project_id: str + :param update_alertgroups_request_inner_rules_inner: (required) + :type update_alertgroups_request_inner_rules_inner: List[UpdateAlertgroupsRequestInnerRulesInner] + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._partial_update_alertrules_serialize( + group_name=group_name, + instance_id=instance_id, + project_id=project_id, + update_alertgroups_request_inner_rules_inner=update_alertgroups_request_inner_rules_inner, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "202": "AlertRulesResponse", + "400": "Error", + "403": "PermissionDenied", + } + response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) + return response_data.response + + def _partial_update_alertrules_serialize( + self, + group_name, + instance_id, + project_id, + update_alertgroups_request_inner_rules_inner, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + "UpdateAlertgroupsRequestInnerRulesInner": "", + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if group_name is not None: + _path_params["groupName"] = group_name + if instance_id is not None: + _path_params["instanceId"] = instance_id + if project_id is not None: + _path_params["projectId"] = project_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if update_alertgroups_request_inner_rules_inner is not None: + _body_params = update_alertgroups_request_inner_rules_inner + + # set the HTTP header `Accept` + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params["Content-Type"] = _content_type + else: + _default_content_type = self.api_client.select_header_content_type(["application/json"]) + if _default_content_type is not None: + _header_params["Content-Type"] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [] + + return self.api_client.param_serialize( + method="PATCH", + resource_path="/v1/projects/{projectId}/instances/{instanceId}/alertgroups/{groupName}/alertrules", + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth, + ) + + @validate_call + def update_acl( + self, + instance_id: StrictStr, + project_id: StrictStr, + update_acl_payload: Optional[UpdateACLPayload] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Message: + """update_acl + + Update acl config. + + :param instance_id: (required) + :type instance_id: str + :param project_id: (required) + :type project_id: str + :param update_acl_payload: + :type update_acl_payload: UpdateACLPayload + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_acl_serialize( + instance_id=instance_id, + project_id=project_id, + update_acl_payload=update_acl_payload, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "202": "Message", + "400": "Error", + "403": "PermissionDenied", + } + response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + @validate_call + def update_acl_with_http_info( + self, + instance_id: StrictStr, + project_id: StrictStr, + update_acl_payload: Optional[UpdateACLPayload] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[Message]: + """update_acl + + Update acl config. + + :param instance_id: (required) + :type instance_id: str + :param project_id: (required) + :type project_id: str + :param update_acl_payload: + :type update_acl_payload: UpdateACLPayload + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_acl_serialize( + instance_id=instance_id, + project_id=project_id, + update_acl_payload=update_acl_payload, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "202": "Message", + "400": "Error", + "403": "PermissionDenied", + } + response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + @validate_call + def update_acl_without_preload_content( + self, + instance_id: StrictStr, + project_id: StrictStr, + update_acl_payload: Optional[UpdateACLPayload] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """update_acl + + Update acl config. + + :param instance_id: (required) + :type instance_id: str + :param project_id: (required) + :type project_id: str + :param update_acl_payload: + :type update_acl_payload: UpdateACLPayload + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_acl_serialize( + instance_id=instance_id, + project_id=project_id, + update_acl_payload=update_acl_payload, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "202": "Message", + "400": "Error", + "403": "PermissionDenied", + } + response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) + return response_data.response + + def _update_acl_serialize( + self, + instance_id, + project_id, + update_acl_payload, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = {} + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if instance_id is not None: + _path_params["instanceId"] = instance_id + if project_id is not None: + _path_params["projectId"] = project_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if update_acl_payload is not None: + _body_params = update_acl_payload + + # set the HTTP header `Accept` + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params["Content-Type"] = _content_type + else: + _default_content_type = self.api_client.select_header_content_type(["application/json"]) + if _default_content_type is not None: + _header_params["Content-Type"] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [] + + return self.api_client.param_serialize( + method="PUT", + resource_path="/v1/projects/{projectId}/instances/{instanceId}/acl", + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth, + ) + + @validate_call + def update_alert_config_receiver( + self, + instance_id: StrictStr, + project_id: StrictStr, + receiver: StrictStr, + update_alert_config_receiver_payload: UpdateAlertConfigReceiverPayload, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> AlertConfigReceiversResponse: + """update_alert_config_receiver + + Update alert config receiver. + + :param instance_id: (required) + :type instance_id: str + :param project_id: (required) + :type project_id: str + :param receiver: (required) + :type receiver: str + :param update_alert_config_receiver_payload: (required) + :type update_alert_config_receiver_payload: UpdateAlertConfigReceiverPayload + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_alert_config_receiver_serialize( + instance_id=instance_id, + project_id=project_id, + receiver=receiver, + update_alert_config_receiver_payload=update_alert_config_receiver_payload, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "202": "AlertConfigReceiversResponse", + "400": "Error", + "403": "PermissionDenied", + "404": "Message", + } + response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + @validate_call + def update_alert_config_receiver_with_http_info( + self, + instance_id: StrictStr, + project_id: StrictStr, + receiver: StrictStr, + update_alert_config_receiver_payload: UpdateAlertConfigReceiverPayload, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AlertConfigReceiversResponse]: + """update_alert_config_receiver + + Update alert config receiver. + + :param instance_id: (required) + :type instance_id: str + :param project_id: (required) + :type project_id: str + :param receiver: (required) + :type receiver: str + :param update_alert_config_receiver_payload: (required) + :type update_alert_config_receiver_payload: UpdateAlertConfigReceiverPayload + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_alert_config_receiver_serialize( + instance_id=instance_id, + project_id=project_id, + receiver=receiver, + update_alert_config_receiver_payload=update_alert_config_receiver_payload, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "202": "AlertConfigReceiversResponse", + "400": "Error", + "403": "PermissionDenied", + "404": "Message", + } + response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + @validate_call + def update_alert_config_receiver_without_preload_content( + self, + instance_id: StrictStr, + project_id: StrictStr, + receiver: StrictStr, + update_alert_config_receiver_payload: UpdateAlertConfigReceiverPayload, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """update_alert_config_receiver + + Update alert config receiver. + + :param instance_id: (required) + :type instance_id: str + :param project_id: (required) + :type project_id: str + :param receiver: (required) + :type receiver: str + :param update_alert_config_receiver_payload: (required) :type update_alert_config_receiver_payload: UpdateAlertConfigReceiverPayload :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -11032,11 +11678,299 @@ def update_alert_config_receiver( :return: Returns the result object. """ # noqa: E501 - _param = self._update_alert_config_receiver_serialize( + _param = self._update_alert_config_receiver_serialize( + instance_id=instance_id, + project_id=project_id, + receiver=receiver, + update_alert_config_receiver_payload=update_alert_config_receiver_payload, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "202": "AlertConfigReceiversResponse", + "400": "Error", + "403": "PermissionDenied", + "404": "Message", + } + response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) + return response_data.response + + def _update_alert_config_receiver_serialize( + self, + instance_id, + project_id, + receiver, + update_alert_config_receiver_payload, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = {} + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if instance_id is not None: + _path_params["instanceId"] = instance_id + if project_id is not None: + _path_params["projectId"] = project_id + if receiver is not None: + _path_params["receiver"] = receiver + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if update_alert_config_receiver_payload is not None: + _body_params = update_alert_config_receiver_payload + + # set the HTTP header `Accept` + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params["Content-Type"] = _content_type + else: + _default_content_type = self.api_client.select_header_content_type(["application/json"]) + if _default_content_type is not None: + _header_params["Content-Type"] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [] + + return self.api_client.param_serialize( + method="PUT", + resource_path="/v1/projects/{projectId}/instances/{instanceId}/alertconfigs/receivers/{receiver}", + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth, + ) + + @validate_call + def update_alert_config_route( + self, + instance_id: StrictStr, + project_id: StrictStr, + receiver: StrictStr, + update_alert_config_route_payload: UpdateAlertConfigRoutePayload, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> AlertConfigRouteResponse: + """update_alert_config_route + + Update alert receiver for route. + + :param instance_id: (required) + :type instance_id: str + :param project_id: (required) + :type project_id: str + :param receiver: (required) + :type receiver: str + :param update_alert_config_route_payload: (required) + :type update_alert_config_route_payload: UpdateAlertConfigRoutePayload + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_alert_config_route_serialize( + instance_id=instance_id, + project_id=project_id, + receiver=receiver, + update_alert_config_route_payload=update_alert_config_route_payload, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "202": "AlertConfigRouteResponse", + "400": "Error", + "403": "PermissionDenied", + "404": "Message", + } + response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + @validate_call + def update_alert_config_route_with_http_info( + self, + instance_id: StrictStr, + project_id: StrictStr, + receiver: StrictStr, + update_alert_config_route_payload: UpdateAlertConfigRoutePayload, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AlertConfigRouteResponse]: + """update_alert_config_route + + Update alert receiver for route. + + :param instance_id: (required) + :type instance_id: str + :param project_id: (required) + :type project_id: str + :param receiver: (required) + :type receiver: str + :param update_alert_config_route_payload: (required) + :type update_alert_config_route_payload: UpdateAlertConfigRoutePayload + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_alert_config_route_serialize( + instance_id=instance_id, + project_id=project_id, + receiver=receiver, + update_alert_config_route_payload=update_alert_config_route_payload, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "202": "AlertConfigRouteResponse", + "400": "Error", + "403": "PermissionDenied", + "404": "Message", + } + response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + @validate_call + def update_alert_config_route_without_preload_content( + self, + instance_id: StrictStr, + project_id: StrictStr, + receiver: StrictStr, + update_alert_config_route_payload: UpdateAlertConfigRoutePayload, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """update_alert_config_route + + Update alert receiver for route. + + :param instance_id: (required) + :type instance_id: str + :param project_id: (required) + :type project_id: str + :param receiver: (required) + :type receiver: str + :param update_alert_config_route_payload: (required) + :type update_alert_config_route_payload: UpdateAlertConfigRoutePayload + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_alert_config_route_serialize( instance_id=instance_id, project_id=project_id, receiver=receiver, - update_alert_config_receiver_payload=update_alert_config_receiver_payload, + update_alert_config_route_payload=update_alert_config_route_payload, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11044,12 +11978,145 @@ def update_alert_config_receiver( ) _response_types_map: Dict[str, Optional[str]] = { - "202": "AlertConfigReceiversResponse", + "202": "AlertConfigRouteResponse", "400": "Error", "403": "PermissionDenied", "404": "Message", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) + return response_data.response + + def _update_alert_config_route_serialize( + self, + instance_id, + project_id, + receiver, + update_alert_config_route_payload, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = {} + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if instance_id is not None: + _path_params["instanceId"] = instance_id + if project_id is not None: + _path_params["projectId"] = project_id + if receiver is not None: + _path_params["receiver"] = receiver + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if update_alert_config_route_payload is not None: + _body_params = update_alert_config_route_payload + + # set the HTTP header `Accept` + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params["Content-Type"] = _content_type + else: + _default_content_type = self.api_client.select_header_content_type(["application/json"]) + if _default_content_type is not None: + _header_params["Content-Type"] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [] + + return self.api_client.param_serialize( + method="PUT", + resource_path="/v1/projects/{projectId}/instances/{instanceId}/alertconfigs/routes/{receiver}", + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth, + ) + + @validate_call + def update_alert_configs( + self, + instance_id: StrictStr, + project_id: StrictStr, + update_alert_configs_payload: UpdateAlertConfigsPayload, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> UpdateAlertConfigsResponse: + """update_alert_configs + + Update alert config. + + :param instance_id: (required) + :type instance_id: str + :param project_id: (required) + :type project_id: str + :param update_alert_configs_payload: (required) + :type update_alert_configs_payload: UpdateAlertConfigsPayload + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_alert_configs_serialize( + instance_id=instance_id, + project_id=project_id, + update_alert_configs_payload=update_alert_configs_payload, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "202": "UpdateAlertConfigsResponse", + "400": "Error", + "403": "PermissionDenied", + } + response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) response_data.read() return self.api_client.response_deserialize( response_data=response_data, @@ -11057,12 +12124,11 @@ def update_alert_config_receiver( ).data @validate_call - def update_alert_config_receiver_with_http_info( + def update_alert_configs_with_http_info( self, instance_id: StrictStr, project_id: StrictStr, - receiver: StrictStr, - update_alert_config_receiver_payload: UpdateAlertConfigReceiverPayload, + update_alert_configs_payload: UpdateAlertConfigsPayload, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11072,19 +12138,17 @@ def update_alert_config_receiver_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AlertConfigReceiversResponse]: - """update_alert_config_receiver + ) -> ApiResponse[UpdateAlertConfigsResponse]: + """update_alert_configs - Update alert config receiver. + Update alert config. :param instance_id: (required) :type instance_id: str :param project_id: (required) :type project_id: str - :param receiver: (required) - :type receiver: str - :param update_alert_config_receiver_payload: (required) - :type update_alert_config_receiver_payload: UpdateAlertConfigReceiverPayload + :param update_alert_configs_payload: (required) + :type update_alert_configs_payload: UpdateAlertConfigsPayload :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11107,11 +12171,10 @@ def update_alert_config_receiver_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._update_alert_config_receiver_serialize( + _param = self._update_alert_configs_serialize( instance_id=instance_id, project_id=project_id, - receiver=receiver, - update_alert_config_receiver_payload=update_alert_config_receiver_payload, + update_alert_configs_payload=update_alert_configs_payload, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11119,10 +12182,9 @@ def update_alert_config_receiver_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - "202": "AlertConfigReceiversResponse", + "202": "UpdateAlertConfigsResponse", "400": "Error", "403": "PermissionDenied", - "404": "Message", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) response_data.read() @@ -11132,12 +12194,11 @@ def update_alert_config_receiver_with_http_info( ) @validate_call - def update_alert_config_receiver_without_preload_content( + def update_alert_configs_without_preload_content( self, instance_id: StrictStr, project_id: StrictStr, - receiver: StrictStr, - update_alert_config_receiver_payload: UpdateAlertConfigReceiverPayload, + update_alert_configs_payload: UpdateAlertConfigsPayload, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11148,18 +12209,16 @@ def update_alert_config_receiver_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """update_alert_config_receiver + """update_alert_configs - Update alert config receiver. + Update alert config. :param instance_id: (required) :type instance_id: str :param project_id: (required) :type project_id: str - :param receiver: (required) - :type receiver: str - :param update_alert_config_receiver_payload: (required) - :type update_alert_config_receiver_payload: UpdateAlertConfigReceiverPayload + :param update_alert_configs_payload: (required) + :type update_alert_configs_payload: UpdateAlertConfigsPayload :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11182,11 +12241,10 @@ def update_alert_config_receiver_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._update_alert_config_receiver_serialize( + _param = self._update_alert_configs_serialize( instance_id=instance_id, project_id=project_id, - receiver=receiver, - update_alert_config_receiver_payload=update_alert_config_receiver_payload, + update_alert_configs_payload=update_alert_configs_payload, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11194,20 +12252,18 @@ def update_alert_config_receiver_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - "202": "AlertConfigReceiversResponse", + "202": "UpdateAlertConfigsResponse", "400": "Error", "403": "PermissionDenied", - "404": "Message", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) return response_data.response - def _update_alert_config_receiver_serialize( + def _update_alert_configs_serialize( self, instance_id, project_id, - receiver, - update_alert_config_receiver_payload, + update_alert_configs_payload, _request_auth, _content_type, _headers, @@ -11230,14 +12286,12 @@ def _update_alert_config_receiver_serialize( _path_params["instanceId"] = instance_id if project_id is not None: _path_params["projectId"] = project_id - if receiver is not None: - _path_params["receiver"] = receiver # process the query parameters # process the header parameters # process the form parameters # process the body parameter - if update_alert_config_receiver_payload is not None: - _body_params = update_alert_config_receiver_payload + if update_alert_configs_payload is not None: + _body_params = update_alert_configs_payload # set the HTTP header `Accept` if "Accept" not in _header_params: @@ -11256,7 +12310,7 @@ def _update_alert_config_receiver_serialize( return self.api_client.param_serialize( method="PUT", - resource_path="/v1/projects/{projectId}/instances/{instanceId}/alertconfigs/receivers/{receiver}", + resource_path="/v1/projects/{projectId}/instances/{instanceId}/alertconfigs", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -11270,12 +12324,12 @@ def _update_alert_config_receiver_serialize( ) @validate_call - def update_alert_config_route( + def update_alertgroup( self, + group_name: StrictStr, instance_id: StrictStr, project_id: StrictStr, - receiver: StrictStr, - update_alert_config_route_payload: UpdateAlertConfigRoutePayload, + update_alertgroup_payload: UpdateAlertgroupPayload, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11285,19 +12339,19 @@ def update_alert_config_route( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AlertConfigRouteResponse: - """update_alert_config_route + ) -> AlertGroupsResponse: + """update_alertgroup - Update alert receiver for route. + Update alert group config. + :param group_name: (required) + :type group_name: str :param instance_id: (required) :type instance_id: str :param project_id: (required) :type project_id: str - :param receiver: (required) - :type receiver: str - :param update_alert_config_route_payload: (required) - :type update_alert_config_route_payload: UpdateAlertConfigRoutePayload + :param update_alertgroup_payload: (required) + :type update_alertgroup_payload: UpdateAlertgroupPayload :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11320,11 +12374,11 @@ def update_alert_config_route( :return: Returns the result object. """ # noqa: E501 - _param = self._update_alert_config_route_serialize( + _param = self._update_alertgroup_serialize( + group_name=group_name, instance_id=instance_id, project_id=project_id, - receiver=receiver, - update_alert_config_route_payload=update_alert_config_route_payload, + update_alertgroup_payload=update_alertgroup_payload, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11332,8 +12386,8 @@ def update_alert_config_route( ) _response_types_map: Dict[str, Optional[str]] = { - "202": "AlertConfigRouteResponse", - "400": "Error", + "202": "AlertGroupsResponse", + "400": "Message", "403": "PermissionDenied", "404": "Message", } @@ -11345,12 +12399,12 @@ def update_alert_config_route( ).data @validate_call - def update_alert_config_route_with_http_info( + def update_alertgroup_with_http_info( self, + group_name: StrictStr, instance_id: StrictStr, project_id: StrictStr, - receiver: StrictStr, - update_alert_config_route_payload: UpdateAlertConfigRoutePayload, + update_alertgroup_payload: UpdateAlertgroupPayload, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11360,19 +12414,19 @@ def update_alert_config_route_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AlertConfigRouteResponse]: - """update_alert_config_route + ) -> ApiResponse[AlertGroupsResponse]: + """update_alertgroup - Update alert receiver for route. + Update alert group config. + :param group_name: (required) + :type group_name: str :param instance_id: (required) :type instance_id: str :param project_id: (required) :type project_id: str - :param receiver: (required) - :type receiver: str - :param update_alert_config_route_payload: (required) - :type update_alert_config_route_payload: UpdateAlertConfigRoutePayload + :param update_alertgroup_payload: (required) + :type update_alertgroup_payload: UpdateAlertgroupPayload :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11395,11 +12449,11 @@ def update_alert_config_route_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._update_alert_config_route_serialize( + _param = self._update_alertgroup_serialize( + group_name=group_name, instance_id=instance_id, - project_id=project_id, - receiver=receiver, - update_alert_config_route_payload=update_alert_config_route_payload, + project_id=project_id, + update_alertgroup_payload=update_alertgroup_payload, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11407,8 +12461,8 @@ def update_alert_config_route_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - "202": "AlertConfigRouteResponse", - "400": "Error", + "202": "AlertGroupsResponse", + "400": "Message", "403": "PermissionDenied", "404": "Message", } @@ -11420,12 +12474,12 @@ def update_alert_config_route_with_http_info( ) @validate_call - def update_alert_config_route_without_preload_content( + def update_alertgroup_without_preload_content( self, + group_name: StrictStr, instance_id: StrictStr, project_id: StrictStr, - receiver: StrictStr, - update_alert_config_route_payload: UpdateAlertConfigRoutePayload, + update_alertgroup_payload: UpdateAlertgroupPayload, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11436,18 +12490,18 @@ def update_alert_config_route_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """update_alert_config_route + """update_alertgroup - Update alert receiver for route. + Update alert group config. + :param group_name: (required) + :type group_name: str :param instance_id: (required) :type instance_id: str :param project_id: (required) :type project_id: str - :param receiver: (required) - :type receiver: str - :param update_alert_config_route_payload: (required) - :type update_alert_config_route_payload: UpdateAlertConfigRoutePayload + :param update_alertgroup_payload: (required) + :type update_alertgroup_payload: UpdateAlertgroupPayload :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11470,11 +12524,11 @@ def update_alert_config_route_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._update_alert_config_route_serialize( + _param = self._update_alertgroup_serialize( + group_name=group_name, instance_id=instance_id, project_id=project_id, - receiver=receiver, - update_alert_config_route_payload=update_alert_config_route_payload, + update_alertgroup_payload=update_alertgroup_payload, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11482,20 +12536,20 @@ def update_alert_config_route_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - "202": "AlertConfigRouteResponse", - "400": "Error", + "202": "AlertGroupsResponse", + "400": "Message", "403": "PermissionDenied", "404": "Message", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) return response_data.response - def _update_alert_config_route_serialize( + def _update_alertgroup_serialize( self, + group_name, instance_id, project_id, - receiver, - update_alert_config_route_payload, + update_alertgroup_payload, _request_auth, _content_type, _headers, @@ -11514,18 +12568,18 @@ def _update_alert_config_route_serialize( _body_params: Optional[bytes] = None # process the path parameters + if group_name is not None: + _path_params["groupName"] = group_name if instance_id is not None: _path_params["instanceId"] = instance_id if project_id is not None: _path_params["projectId"] = project_id - if receiver is not None: - _path_params["receiver"] = receiver # process the query parameters # process the header parameters # process the form parameters # process the body parameter - if update_alert_config_route_payload is not None: - _body_params = update_alert_config_route_payload + if update_alertgroup_payload is not None: + _body_params = update_alertgroup_payload # set the HTTP header `Accept` if "Accept" not in _header_params: @@ -11544,7 +12598,7 @@ def _update_alert_config_route_serialize( return self.api_client.param_serialize( method="PUT", - resource_path="/v1/projects/{projectId}/instances/{instanceId}/alertconfigs/routes/{receiver}", + resource_path="/v1/projects/{projectId}/instances/{instanceId}/alertgroups/{groupName}", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -11558,11 +12612,11 @@ def _update_alert_config_route_serialize( ) @validate_call - def update_alert_configs( + def update_alertgroups( self, instance_id: StrictStr, project_id: StrictStr, - update_alert_configs_payload: UpdateAlertConfigsPayload, + update_alertgroups_request_inner: List[UpdateAlertgroupsRequestInner], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11572,17 +12626,17 @@ def update_alert_configs( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> UpdateAlertConfigsResponse: - """update_alert_configs + ) -> AlertGroupsResponse: + """update_alertgroups - Update alert config. + Update alert groups. :param instance_id: (required) :type instance_id: str :param project_id: (required) :type project_id: str - :param update_alert_configs_payload: (required) - :type update_alert_configs_payload: UpdateAlertConfigsPayload + :param update_alertgroups_request_inner: (required) + :type update_alertgroups_request_inner: List[UpdateAlertgroupsRequestInner] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11605,10 +12659,10 @@ def update_alert_configs( :return: Returns the result object. """ # noqa: E501 - _param = self._update_alert_configs_serialize( + _param = self._update_alertgroups_serialize( instance_id=instance_id, project_id=project_id, - update_alert_configs_payload=update_alert_configs_payload, + update_alertgroups_request_inner=update_alertgroups_request_inner, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11616,7 +12670,7 @@ def update_alert_configs( ) _response_types_map: Dict[str, Optional[str]] = { - "202": "UpdateAlertConfigsResponse", + "202": "AlertGroupsResponse", "400": "Error", "403": "PermissionDenied", } @@ -11628,11 +12682,11 @@ def update_alert_configs( ).data @validate_call - def update_alert_configs_with_http_info( + def update_alertgroups_with_http_info( self, instance_id: StrictStr, project_id: StrictStr, - update_alert_configs_payload: UpdateAlertConfigsPayload, + update_alertgroups_request_inner: List[UpdateAlertgroupsRequestInner], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11642,17 +12696,17 @@ def update_alert_configs_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UpdateAlertConfigsResponse]: - """update_alert_configs + ) -> ApiResponse[AlertGroupsResponse]: + """update_alertgroups - Update alert config. + Update alert groups. :param instance_id: (required) :type instance_id: str :param project_id: (required) :type project_id: str - :param update_alert_configs_payload: (required) - :type update_alert_configs_payload: UpdateAlertConfigsPayload + :param update_alertgroups_request_inner: (required) + :type update_alertgroups_request_inner: List[UpdateAlertgroupsRequestInner] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11675,10 +12729,10 @@ def update_alert_configs_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._update_alert_configs_serialize( + _param = self._update_alertgroups_serialize( instance_id=instance_id, project_id=project_id, - update_alert_configs_payload=update_alert_configs_payload, + update_alertgroups_request_inner=update_alertgroups_request_inner, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11686,7 +12740,7 @@ def update_alert_configs_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - "202": "UpdateAlertConfigsResponse", + "202": "AlertGroupsResponse", "400": "Error", "403": "PermissionDenied", } @@ -11698,11 +12752,11 @@ def update_alert_configs_with_http_info( ) @validate_call - def update_alert_configs_without_preload_content( + def update_alertgroups_without_preload_content( self, instance_id: StrictStr, project_id: StrictStr, - update_alert_configs_payload: UpdateAlertConfigsPayload, + update_alertgroups_request_inner: List[UpdateAlertgroupsRequestInner], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11713,16 +12767,16 @@ def update_alert_configs_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """update_alert_configs + """update_alertgroups - Update alert config. + Update alert groups. :param instance_id: (required) :type instance_id: str :param project_id: (required) :type project_id: str - :param update_alert_configs_payload: (required) - :type update_alert_configs_payload: UpdateAlertConfigsPayload + :param update_alertgroups_request_inner: (required) + :type update_alertgroups_request_inner: List[UpdateAlertgroupsRequestInner] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11745,10 +12799,10 @@ def update_alert_configs_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._update_alert_configs_serialize( + _param = self._update_alertgroups_serialize( instance_id=instance_id, project_id=project_id, - update_alert_configs_payload=update_alert_configs_payload, + update_alertgroups_request_inner=update_alertgroups_request_inner, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11756,18 +12810,18 @@ def update_alert_configs_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - "202": "UpdateAlertConfigsResponse", + "202": "AlertGroupsResponse", "400": "Error", "403": "PermissionDenied", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) return response_data.response - def _update_alert_configs_serialize( + def _update_alertgroups_serialize( self, instance_id, project_id, - update_alert_configs_payload, + update_alertgroups_request_inner, _request_auth, _content_type, _headers, @@ -11776,7 +12830,9 @@ def _update_alert_configs_serialize( _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + "UpdateAlertgroupsRequestInner": "", + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -11794,8 +12850,8 @@ def _update_alert_configs_serialize( # process the header parameters # process the form parameters # process the body parameter - if update_alert_configs_payload is not None: - _body_params = update_alert_configs_payload + if update_alertgroups_request_inner is not None: + _body_params = update_alertgroups_request_inner # set the HTTP header `Accept` if "Accept" not in _header_params: @@ -11814,7 +12870,7 @@ def _update_alert_configs_serialize( return self.api_client.param_serialize( method="PUT", - resource_path="/v1/projects/{projectId}/instances/{instanceId}/alertconfigs", + resource_path="/v1/projects/{projectId}/instances/{instanceId}/alertgroups", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -11828,12 +12884,12 @@ def _update_alert_configs_serialize( ) @validate_call - def update_alertgroup( + def update_credentials_remote_write_config( self, - group_name: StrictStr, instance_id: StrictStr, project_id: StrictStr, - update_alertgroup_payload: UpdateAlertgroupPayload, + username: StrictStr, + update_credentials_remote_write_config_payload: UpdateCredentialsRemoteWriteConfigPayload, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11843,19 +12899,19 @@ def update_alertgroup( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AlertGroupsResponse: - """update_alertgroup + ) -> CredentialsRemoteWriteConfig: + """update_credentials_remote_write_config - Update alert group config. + Update remote write config for credentials. - :param group_name: (required) - :type group_name: str :param instance_id: (required) :type instance_id: str :param project_id: (required) :type project_id: str - :param update_alertgroup_payload: (required) - :type update_alertgroup_payload: UpdateAlertgroupPayload + :param username: (required) + :type username: str + :param update_credentials_remote_write_config_payload: (required) + :type update_credentials_remote_write_config_payload: UpdateCredentialsRemoteWriteConfigPayload :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11878,11 +12934,11 @@ def update_alertgroup( :return: Returns the result object. """ # noqa: E501 - _param = self._update_alertgroup_serialize( - group_name=group_name, + _param = self._update_credentials_remote_write_config_serialize( instance_id=instance_id, project_id=project_id, - update_alertgroup_payload=update_alertgroup_payload, + username=username, + update_credentials_remote_write_config_payload=update_credentials_remote_write_config_payload, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11890,10 +12946,11 @@ def update_alertgroup( ) _response_types_map: Dict[str, Optional[str]] = { - "202": "AlertGroupsResponse", - "400": "Message", + "200": "CredentialsRemoteWriteConfig", + "400": "Error", "403": "PermissionDenied", "404": "Message", + "502": "Message", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) response_data.read() @@ -11903,12 +12960,12 @@ def update_alertgroup( ).data @validate_call - def update_alertgroup_with_http_info( + def update_credentials_remote_write_config_with_http_info( self, - group_name: StrictStr, instance_id: StrictStr, project_id: StrictStr, - update_alertgroup_payload: UpdateAlertgroupPayload, + username: StrictStr, + update_credentials_remote_write_config_payload: UpdateCredentialsRemoteWriteConfigPayload, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11918,19 +12975,19 @@ def update_alertgroup_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AlertGroupsResponse]: - """update_alertgroup + ) -> ApiResponse[CredentialsRemoteWriteConfig]: + """update_credentials_remote_write_config - Update alert group config. + Update remote write config for credentials. - :param group_name: (required) - :type group_name: str :param instance_id: (required) :type instance_id: str :param project_id: (required) :type project_id: str - :param update_alertgroup_payload: (required) - :type update_alertgroup_payload: UpdateAlertgroupPayload + :param username: (required) + :type username: str + :param update_credentials_remote_write_config_payload: (required) + :type update_credentials_remote_write_config_payload: UpdateCredentialsRemoteWriteConfigPayload :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11953,11 +13010,11 @@ def update_alertgroup_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._update_alertgroup_serialize( - group_name=group_name, + _param = self._update_credentials_remote_write_config_serialize( instance_id=instance_id, project_id=project_id, - update_alertgroup_payload=update_alertgroup_payload, + username=username, + update_credentials_remote_write_config_payload=update_credentials_remote_write_config_payload, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11965,10 +13022,11 @@ def update_alertgroup_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - "202": "AlertGroupsResponse", - "400": "Message", + "200": "CredentialsRemoteWriteConfig", + "400": "Error", "403": "PermissionDenied", "404": "Message", + "502": "Message", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) response_data.read() @@ -11978,12 +13036,12 @@ def update_alertgroup_with_http_info( ) @validate_call - def update_alertgroup_without_preload_content( + def update_credentials_remote_write_config_without_preload_content( self, - group_name: StrictStr, instance_id: StrictStr, project_id: StrictStr, - update_alertgroup_payload: UpdateAlertgroupPayload, + username: StrictStr, + update_credentials_remote_write_config_payload: UpdateCredentialsRemoteWriteConfigPayload, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11994,18 +13052,18 @@ def update_alertgroup_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """update_alertgroup + """update_credentials_remote_write_config - Update alert group config. + Update remote write config for credentials. - :param group_name: (required) - :type group_name: str :param instance_id: (required) :type instance_id: str :param project_id: (required) :type project_id: str - :param update_alertgroup_payload: (required) - :type update_alertgroup_payload: UpdateAlertgroupPayload + :param username: (required) + :type username: str + :param update_credentials_remote_write_config_payload: (required) + :type update_credentials_remote_write_config_payload: UpdateCredentialsRemoteWriteConfigPayload :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12028,11 +13086,11 @@ def update_alertgroup_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._update_alertgroup_serialize( - group_name=group_name, + _param = self._update_credentials_remote_write_config_serialize( instance_id=instance_id, project_id=project_id, - update_alertgroup_payload=update_alertgroup_payload, + username=username, + update_credentials_remote_write_config_payload=update_credentials_remote_write_config_payload, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12040,20 +13098,21 @@ def update_alertgroup_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - "202": "AlertGroupsResponse", - "400": "Message", + "200": "CredentialsRemoteWriteConfig", + "400": "Error", "403": "PermissionDenied", "404": "Message", + "502": "Message", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) return response_data.response - def _update_alertgroup_serialize( + def _update_credentials_remote_write_config_serialize( self, - group_name, instance_id, project_id, - update_alertgroup_payload, + username, + update_credentials_remote_write_config_payload, _request_auth, _content_type, _headers, @@ -12072,18 +13131,18 @@ def _update_alertgroup_serialize( _body_params: Optional[bytes] = None # process the path parameters - if group_name is not None: - _path_params["groupName"] = group_name if instance_id is not None: _path_params["instanceId"] = instance_id if project_id is not None: _path_params["projectId"] = project_id + if username is not None: + _path_params["username"] = username # process the query parameters # process the header parameters # process the form parameters # process the body parameter - if update_alertgroup_payload is not None: - _body_params = update_alertgroup_payload + if update_credentials_remote_write_config_payload is not None: + _body_params = update_credentials_remote_write_config_payload # set the HTTP header `Accept` if "Accept" not in _header_params: @@ -12102,7 +13161,7 @@ def _update_alertgroup_serialize( return self.api_client.param_serialize( method="PUT", - resource_path="/v1/projects/{projectId}/instances/{instanceId}/alertgroups/{groupName}", + resource_path="/v1/projects/{projectId}/instances/{instanceId}/credentials/{username}/remote-write-limits", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -12116,11 +13175,11 @@ def _update_alertgroup_serialize( ) @validate_call - def update_alertgroups( + def update_grafana_configs( self, instance_id: StrictStr, project_id: StrictStr, - update_alertgroups_request_inner: List[UpdateAlertgroupsRequestInner], + update_grafana_configs_payload: UpdateGrafanaConfigsPayload, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12130,17 +13189,17 @@ def update_alertgroups( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AlertGroupsResponse: - """update_alertgroups + ) -> Message: + """update_grafana_configs - Update alert groups. + Update grafana config. :param instance_id: (required) :type instance_id: str :param project_id: (required) :type project_id: str - :param update_alertgroups_request_inner: (required) - :type update_alertgroups_request_inner: List[UpdateAlertgroupsRequestInner] + :param update_grafana_configs_payload: (required) + :type update_grafana_configs_payload: UpdateGrafanaConfigsPayload :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12163,10 +13222,10 @@ def update_alertgroups( :return: Returns the result object. """ # noqa: E501 - _param = self._update_alertgroups_serialize( + _param = self._update_grafana_configs_serialize( instance_id=instance_id, project_id=project_id, - update_alertgroups_request_inner=update_alertgroups_request_inner, + update_grafana_configs_payload=update_grafana_configs_payload, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12174,7 +13233,7 @@ def update_alertgroups( ) _response_types_map: Dict[str, Optional[str]] = { - "202": "AlertGroupsResponse", + "202": "Message", "400": "Error", "403": "PermissionDenied", } @@ -12186,11 +13245,11 @@ def update_alertgroups( ).data @validate_call - def update_alertgroups_with_http_info( + def update_grafana_configs_with_http_info( self, instance_id: StrictStr, project_id: StrictStr, - update_alertgroups_request_inner: List[UpdateAlertgroupsRequestInner], + update_grafana_configs_payload: UpdateGrafanaConfigsPayload, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12200,17 +13259,17 @@ def update_alertgroups_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AlertGroupsResponse]: - """update_alertgroups + ) -> ApiResponse[Message]: + """update_grafana_configs - Update alert groups. + Update grafana config. :param instance_id: (required) :type instance_id: str :param project_id: (required) :type project_id: str - :param update_alertgroups_request_inner: (required) - :type update_alertgroups_request_inner: List[UpdateAlertgroupsRequestInner] + :param update_grafana_configs_payload: (required) + :type update_grafana_configs_payload: UpdateGrafanaConfigsPayload :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12233,10 +13292,10 @@ def update_alertgroups_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._update_alertgroups_serialize( + _param = self._update_grafana_configs_serialize( instance_id=instance_id, project_id=project_id, - update_alertgroups_request_inner=update_alertgroups_request_inner, + update_grafana_configs_payload=update_grafana_configs_payload, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12244,7 +13303,7 @@ def update_alertgroups_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - "202": "AlertGroupsResponse", + "202": "Message", "400": "Error", "403": "PermissionDenied", } @@ -12256,11 +13315,11 @@ def update_alertgroups_with_http_info( ) @validate_call - def update_alertgroups_without_preload_content( + def update_grafana_configs_without_preload_content( self, instance_id: StrictStr, project_id: StrictStr, - update_alertgroups_request_inner: List[UpdateAlertgroupsRequestInner], + update_grafana_configs_payload: UpdateGrafanaConfigsPayload, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12271,16 +13330,16 @@ def update_alertgroups_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """update_alertgroups + """update_grafana_configs - Update alert groups. + Update grafana config. :param instance_id: (required) :type instance_id: str :param project_id: (required) :type project_id: str - :param update_alertgroups_request_inner: (required) - :type update_alertgroups_request_inner: List[UpdateAlertgroupsRequestInner] + :param update_grafana_configs_payload: (required) + :type update_grafana_configs_payload: UpdateGrafanaConfigsPayload :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12303,10 +13362,10 @@ def update_alertgroups_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._update_alertgroups_serialize( + _param = self._update_grafana_configs_serialize( instance_id=instance_id, project_id=project_id, - update_alertgroups_request_inner=update_alertgroups_request_inner, + update_grafana_configs_payload=update_grafana_configs_payload, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12314,18 +13373,18 @@ def update_alertgroups_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - "202": "AlertGroupsResponse", + "202": "Message", "400": "Error", "403": "PermissionDenied", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) return response_data.response - def _update_alertgroups_serialize( + def _update_grafana_configs_serialize( self, instance_id, project_id, - update_alertgroups_request_inner, + update_grafana_configs_payload, _request_auth, _content_type, _headers, @@ -12334,9 +13393,7 @@ def _update_alertgroups_serialize( _host = None - _collection_formats: Dict[str, str] = { - "UpdateAlertgroupsRequestInner": "", - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -12354,8 +13411,8 @@ def _update_alertgroups_serialize( # process the header parameters # process the form parameters # process the body parameter - if update_alertgroups_request_inner is not None: - _body_params = update_alertgroups_request_inner + if update_grafana_configs_payload is not None: + _body_params = update_grafana_configs_payload # set the HTTP header `Accept` if "Accept" not in _header_params: @@ -12374,7 +13431,7 @@ def _update_alertgroups_serialize( return self.api_client.param_serialize( method="PUT", - resource_path="/v1/projects/{projectId}/instances/{instanceId}/alertgroups", + resource_path="/v1/projects/{projectId}/instances/{instanceId}/grafana-configs", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -12388,12 +13445,11 @@ def _update_alertgroups_serialize( ) @validate_call - def update_credentials_remote_write_config( + def update_instance( self, instance_id: StrictStr, project_id: StrictStr, - username: StrictStr, - update_credentials_remote_write_config_payload: UpdateCredentialsRemoteWriteConfigPayload, + update_instance_payload: UpdateInstancePayload, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12403,19 +13459,17 @@ def update_credentials_remote_write_config( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CredentialsRemoteWriteConfig: - """update_credentials_remote_write_config + ) -> InstanceResponse: + """update_instance - Update remote write config for credentials. + Update instance. :param instance_id: (required) :type instance_id: str :param project_id: (required) :type project_id: str - :param username: (required) - :type username: str - :param update_credentials_remote_write_config_payload: (required) - :type update_credentials_remote_write_config_payload: UpdateCredentialsRemoteWriteConfigPayload + :param update_instance_payload: (required) + :type update_instance_payload: UpdateInstancePayload :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12438,11 +13492,10 @@ def update_credentials_remote_write_config( :return: Returns the result object. """ # noqa: E501 - _param = self._update_credentials_remote_write_config_serialize( + _param = self._update_instance_serialize( instance_id=instance_id, project_id=project_id, - username=username, - update_credentials_remote_write_config_payload=update_credentials_remote_write_config_payload, + update_instance_payload=update_instance_payload, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12450,11 +13503,9 @@ def update_credentials_remote_write_config( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CredentialsRemoteWriteConfig", + "202": "InstanceResponse", "400": "Error", "403": "PermissionDenied", - "404": "Message", - "502": "Message", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) response_data.read() @@ -12464,12 +13515,11 @@ def update_credentials_remote_write_config( ).data @validate_call - def update_credentials_remote_write_config_with_http_info( + def update_instance_with_http_info( self, instance_id: StrictStr, project_id: StrictStr, - username: StrictStr, - update_credentials_remote_write_config_payload: UpdateCredentialsRemoteWriteConfigPayload, + update_instance_payload: UpdateInstancePayload, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12479,19 +13529,17 @@ def update_credentials_remote_write_config_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[CredentialsRemoteWriteConfig]: - """update_credentials_remote_write_config + ) -> ApiResponse[InstanceResponse]: + """update_instance - Update remote write config for credentials. + Update instance. :param instance_id: (required) :type instance_id: str :param project_id: (required) :type project_id: str - :param username: (required) - :type username: str - :param update_credentials_remote_write_config_payload: (required) - :type update_credentials_remote_write_config_payload: UpdateCredentialsRemoteWriteConfigPayload + :param update_instance_payload: (required) + :type update_instance_payload: UpdateInstancePayload :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12514,11 +13562,10 @@ def update_credentials_remote_write_config_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._update_credentials_remote_write_config_serialize( + _param = self._update_instance_serialize( instance_id=instance_id, project_id=project_id, - username=username, - update_credentials_remote_write_config_payload=update_credentials_remote_write_config_payload, + update_instance_payload=update_instance_payload, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12526,11 +13573,9 @@ def update_credentials_remote_write_config_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CredentialsRemoteWriteConfig", + "202": "InstanceResponse", "400": "Error", "403": "PermissionDenied", - "404": "Message", - "502": "Message", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) response_data.read() @@ -12540,12 +13585,11 @@ def update_credentials_remote_write_config_with_http_info( ) @validate_call - def update_credentials_remote_write_config_without_preload_content( + def update_instance_without_preload_content( self, instance_id: StrictStr, project_id: StrictStr, - username: StrictStr, - update_credentials_remote_write_config_payload: UpdateCredentialsRemoteWriteConfigPayload, + update_instance_payload: UpdateInstancePayload, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12556,18 +13600,16 @@ def update_credentials_remote_write_config_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """update_credentials_remote_write_config + """update_instance - Update remote write config for credentials. + Update instance. :param instance_id: (required) :type instance_id: str :param project_id: (required) :type project_id: str - :param username: (required) - :type username: str - :param update_credentials_remote_write_config_payload: (required) - :type update_credentials_remote_write_config_payload: UpdateCredentialsRemoteWriteConfigPayload + :param update_instance_payload: (required) + :type update_instance_payload: UpdateInstancePayload :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12590,11 +13632,10 @@ def update_credentials_remote_write_config_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._update_credentials_remote_write_config_serialize( + _param = self._update_instance_serialize( instance_id=instance_id, project_id=project_id, - username=username, - update_credentials_remote_write_config_payload=update_credentials_remote_write_config_payload, + update_instance_payload=update_instance_payload, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12602,21 +13643,18 @@ def update_credentials_remote_write_config_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CredentialsRemoteWriteConfig", + "202": "InstanceResponse", "400": "Error", "403": "PermissionDenied", - "404": "Message", - "502": "Message", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) return response_data.response - def _update_credentials_remote_write_config_serialize( + def _update_instance_serialize( self, instance_id, project_id, - username, - update_credentials_remote_write_config_payload, + update_instance_payload, _request_auth, _content_type, _headers, @@ -12639,14 +13677,12 @@ def _update_credentials_remote_write_config_serialize( _path_params["instanceId"] = instance_id if project_id is not None: _path_params["projectId"] = project_id - if username is not None: - _path_params["username"] = username # process the query parameters # process the header parameters # process the form parameters # process the body parameter - if update_credentials_remote_write_config_payload is not None: - _body_params = update_credentials_remote_write_config_payload + if update_instance_payload is not None: + _body_params = update_instance_payload # set the HTTP header `Accept` if "Accept" not in _header_params: @@ -12665,7 +13701,7 @@ def _update_credentials_remote_write_config_serialize( return self.api_client.param_serialize( method="PUT", - resource_path="/v1/projects/{projectId}/instances/{instanceId}/credentials/{username}/remote-write-limits", + resource_path="/v1/projects/{projectId}/instances/{instanceId}", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -12679,11 +13715,12 @@ def _update_credentials_remote_write_config_serialize( ) @validate_call - def update_grafana_configs( + def update_logs_alertgroup( self, + group_name: StrictStr, instance_id: StrictStr, project_id: StrictStr, - update_grafana_configs_payload: UpdateGrafanaConfigsPayload, + update_logs_alertgroup_payload: UpdateLogsAlertgroupPayload, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12693,17 +13730,19 @@ def update_grafana_configs( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Message: - """update_grafana_configs + ) -> AlertGroupsResponse: + """update_logs_alertgroup - Update grafana config. + Update logs alert group config. + :param group_name: (required) + :type group_name: str :param instance_id: (required) :type instance_id: str :param project_id: (required) :type project_id: str - :param update_grafana_configs_payload: (required) - :type update_grafana_configs_payload: UpdateGrafanaConfigsPayload + :param update_logs_alertgroup_payload: (required) + :type update_logs_alertgroup_payload: UpdateLogsAlertgroupPayload :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12726,10 +13765,11 @@ def update_grafana_configs( :return: Returns the result object. """ # noqa: E501 - _param = self._update_grafana_configs_serialize( + _param = self._update_logs_alertgroup_serialize( + group_name=group_name, instance_id=instance_id, project_id=project_id, - update_grafana_configs_payload=update_grafana_configs_payload, + update_logs_alertgroup_payload=update_logs_alertgroup_payload, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12737,9 +13777,10 @@ def update_grafana_configs( ) _response_types_map: Dict[str, Optional[str]] = { - "202": "Message", - "400": "Error", + "202": "AlertGroupsResponse", + "400": "Message", "403": "PermissionDenied", + "404": "Message", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) response_data.read() @@ -12749,11 +13790,12 @@ def update_grafana_configs( ).data @validate_call - def update_grafana_configs_with_http_info( + def update_logs_alertgroup_with_http_info( self, + group_name: StrictStr, instance_id: StrictStr, project_id: StrictStr, - update_grafana_configs_payload: UpdateGrafanaConfigsPayload, + update_logs_alertgroup_payload: UpdateLogsAlertgroupPayload, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12763,17 +13805,19 @@ def update_grafana_configs_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[Message]: - """update_grafana_configs + ) -> ApiResponse[AlertGroupsResponse]: + """update_logs_alertgroup - Update grafana config. + Update logs alert group config. + :param group_name: (required) + :type group_name: str :param instance_id: (required) :type instance_id: str :param project_id: (required) :type project_id: str - :param update_grafana_configs_payload: (required) - :type update_grafana_configs_payload: UpdateGrafanaConfigsPayload + :param update_logs_alertgroup_payload: (required) + :type update_logs_alertgroup_payload: UpdateLogsAlertgroupPayload :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12796,10 +13840,11 @@ def update_grafana_configs_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._update_grafana_configs_serialize( + _param = self._update_logs_alertgroup_serialize( + group_name=group_name, instance_id=instance_id, project_id=project_id, - update_grafana_configs_payload=update_grafana_configs_payload, + update_logs_alertgroup_payload=update_logs_alertgroup_payload, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12807,9 +13852,10 @@ def update_grafana_configs_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - "202": "Message", - "400": "Error", + "202": "AlertGroupsResponse", + "400": "Message", "403": "PermissionDenied", + "404": "Message", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) response_data.read() @@ -12819,11 +13865,12 @@ def update_grafana_configs_with_http_info( ) @validate_call - def update_grafana_configs_without_preload_content( + def update_logs_alertgroup_without_preload_content( self, + group_name: StrictStr, instance_id: StrictStr, project_id: StrictStr, - update_grafana_configs_payload: UpdateGrafanaConfigsPayload, + update_logs_alertgroup_payload: UpdateLogsAlertgroupPayload, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12834,16 +13881,18 @@ def update_grafana_configs_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """update_grafana_configs + """update_logs_alertgroup - Update grafana config. + Update logs alert group config. + :param group_name: (required) + :type group_name: str :param instance_id: (required) :type instance_id: str :param project_id: (required) :type project_id: str - :param update_grafana_configs_payload: (required) - :type update_grafana_configs_payload: UpdateGrafanaConfigsPayload + :param update_logs_alertgroup_payload: (required) + :type update_logs_alertgroup_payload: UpdateLogsAlertgroupPayload :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12866,10 +13915,11 @@ def update_grafana_configs_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._update_grafana_configs_serialize( + _param = self._update_logs_alertgroup_serialize( + group_name=group_name, instance_id=instance_id, project_id=project_id, - update_grafana_configs_payload=update_grafana_configs_payload, + update_logs_alertgroup_payload=update_logs_alertgroup_payload, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12877,18 +13927,20 @@ def update_grafana_configs_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - "202": "Message", - "400": "Error", + "202": "AlertGroupsResponse", + "400": "Message", "403": "PermissionDenied", + "404": "Message", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) return response_data.response - def _update_grafana_configs_serialize( + def _update_logs_alertgroup_serialize( self, + group_name, instance_id, project_id, - update_grafana_configs_payload, + update_logs_alertgroup_payload, _request_auth, _content_type, _headers, @@ -12907,6 +13959,8 @@ def _update_grafana_configs_serialize( _body_params: Optional[bytes] = None # process the path parameters + if group_name is not None: + _path_params["groupName"] = group_name if instance_id is not None: _path_params["instanceId"] = instance_id if project_id is not None: @@ -12915,8 +13969,8 @@ def _update_grafana_configs_serialize( # process the header parameters # process the form parameters # process the body parameter - if update_grafana_configs_payload is not None: - _body_params = update_grafana_configs_payload + if update_logs_alertgroup_payload is not None: + _body_params = update_logs_alertgroup_payload # set the HTTP header `Accept` if "Accept" not in _header_params: @@ -12935,7 +13989,7 @@ def _update_grafana_configs_serialize( return self.api_client.param_serialize( method="PUT", - resource_path="/v1/projects/{projectId}/instances/{instanceId}/grafana-configs", + resource_path="/v1/projects/{projectId}/instances/{instanceId}/logs-alertgroups/{groupName}", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -12949,11 +14003,11 @@ def _update_grafana_configs_serialize( ) @validate_call - def update_instance( + def update_logs_configs( self, instance_id: StrictStr, project_id: StrictStr, - update_instance_payload: UpdateInstancePayload, + update_logs_configs_payload: UpdateLogsConfigsPayload, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12963,17 +14017,17 @@ def update_instance( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> InstanceResponse: - """update_instance + ) -> Message: + """update_logs_configs - Update instance. + Update logs config. :param instance_id: (required) :type instance_id: str :param project_id: (required) :type project_id: str - :param update_instance_payload: (required) - :type update_instance_payload: UpdateInstancePayload + :param update_logs_configs_payload: (required) + :type update_logs_configs_payload: UpdateLogsConfigsPayload :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12996,10 +14050,10 @@ def update_instance( :return: Returns the result object. """ # noqa: E501 - _param = self._update_instance_serialize( + _param = self._update_logs_configs_serialize( instance_id=instance_id, project_id=project_id, - update_instance_payload=update_instance_payload, + update_logs_configs_payload=update_logs_configs_payload, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13007,7 +14061,7 @@ def update_instance( ) _response_types_map: Dict[str, Optional[str]] = { - "202": "InstanceResponse", + "202": "Message", "400": "Error", "403": "PermissionDenied", } @@ -13019,11 +14073,11 @@ def update_instance( ).data @validate_call - def update_instance_with_http_info( + def update_logs_configs_with_http_info( self, instance_id: StrictStr, project_id: StrictStr, - update_instance_payload: UpdateInstancePayload, + update_logs_configs_payload: UpdateLogsConfigsPayload, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13033,17 +14087,17 @@ def update_instance_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[InstanceResponse]: - """update_instance + ) -> ApiResponse[Message]: + """update_logs_configs - Update instance. + Update logs config. :param instance_id: (required) :type instance_id: str :param project_id: (required) :type project_id: str - :param update_instance_payload: (required) - :type update_instance_payload: UpdateInstancePayload + :param update_logs_configs_payload: (required) + :type update_logs_configs_payload: UpdateLogsConfigsPayload :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13066,10 +14120,10 @@ def update_instance_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._update_instance_serialize( + _param = self._update_logs_configs_serialize( instance_id=instance_id, project_id=project_id, - update_instance_payload=update_instance_payload, + update_logs_configs_payload=update_logs_configs_payload, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13077,7 +14131,7 @@ def update_instance_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - "202": "InstanceResponse", + "202": "Message", "400": "Error", "403": "PermissionDenied", } @@ -13089,11 +14143,11 @@ def update_instance_with_http_info( ) @validate_call - def update_instance_without_preload_content( + def update_logs_configs_without_preload_content( self, instance_id: StrictStr, project_id: StrictStr, - update_instance_payload: UpdateInstancePayload, + update_logs_configs_payload: UpdateLogsConfigsPayload, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13104,16 +14158,16 @@ def update_instance_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """update_instance + """update_logs_configs - Update instance. + Update logs config. :param instance_id: (required) :type instance_id: str :param project_id: (required) :type project_id: str - :param update_instance_payload: (required) - :type update_instance_payload: UpdateInstancePayload + :param update_logs_configs_payload: (required) + :type update_logs_configs_payload: UpdateLogsConfigsPayload :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13136,10 +14190,10 @@ def update_instance_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._update_instance_serialize( + _param = self._update_logs_configs_serialize( instance_id=instance_id, project_id=project_id, - update_instance_payload=update_instance_payload, + update_logs_configs_payload=update_logs_configs_payload, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13147,18 +14201,18 @@ def update_instance_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - "202": "InstanceResponse", + "202": "Message", "400": "Error", "403": "PermissionDenied", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) return response_data.response - def _update_instance_serialize( + def _update_logs_configs_serialize( self, instance_id, project_id, - update_instance_payload, + update_logs_configs_payload, _request_auth, _content_type, _headers, @@ -13185,8 +14239,8 @@ def _update_instance_serialize( # process the header parameters # process the form parameters # process the body parameter - if update_instance_payload is not None: - _body_params = update_instance_payload + if update_logs_configs_payload is not None: + _body_params = update_logs_configs_payload # set the HTTP header `Accept` if "Accept" not in _header_params: @@ -13205,7 +14259,7 @@ def _update_instance_serialize( return self.api_client.param_serialize( method="PUT", - resource_path="/v1/projects/{projectId}/instances/{instanceId}", + resource_path="/v1/projects/{projectId}/instances/{instanceId}/logs-configs", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -13219,12 +14273,11 @@ def _update_instance_serialize( ) @validate_call - def update_logs_alertgroup( + def update_metrics_storage_retention( self, - group_name: StrictStr, instance_id: StrictStr, project_id: StrictStr, - update_logs_alertgroup_payload: UpdateLogsAlertgroupPayload, + update_metrics_storage_retention_payload: UpdateMetricsStorageRetentionPayload, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13234,19 +14287,17 @@ def update_logs_alertgroup( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AlertGroupsResponse: - """update_logs_alertgroup + ) -> Message: + """update_metrics_storage_retention - Update logs alert group config. + Update metric update retention time. - :param group_name: (required) - :type group_name: str :param instance_id: (required) :type instance_id: str :param project_id: (required) :type project_id: str - :param update_logs_alertgroup_payload: (required) - :type update_logs_alertgroup_payload: UpdateLogsAlertgroupPayload + :param update_metrics_storage_retention_payload: (required) + :type update_metrics_storage_retention_payload: UpdateMetricsStorageRetentionPayload :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13269,11 +14320,10 @@ def update_logs_alertgroup( :return: Returns the result object. """ # noqa: E501 - _param = self._update_logs_alertgroup_serialize( - group_name=group_name, + _param = self._update_metrics_storage_retention_serialize( instance_id=instance_id, project_id=project_id, - update_logs_alertgroup_payload=update_logs_alertgroup_payload, + update_metrics_storage_retention_payload=update_metrics_storage_retention_payload, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13281,10 +14331,9 @@ def update_logs_alertgroup( ) _response_types_map: Dict[str, Optional[str]] = { - "202": "AlertGroupsResponse", - "400": "Message", + "202": "Message", + "400": "Error", "403": "PermissionDenied", - "404": "Message", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) response_data.read() @@ -13294,12 +14343,11 @@ def update_logs_alertgroup( ).data @validate_call - def update_logs_alertgroup_with_http_info( + def update_metrics_storage_retention_with_http_info( self, - group_name: StrictStr, instance_id: StrictStr, project_id: StrictStr, - update_logs_alertgroup_payload: UpdateLogsAlertgroupPayload, + update_metrics_storage_retention_payload: UpdateMetricsStorageRetentionPayload, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13309,19 +14357,17 @@ def update_logs_alertgroup_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AlertGroupsResponse]: - """update_logs_alertgroup + ) -> ApiResponse[Message]: + """update_metrics_storage_retention - Update logs alert group config. + Update metric update retention time. - :param group_name: (required) - :type group_name: str :param instance_id: (required) :type instance_id: str :param project_id: (required) :type project_id: str - :param update_logs_alertgroup_payload: (required) - :type update_logs_alertgroup_payload: UpdateLogsAlertgroupPayload + :param update_metrics_storage_retention_payload: (required) + :type update_metrics_storage_retention_payload: UpdateMetricsStorageRetentionPayload :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13344,11 +14390,10 @@ def update_logs_alertgroup_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._update_logs_alertgroup_serialize( - group_name=group_name, + _param = self._update_metrics_storage_retention_serialize( instance_id=instance_id, project_id=project_id, - update_logs_alertgroup_payload=update_logs_alertgroup_payload, + update_metrics_storage_retention_payload=update_metrics_storage_retention_payload, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13356,10 +14401,9 @@ def update_logs_alertgroup_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - "202": "AlertGroupsResponse", - "400": "Message", + "202": "Message", + "400": "Error", "403": "PermissionDenied", - "404": "Message", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) response_data.read() @@ -13369,12 +14413,11 @@ def update_logs_alertgroup_with_http_info( ) @validate_call - def update_logs_alertgroup_without_preload_content( + def update_metrics_storage_retention_without_preload_content( self, - group_name: StrictStr, instance_id: StrictStr, project_id: StrictStr, - update_logs_alertgroup_payload: UpdateLogsAlertgroupPayload, + update_metrics_storage_retention_payload: UpdateMetricsStorageRetentionPayload, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13385,18 +14428,16 @@ def update_logs_alertgroup_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """update_logs_alertgroup + """update_metrics_storage_retention - Update logs alert group config. + Update metric update retention time. - :param group_name: (required) - :type group_name: str :param instance_id: (required) :type instance_id: str :param project_id: (required) :type project_id: str - :param update_logs_alertgroup_payload: (required) - :type update_logs_alertgroup_payload: UpdateLogsAlertgroupPayload + :param update_metrics_storage_retention_payload: (required) + :type update_metrics_storage_retention_payload: UpdateMetricsStorageRetentionPayload :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13419,11 +14460,10 @@ def update_logs_alertgroup_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._update_logs_alertgroup_serialize( - group_name=group_name, + _param = self._update_metrics_storage_retention_serialize( instance_id=instance_id, project_id=project_id, - update_logs_alertgroup_payload=update_logs_alertgroup_payload, + update_metrics_storage_retention_payload=update_metrics_storage_retention_payload, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13431,20 +14471,18 @@ def update_logs_alertgroup_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - "202": "AlertGroupsResponse", - "400": "Message", + "202": "Message", + "400": "Error", "403": "PermissionDenied", - "404": "Message", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) return response_data.response - def _update_logs_alertgroup_serialize( + def _update_metrics_storage_retention_serialize( self, - group_name, instance_id, project_id, - update_logs_alertgroup_payload, + update_metrics_storage_retention_payload, _request_auth, _content_type, _headers, @@ -13463,8 +14501,6 @@ def _update_logs_alertgroup_serialize( _body_params: Optional[bytes] = None # process the path parameters - if group_name is not None: - _path_params["groupName"] = group_name if instance_id is not None: _path_params["instanceId"] = instance_id if project_id is not None: @@ -13473,8 +14509,8 @@ def _update_logs_alertgroup_serialize( # process the header parameters # process the form parameters # process the body parameter - if update_logs_alertgroup_payload is not None: - _body_params = update_logs_alertgroup_payload + if update_metrics_storage_retention_payload is not None: + _body_params = update_metrics_storage_retention_payload # set the HTTP header `Accept` if "Accept" not in _header_params: @@ -13493,7 +14529,7 @@ def _update_logs_alertgroup_serialize( return self.api_client.param_serialize( method="PUT", - resource_path="/v1/projects/{projectId}/instances/{instanceId}/logs-alertgroups/{groupName}", + resource_path="/v1/projects/{projectId}/instances/{instanceId}/metrics-storage-retentions", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -13507,11 +14543,12 @@ def _update_logs_alertgroup_serialize( ) @validate_call - def update_metrics_storage_retention( + def update_scrape_config( self, instance_id: StrictStr, + job_name: StrictStr, project_id: StrictStr, - update_metrics_storage_retention_payload: UpdateMetricsStorageRetentionPayload, + update_scrape_config_payload: UpdateScrapeConfigPayload, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13521,17 +14558,19 @@ def update_metrics_storage_retention( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Message: - """update_metrics_storage_retention + ) -> ScrapeConfigsResponse: + """update_scrape_config - Update metric update retention time. + Update scrape config. :param instance_id: (required) :type instance_id: str + :param job_name: (required) + :type job_name: str :param project_id: (required) :type project_id: str - :param update_metrics_storage_retention_payload: (required) - :type update_metrics_storage_retention_payload: UpdateMetricsStorageRetentionPayload + :param update_scrape_config_payload: (required) + :type update_scrape_config_payload: UpdateScrapeConfigPayload :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13554,10 +14593,11 @@ def update_metrics_storage_retention( :return: Returns the result object. """ # noqa: E501 - _param = self._update_metrics_storage_retention_serialize( + _param = self._update_scrape_config_serialize( instance_id=instance_id, + job_name=job_name, project_id=project_id, - update_metrics_storage_retention_payload=update_metrics_storage_retention_payload, + update_scrape_config_payload=update_scrape_config_payload, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13565,9 +14605,10 @@ def update_metrics_storage_retention( ) _response_types_map: Dict[str, Optional[str]] = { - "202": "Message", - "400": "Error", + "202": "ScrapeConfigsResponse", + "400": "Message", "403": "PermissionDenied", + "404": "Message", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) response_data.read() @@ -13577,11 +14618,12 @@ def update_metrics_storage_retention( ).data @validate_call - def update_metrics_storage_retention_with_http_info( + def update_scrape_config_with_http_info( self, instance_id: StrictStr, + job_name: StrictStr, project_id: StrictStr, - update_metrics_storage_retention_payload: UpdateMetricsStorageRetentionPayload, + update_scrape_config_payload: UpdateScrapeConfigPayload, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13591,17 +14633,19 @@ def update_metrics_storage_retention_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[Message]: - """update_metrics_storage_retention + ) -> ApiResponse[ScrapeConfigsResponse]: + """update_scrape_config - Update metric update retention time. + Update scrape config. :param instance_id: (required) :type instance_id: str + :param job_name: (required) + :type job_name: str :param project_id: (required) :type project_id: str - :param update_metrics_storage_retention_payload: (required) - :type update_metrics_storage_retention_payload: UpdateMetricsStorageRetentionPayload + :param update_scrape_config_payload: (required) + :type update_scrape_config_payload: UpdateScrapeConfigPayload :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13624,10 +14668,11 @@ def update_metrics_storage_retention_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._update_metrics_storage_retention_serialize( + _param = self._update_scrape_config_serialize( instance_id=instance_id, + job_name=job_name, project_id=project_id, - update_metrics_storage_retention_payload=update_metrics_storage_retention_payload, + update_scrape_config_payload=update_scrape_config_payload, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13635,9 +14680,10 @@ def update_metrics_storage_retention_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - "202": "Message", - "400": "Error", + "202": "ScrapeConfigsResponse", + "400": "Message", "403": "PermissionDenied", + "404": "Message", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) response_data.read() @@ -13647,11 +14693,12 @@ def update_metrics_storage_retention_with_http_info( ) @validate_call - def update_metrics_storage_retention_without_preload_content( + def update_scrape_config_without_preload_content( self, instance_id: StrictStr, + job_name: StrictStr, project_id: StrictStr, - update_metrics_storage_retention_payload: UpdateMetricsStorageRetentionPayload, + update_scrape_config_payload: UpdateScrapeConfigPayload, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13662,16 +14709,18 @@ def update_metrics_storage_retention_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """update_metrics_storage_retention + """update_scrape_config - Update metric update retention time. + Update scrape config. :param instance_id: (required) :type instance_id: str + :param job_name: (required) + :type job_name: str :param project_id: (required) :type project_id: str - :param update_metrics_storage_retention_payload: (required) - :type update_metrics_storage_retention_payload: UpdateMetricsStorageRetentionPayload + :param update_scrape_config_payload: (required) + :type update_scrape_config_payload: UpdateScrapeConfigPayload :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13694,10 +14743,11 @@ def update_metrics_storage_retention_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._update_metrics_storage_retention_serialize( + _param = self._update_scrape_config_serialize( instance_id=instance_id, + job_name=job_name, project_id=project_id, - update_metrics_storage_retention_payload=update_metrics_storage_retention_payload, + update_scrape_config_payload=update_scrape_config_payload, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13705,18 +14755,20 @@ def update_metrics_storage_retention_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - "202": "Message", - "400": "Error", + "202": "ScrapeConfigsResponse", + "400": "Message", "403": "PermissionDenied", + "404": "Message", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) return response_data.response - def _update_metrics_storage_retention_serialize( + def _update_scrape_config_serialize( self, instance_id, + job_name, project_id, - update_metrics_storage_retention_payload, + update_scrape_config_payload, _request_auth, _content_type, _headers, @@ -13737,14 +14789,16 @@ def _update_metrics_storage_retention_serialize( # process the path parameters if instance_id is not None: _path_params["instanceId"] = instance_id + if job_name is not None: + _path_params["jobName"] = job_name if project_id is not None: _path_params["projectId"] = project_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter - if update_metrics_storage_retention_payload is not None: - _body_params = update_metrics_storage_retention_payload + if update_scrape_config_payload is not None: + _body_params = update_scrape_config_payload # set the HTTP header `Accept` if "Accept" not in _header_params: @@ -13763,7 +14817,7 @@ def _update_metrics_storage_retention_serialize( return self.api_client.param_serialize( method="PUT", - resource_path="/v1/projects/{projectId}/instances/{instanceId}/metrics-storage-retentions", + resource_path="/v1/projects/{projectId}/instances/{instanceId}/scrapeconfigs/{jobName}", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -13777,12 +14831,11 @@ def _update_metrics_storage_retention_serialize( ) @validate_call - def update_scrape_config( + def update_traces_configs( self, instance_id: StrictStr, - job_name: StrictStr, project_id: StrictStr, - update_scrape_config_payload: UpdateScrapeConfigPayload, + update_traces_configs_payload: UpdateTracesConfigsPayload, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13792,19 +14845,17 @@ def update_scrape_config( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ScrapeConfigsResponse: - """update_scrape_config + ) -> Message: + """update_traces_configs - Update scrape config. + Update traces config. :param instance_id: (required) :type instance_id: str - :param job_name: (required) - :type job_name: str :param project_id: (required) :type project_id: str - :param update_scrape_config_payload: (required) - :type update_scrape_config_payload: UpdateScrapeConfigPayload + :param update_traces_configs_payload: (required) + :type update_traces_configs_payload: UpdateTracesConfigsPayload :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13827,11 +14878,10 @@ def update_scrape_config( :return: Returns the result object. """ # noqa: E501 - _param = self._update_scrape_config_serialize( + _param = self._update_traces_configs_serialize( instance_id=instance_id, - job_name=job_name, project_id=project_id, - update_scrape_config_payload=update_scrape_config_payload, + update_traces_configs_payload=update_traces_configs_payload, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13839,10 +14889,9 @@ def update_scrape_config( ) _response_types_map: Dict[str, Optional[str]] = { - "202": "ScrapeConfigsResponse", - "400": "Message", + "202": "Message", + "400": "Error", "403": "PermissionDenied", - "404": "Message", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) response_data.read() @@ -13852,12 +14901,11 @@ def update_scrape_config( ).data @validate_call - def update_scrape_config_with_http_info( + def update_traces_configs_with_http_info( self, instance_id: StrictStr, - job_name: StrictStr, project_id: StrictStr, - update_scrape_config_payload: UpdateScrapeConfigPayload, + update_traces_configs_payload: UpdateTracesConfigsPayload, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13867,19 +14915,17 @@ def update_scrape_config_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ScrapeConfigsResponse]: - """update_scrape_config + ) -> ApiResponse[Message]: + """update_traces_configs - Update scrape config. + Update traces config. :param instance_id: (required) :type instance_id: str - :param job_name: (required) - :type job_name: str :param project_id: (required) :type project_id: str - :param update_scrape_config_payload: (required) - :type update_scrape_config_payload: UpdateScrapeConfigPayload + :param update_traces_configs_payload: (required) + :type update_traces_configs_payload: UpdateTracesConfigsPayload :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13902,11 +14948,10 @@ def update_scrape_config_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._update_scrape_config_serialize( + _param = self._update_traces_configs_serialize( instance_id=instance_id, - job_name=job_name, project_id=project_id, - update_scrape_config_payload=update_scrape_config_payload, + update_traces_configs_payload=update_traces_configs_payload, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13914,10 +14959,9 @@ def update_scrape_config_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - "202": "ScrapeConfigsResponse", - "400": "Message", + "202": "Message", + "400": "Error", "403": "PermissionDenied", - "404": "Message", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) response_data.read() @@ -13927,12 +14971,11 @@ def update_scrape_config_with_http_info( ) @validate_call - def update_scrape_config_without_preload_content( + def update_traces_configs_without_preload_content( self, instance_id: StrictStr, - job_name: StrictStr, project_id: StrictStr, - update_scrape_config_payload: UpdateScrapeConfigPayload, + update_traces_configs_payload: UpdateTracesConfigsPayload, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13943,18 +14986,16 @@ def update_scrape_config_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """update_scrape_config + """update_traces_configs - Update scrape config. + Update traces config. :param instance_id: (required) :type instance_id: str - :param job_name: (required) - :type job_name: str :param project_id: (required) :type project_id: str - :param update_scrape_config_payload: (required) - :type update_scrape_config_payload: UpdateScrapeConfigPayload + :param update_traces_configs_payload: (required) + :type update_traces_configs_payload: UpdateTracesConfigsPayload :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13977,11 +15018,10 @@ def update_scrape_config_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._update_scrape_config_serialize( + _param = self._update_traces_configs_serialize( instance_id=instance_id, - job_name=job_name, project_id=project_id, - update_scrape_config_payload=update_scrape_config_payload, + update_traces_configs_payload=update_traces_configs_payload, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13989,20 +15029,18 @@ def update_scrape_config_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - "202": "ScrapeConfigsResponse", - "400": "Message", + "202": "Message", + "400": "Error", "403": "PermissionDenied", - "404": "Message", } response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) return response_data.response - def _update_scrape_config_serialize( + def _update_traces_configs_serialize( self, instance_id, - job_name, project_id, - update_scrape_config_payload, + update_traces_configs_payload, _request_auth, _content_type, _headers, @@ -14023,16 +15061,14 @@ def _update_scrape_config_serialize( # process the path parameters if instance_id is not None: _path_params["instanceId"] = instance_id - if job_name is not None: - _path_params["jobName"] = job_name if project_id is not None: _path_params["projectId"] = project_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter - if update_scrape_config_payload is not None: - _body_params = update_scrape_config_payload + if update_traces_configs_payload is not None: + _body_params = update_traces_configs_payload # set the HTTP header `Accept` if "Accept" not in _header_params: @@ -14051,7 +15087,7 @@ def _update_scrape_config_serialize( return self.api_client.param_serialize( method="PUT", - resource_path="/v1/projects/{projectId}/instances/{instanceId}/scrapeconfigs/{jobName}", + resource_path="/v1/projects/{projectId}/instances/{instanceId}/traces-configs", path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/services/observability/src/stackit/observability/models/__init__.py b/services/observability/src/stackit/observability/models/__init__.py index 88dc8726..92929947 100644 --- a/services/observability/src/stackit/observability/models/__init__.py +++ b/services/observability/src/stackit/observability/models/__init__.py @@ -121,6 +121,8 @@ from stackit.observability.models.list_scrape_configs_response import ( ListScrapeConfigsResponse, ) +from stackit.observability.models.logs_config import LogsConfig +from stackit.observability.models.logs_config_response import LogsConfigResponse from stackit.observability.models.message import Message from stackit.observability.models.metrics_relabel_config import MetricsRelabelConfig from stackit.observability.models.model_global import ModelGlobal @@ -139,6 +141,8 @@ from stackit.observability.models.service_keys_list import ServiceKeysList from stackit.observability.models.static_configs import StaticConfigs from stackit.observability.models.tls_config import TLSConfig +from stackit.observability.models.trace_config import TraceConfig +from stackit.observability.models.traces_config_response import TracesConfigResponse from stackit.observability.models.update_acl_payload import UpdateACLPayload from stackit.observability.models.update_alert_config_receiver_payload import ( UpdateAlertConfigReceiverPayload, @@ -186,6 +190,9 @@ from stackit.observability.models.update_logs_alertgroup_payload import ( UpdateLogsAlertgroupPayload, ) +from stackit.observability.models.update_logs_configs_payload import ( + UpdateLogsConfigsPayload, +) from stackit.observability.models.update_metrics_storage_retention_payload import ( UpdateMetricsStorageRetentionPayload, ) @@ -195,4 +202,7 @@ from stackit.observability.models.update_scrape_config_payload_static_configs_inner import ( UpdateScrapeConfigPayloadStaticConfigsInner, ) +from stackit.observability.models.update_traces_configs_payload import ( + UpdateTracesConfigsPayload, +) from stackit.observability.models.web_hook import WebHook diff --git a/services/observability/src/stackit/observability/models/logs_config.py b/services/observability/src/stackit/observability/models/logs_config.py new file mode 100644 index 00000000..e7db18fb --- /dev/null +++ b/services/observability/src/stackit/observability/models/logs_config.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + STACKIT Observability API + + API endpoints for Observability on STACKIT + + The version of the OpenAPI document: 1.1.1 + Contact: stackit-argus@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +from __future__ import annotations + +import json +import pprint +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, Field +from typing_extensions import Annotated, Self + + +class LogsConfig(BaseModel): + """ + LogsConfig + """ # noqa: E501 + + retention: Annotated[str, Field(min_length=2, strict=True, max_length=10)] + __properties: ClassVar[List[str]] = ["retention"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of LogsConfig from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of LogsConfig from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({"retention": obj.get("retention")}) + return _obj diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/handlers_instances_get_instance_response.py b/services/observability/src/stackit/observability/models/logs_config_response.py similarity index 64% rename from services/mongodbflex/src/stackit/mongodbflex/models/handlers_instances_get_instance_response.py rename to services/observability/src/stackit/observability/models/logs_config_response.py index 9ec41420..e16b7864 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/handlers_instances_get_instance_response.py +++ b/services/observability/src/stackit/observability/models/logs_config_response.py @@ -1,16 +1,16 @@ # coding: utf-8 """ - STACKIT MongoDB Service API + STACKIT Observability API - This is the documentation for the STACKIT MongoDB Flex Service API + API endpoints for Observability on STACKIT - The version of the OpenAPI document: 1.0.0 - Contact: support@stackit.cloud + The version of the OpenAPI document: 1.1.1 + Contact: stackit-argus@mail.schwarz Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -18,19 +18,20 @@ import pprint from typing import Any, ClassVar, Dict, List, Optional, Set -from pydantic import BaseModel, ConfigDict -from typing_extensions import Self +from pydantic import BaseModel, ConfigDict, Field +from typing_extensions import Annotated, Self -from stackit.mongodbflex.models.instance import Instance +from stackit.observability.models.logs_config import LogsConfig -class HandlersInstancesGetInstanceResponse(BaseModel): - """ - HandlersInstancesGetInstanceResponse +class LogsConfigResponse(BaseModel): """ + LogsConfigResponse + """ # noqa: E501 - item: Optional[Instance] = None - __properties: ClassVar[List[str]] = ["item"] + config: LogsConfig + message: Annotated[str, Field(min_length=1, strict=True)] + __properties: ClassVar[List[str]] = ["config", "message"] model_config = ConfigDict( populate_by_name=True, @@ -49,7 +50,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of HandlersInstancesGetInstanceResponse from a JSON string""" + """Create an instance of LogsConfigResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -69,19 +70,24 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of item - if self.item: - _dict["item"] = self.item.to_dict() + # override the default output from pydantic by calling `to_dict()` of config + if self.config: + _dict["config"] = self.config.to_dict() return _dict @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of HandlersInstancesGetInstanceResponse from a dict""" + """Create an instance of LogsConfigResponse from a dict""" if obj is None: return None if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"item": Instance.from_dict(obj["item"]) if obj.get("item") is not None else None}) + _obj = cls.model_validate( + { + "config": LogsConfig.from_dict(obj["config"]) if obj.get("config") is not None else None, + "message": obj.get("message"), + } + ) return _obj diff --git a/services/observability/src/stackit/observability/models/trace_config.py b/services/observability/src/stackit/observability/models/trace_config.py new file mode 100644 index 00000000..4ba97f8a --- /dev/null +++ b/services/observability/src/stackit/observability/models/trace_config.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + STACKIT Observability API + + API endpoints for Observability on STACKIT + + The version of the OpenAPI document: 1.1.1 + Contact: stackit-argus@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +from __future__ import annotations + +import json +import pprint +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, Field +from typing_extensions import Annotated, Self + + +class TraceConfig(BaseModel): + """ + TraceConfig + """ # noqa: E501 + + retention: Annotated[str, Field(min_length=2, strict=True, max_length=10)] + __properties: ClassVar[List[str]] = ["retention"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TraceConfig from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TraceConfig from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({"retention": obj.get("retention")}) + return _obj diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/handlers_infra_get_flavors_response.py b/services/observability/src/stackit/observability/models/traces_config_response.py similarity index 61% rename from services/mongodbflex/src/stackit/mongodbflex/models/handlers_infra_get_flavors_response.py rename to services/observability/src/stackit/observability/models/traces_config_response.py index 5170deb8..2d2dd2ae 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/handlers_infra_get_flavors_response.py +++ b/services/observability/src/stackit/observability/models/traces_config_response.py @@ -1,16 +1,16 @@ # coding: utf-8 """ - STACKIT MongoDB Service API + STACKIT Observability API - This is the documentation for the STACKIT MongoDB Flex Service API + API endpoints for Observability on STACKIT - The version of the OpenAPI document: 1.0.0 - Contact: support@stackit.cloud + The version of the OpenAPI document: 1.1.1 + Contact: stackit-argus@mail.schwarz Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -18,19 +18,20 @@ import pprint from typing import Any, ClassVar, Dict, List, Optional, Set -from pydantic import BaseModel, ConfigDict -from typing_extensions import Self +from pydantic import BaseModel, ConfigDict, Field +from typing_extensions import Annotated, Self -from stackit.mongodbflex.models.handlers_infra_flavor import HandlersInfraFlavor +from stackit.observability.models.trace_config import TraceConfig -class HandlersInfraGetFlavorsResponse(BaseModel): - """ - HandlersInfraGetFlavorsResponse +class TracesConfigResponse(BaseModel): """ + TracesConfigResponse + """ # noqa: E501 - flavors: Optional[List[HandlersInfraFlavor]] = None - __properties: ClassVar[List[str]] = ["flavors"] + config: TraceConfig + message: Annotated[str, Field(min_length=1, strict=True)] + __properties: ClassVar[List[str]] = ["config", "message"] model_config = ConfigDict( populate_by_name=True, @@ -49,7 +50,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of HandlersInfraGetFlavorsResponse from a JSON string""" + """Create an instance of TracesConfigResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -69,18 +70,14 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flavors (list) - _items = [] - if self.flavors: - for _item in self.flavors: - if _item: - _items.append(_item.to_dict()) - _dict["flavors"] = _items + # override the default output from pydantic by calling `to_dict()` of config + if self.config: + _dict["config"] = self.config.to_dict() return _dict @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of HandlersInfraGetFlavorsResponse from a dict""" + """Create an instance of TracesConfigResponse from a dict""" if obj is None: return None @@ -89,11 +86,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate( { - "flavors": ( - [HandlersInfraFlavor.from_dict(_item) for _item in obj["flavors"]] - if obj.get("flavors") is not None - else None - ) + "config": TraceConfig.from_dict(obj["config"]) if obj.get("config") is not None else None, + "message": obj.get("message"), } ) return _obj diff --git a/services/observability/src/stackit/observability/models/update_logs_configs_payload.py b/services/observability/src/stackit/observability/models/update_logs_configs_payload.py new file mode 100644 index 00000000..0f0c428a --- /dev/null +++ b/services/observability/src/stackit/observability/models/update_logs_configs_payload.py @@ -0,0 +1,84 @@ +# coding: utf-8 + +""" + STACKIT Observability API + + API endpoints for Observability on STACKIT + + The version of the OpenAPI document: 1.1.1 + Contact: stackit-argus@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +from __future__ import annotations + +import json +import pprint +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, Field +from typing_extensions import Annotated, Self + + +class UpdateLogsConfigsPayload(BaseModel): + """ + UpdateLogsConfigsPayload + """ # noqa: E501 + + retention: Annotated[str, Field(min_length=2, strict=True, max_length=8)] = Field( + description="How long to keep the logs `Additional Validators:` * Should be a valid time string * Should not be longer than 30 days" + ) + __properties: ClassVar[List[str]] = ["retention"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of UpdateLogsConfigsPayload from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of UpdateLogsConfigsPayload from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({"retention": obj.get("retention")}) + return _obj diff --git a/services/observability/src/stackit/observability/models/update_traces_configs_payload.py b/services/observability/src/stackit/observability/models/update_traces_configs_payload.py new file mode 100644 index 00000000..3a630fa6 --- /dev/null +++ b/services/observability/src/stackit/observability/models/update_traces_configs_payload.py @@ -0,0 +1,84 @@ +# coding: utf-8 + +""" + STACKIT Observability API + + API endpoints for Observability on STACKIT + + The version of the OpenAPI document: 1.1.1 + Contact: stackit-argus@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +from __future__ import annotations + +import json +import pprint +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, Field +from typing_extensions import Annotated, Self + + +class UpdateTracesConfigsPayload(BaseModel): + """ + UpdateTracesConfigsPayload + """ # noqa: E501 + + retention: Annotated[str, Field(min_length=2, strict=True, max_length=8)] = Field( + description="How long to keep the traces `Additional Validators:` * Should be a valid time string * Should not be bigger than 30 days" + ) + __properties: ClassVar[List[str]] = ["retention"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of UpdateTracesConfigsPayload from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of UpdateTracesConfigsPayload from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({"retention": obj.get("retention")}) + return _obj