Skip to content

Commit 0658ac0

Browse files
feat: regenerate proto
1 parent 658b5a7 commit 0658ac0

23 files changed

+945
-594
lines changed

yandex/cloud/baremetal/v1alpha/standard_image_pb2.py

Lines changed: 37 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
"""
2+
@generated by mypy-protobuf. Do not edit manually!
3+
isort:skip_file
4+
"""
5+
6+
import builtins
7+
import google.protobuf.descriptor
8+
import google.protobuf.message
9+
import typing
10+
11+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
12+
13+
@typing.final
14+
class StandardImage(google.protobuf.message.Message):
15+
"""A Standard Image resource."""
16+
17+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
18+
19+
ID_FIELD_NUMBER: builtins.int
20+
NAME_FIELD_NUMBER: builtins.int
21+
FOLDER_ID_FIELD_NUMBER: builtins.int
22+
id: builtins.str
23+
"""ID of the standard image."""
24+
name: builtins.str
25+
"""Name of the standard image."""
26+
folder_id: builtins.str
27+
"""Folder of standard image."""
28+
def __init__(
29+
self,
30+
*,
31+
id: builtins.str = ...,
32+
name: builtins.str = ...,
33+
folder_id: builtins.str = ...,
34+
) -> None: ...
35+
def ClearField(self, field_name: typing.Literal["folder_id", b"folder_id", "id", b"id", "name", b"name"]) -> None: ...
36+
37+
global___StandardImage = StandardImage
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2+
"""Client and server classes corresponding to protobuf-defined services."""
3+
import grpc
4+
import warnings
5+
6+
7+
GRPC_GENERATED_VERSION = '1.70.0'
8+
GRPC_VERSION = grpc.__version__
9+
_version_not_supported = False
10+
11+
try:
12+
from grpc._utilities import first_version_is_lower
13+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
14+
except ImportError:
15+
_version_not_supported = True
16+
17+
if _version_not_supported:
18+
raise RuntimeError(
19+
f'The grpc package installed is at version {GRPC_VERSION},'
20+
+ f' but the generated code in yandex/cloud/baremetal/v1alpha/standard_image_pb2_grpc.py depends on'
21+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
22+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
23+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
24+
)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
"""
2+
@generated by mypy-protobuf. Do not edit manually!
3+
isort:skip_file
4+
"""
5+
6+
import abc
7+
import collections.abc
8+
import grpc
9+
import grpc.aio
10+
import typing
11+
12+
_T = typing.TypeVar("_T")
13+
14+
class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...
15+
16+
class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
17+
...

yandex/cloud/baremetal/v1alpha/standard_image_service_pb2.py

Lines changed: 56 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
"""
2+
@generated by mypy-protobuf. Do not edit manually!
3+
isort:skip_file
4+
"""
5+
6+
import builtins
7+
import collections.abc
8+
import google.protobuf.descriptor
9+
import google.protobuf.internal.containers
10+
import google.protobuf.message
11+
import typing
12+
import yandex.cloud.baremetal.v1alpha.standard_image_pb2
13+
14+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
15+
16+
@typing.final
17+
class GetStandardImageRequest(google.protobuf.message.Message):
18+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
19+
20+
STANDARD_IMAGE_ID_FIELD_NUMBER: builtins.int
21+
standard_image_id: builtins.str
22+
"""ID of the StandardImage resource to return.
23+
24+
To get the standard image ID, use a [StandardImageService.List] request.
25+
"""
26+
def __init__(
27+
self,
28+
*,
29+
standard_image_id: builtins.str = ...,
30+
) -> None: ...
31+
def ClearField(self, field_name: typing.Literal["standard_image_id", b"standard_image_id"]) -> None: ...
32+
33+
global___GetStandardImageRequest = GetStandardImageRequest
34+
35+
@typing.final
36+
class ListStandardImagesRequest(google.protobuf.message.Message):
37+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
38+
39+
PAGE_SIZE_FIELD_NUMBER: builtins.int
40+
PAGE_TOKEN_FIELD_NUMBER: builtins.int
41+
ORDER_BY_FIELD_NUMBER: builtins.int
42+
FILTER_FIELD_NUMBER: builtins.int
43+
FOLDER_ID_FIELD_NUMBER: builtins.int
44+
page_size: builtins.int
45+
"""The maximum number of results per page to return. If the number of available
46+
results is greater than `page_size`,
47+
the service returns a [ListStandardImagesResponse.next_page_token]
48+
that can be used to get the next page of results in subsequent list requests.
49+
Default value is 20.
50+
"""
51+
page_token: builtins.str
52+
"""Page token. To get the next page of results, set `page_token` to the
53+
[ListStandardImagesResponse.next_page_token] returned by a previous list request.
54+
"""
55+
order_by: builtins.str
56+
"""By which column the listing should be ordered and in which direction,
57+
format is "createdAt desc". "id asc" if omitted.
58+
Supported fields: ["id", "name"].
59+
Both snake_case and camelCase are supported for fields.
60+
"""
61+
filter: builtins.str
62+
"""A filter expression that filters resources listed in the response.
63+
The expression consists of one or more conditions united by `AND` operator: `<condition1> [AND <condition2> [<...> AND <conditionN>]]`.
64+
65+
Each condition has the form `<field> <operator> <value>`, where:
66+
1. `<field>` is the field name. Currently you can use filtering only on the limited number of fields.
67+
2. `<operator>` is a logical operator, one of `=` (equal), `:` (substring).
68+
3. `<value>` represents a value.
69+
String values should be written in double (`"`) or single (`'`) quotes. C-style escape sequences are supported (`\\"` turns to `"`, `\\'` to `'`, `\\\\` to backslash).
70+
Example: "key1='value' AND key2='value'"
71+
Supported operators: ["AND"].
72+
Supported fields: ["id", "name"].
73+
Both snake_case and camelCase are supported for fields.
74+
"""
75+
folder_id: builtins.str
76+
"""ID of the folder to return a StandardImage resource for.
77+
78+
To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request. Pass the "baremetal-standard-images" folder to get general images.
79+
"""
80+
def __init__(
81+
self,
82+
*,
83+
page_size: builtins.int = ...,
84+
page_token: builtins.str = ...,
85+
order_by: builtins.str = ...,
86+
filter: builtins.str = ...,
87+
folder_id: builtins.str = ...,
88+
) -> None: ...
89+
def ClearField(self, field_name: typing.Literal["filter", b"filter", "folder_id", b"folder_id", "order_by", b"order_by", "page_size", b"page_size", "page_token", b"page_token"]) -> None: ...
90+
91+
global___ListStandardImagesRequest = ListStandardImagesRequest
92+
93+
@typing.final
94+
class ListStandardImagesResponse(google.protobuf.message.Message):
95+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
96+
97+
STANDARD_IMAGES_FIELD_NUMBER: builtins.int
98+
NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int
99+
next_page_token: builtins.str
100+
"""Token for getting the next page of the list. If the number of results is greater than
101+
[ListStandardImagesRequest.page_size], use `next_page_token` as the value
102+
for the [ListStandardImagesRequest.page_token] parameter in the next list request.
103+
104+
Each subsequent page will have its own `next_page_token` to continue paging through the results.
105+
"""
106+
@property
107+
def standard_images(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.baremetal.v1alpha.standard_image_pb2.StandardImage]:
108+
"""List of StandardImage resources."""
109+
110+
def __init__(
111+
self,
112+
*,
113+
standard_images: collections.abc.Iterable[yandex.cloud.baremetal.v1alpha.standard_image_pb2.StandardImage] | None = ...,
114+
next_page_token: builtins.str = ...,
115+
) -> None: ...
116+
def ClearField(self, field_name: typing.Literal["next_page_token", b"next_page_token", "standard_images", b"standard_images"]) -> None: ...
117+
118+
global___ListStandardImagesResponse = ListStandardImagesResponse

0 commit comments

Comments
 (0)