|
41 | 41 | 'CreateInstanceRequest', |
42 | 42 | 'UpdateInstanceRequest', |
43 | 43 | 'DeleteInstanceRequest', |
| 44 | + 'GcsSource', |
| 45 | + 'InputConfig', |
| 46 | + 'GcsDestination', |
| 47 | + 'OutputConfig', |
44 | 48 | 'OperationMetadata', |
| 49 | + 'LocationMetadata', |
| 50 | + 'ZoneMetadata', |
45 | 51 | 'TlsCertificate', |
46 | 52 | }, |
47 | 53 | ) |
@@ -920,6 +926,79 @@ class DeleteInstanceRequest(proto.Message): |
920 | 926 | ) |
921 | 927 |
|
922 | 928 |
|
| 929 | +class GcsSource(proto.Message): |
| 930 | + r"""The Cloud Storage location for the input content |
| 931 | +
|
| 932 | + Attributes: |
| 933 | + uri (str): |
| 934 | + Required. Source data URI. (e.g. |
| 935 | + 'gs://my_bucket/my_object'). |
| 936 | + """ |
| 937 | + |
| 938 | + uri: str = proto.Field( |
| 939 | + proto.STRING, |
| 940 | + number=1, |
| 941 | + ) |
| 942 | + |
| 943 | + |
| 944 | +class InputConfig(proto.Message): |
| 945 | + r"""The input content |
| 946 | +
|
| 947 | + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields |
| 948 | +
|
| 949 | + Attributes: |
| 950 | + gcs_source (google.cloud.redis_v1.types.GcsSource): |
| 951 | + Google Cloud Storage location where input |
| 952 | + content is located. |
| 953 | +
|
| 954 | + This field is a member of `oneof`_ ``source``. |
| 955 | + """ |
| 956 | + |
| 957 | + gcs_source: 'GcsSource' = proto.Field( |
| 958 | + proto.MESSAGE, |
| 959 | + number=1, |
| 960 | + oneof='source', |
| 961 | + message='GcsSource', |
| 962 | + ) |
| 963 | + |
| 964 | + |
| 965 | +class GcsDestination(proto.Message): |
| 966 | + r"""The Cloud Storage location for the output content |
| 967 | +
|
| 968 | + Attributes: |
| 969 | + uri (str): |
| 970 | + Required. Data destination URI (e.g. |
| 971 | + 'gs://my_bucket/my_object'). Existing files will be |
| 972 | + overwritten. |
| 973 | + """ |
| 974 | + |
| 975 | + uri: str = proto.Field( |
| 976 | + proto.STRING, |
| 977 | + number=1, |
| 978 | + ) |
| 979 | + |
| 980 | + |
| 981 | +class OutputConfig(proto.Message): |
| 982 | + r"""The output content |
| 983 | +
|
| 984 | + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields |
| 985 | +
|
| 986 | + Attributes: |
| 987 | + gcs_destination (google.cloud.redis_v1.types.GcsDestination): |
| 988 | + Google Cloud Storage destination for output |
| 989 | + content. |
| 990 | +
|
| 991 | + This field is a member of `oneof`_ ``destination``. |
| 992 | + """ |
| 993 | + |
| 994 | + gcs_destination: 'GcsDestination' = proto.Field( |
| 995 | + proto.MESSAGE, |
| 996 | + number=1, |
| 997 | + oneof='destination', |
| 998 | + message='GcsDestination', |
| 999 | + ) |
| 1000 | + |
| 1001 | + |
923 | 1002 | class OperationMetadata(proto.Message): |
924 | 1003 | r"""Represents the v1 metadata of the long-running operation. |
925 | 1004 |
|
@@ -973,6 +1052,36 @@ class OperationMetadata(proto.Message): |
973 | 1052 | ) |
974 | 1053 |
|
975 | 1054 |
|
| 1055 | +class LocationMetadata(proto.Message): |
| 1056 | + r"""This location metadata represents additional configuration options |
| 1057 | + for a given location where a Redis instance may be created. All |
| 1058 | + fields are output only. It is returned as content of the |
| 1059 | + ``google.cloud.location.Location.metadata`` field. |
| 1060 | +
|
| 1061 | + Attributes: |
| 1062 | + available_zones (MutableMapping[str, google.cloud.redis_v1.types.ZoneMetadata]): |
| 1063 | + Output only. The set of available zones in the location. The |
| 1064 | + map is keyed by the lowercase ID of each zone, as defined by |
| 1065 | + GCE. These keys can be specified in ``location_id`` or |
| 1066 | + ``alternative_location_id`` fields when creating a Redis |
| 1067 | + instance. |
| 1068 | + """ |
| 1069 | + |
| 1070 | + available_zones: MutableMapping[str, 'ZoneMetadata'] = proto.MapField( |
| 1071 | + proto.STRING, |
| 1072 | + proto.MESSAGE, |
| 1073 | + number=1, |
| 1074 | + message='ZoneMetadata', |
| 1075 | + ) |
| 1076 | + |
| 1077 | + |
| 1078 | +class ZoneMetadata(proto.Message): |
| 1079 | + r"""Defines specific information for a particular zone. Currently |
| 1080 | + empty and reserved for future use only. |
| 1081 | +
|
| 1082 | + """ |
| 1083 | + |
| 1084 | + |
976 | 1085 | class TlsCertificate(proto.Message): |
977 | 1086 | r"""TlsCertificate Resource |
978 | 1087 |
|
|
0 commit comments