@@ -6,6 +6,7 @@ isort:skip_file
66import builtins
77import collections .abc
88import google .protobuf .descriptor
9+ import google .protobuf .field_mask_pb2
910import google .protobuf .internal .containers
1011import google .protobuf .message
1112import typing
@@ -196,6 +197,107 @@ class CreateInstanceMetadata(google.protobuf.message.Message):
196197
197198global___CreateInstanceMetadata = CreateInstanceMetadata
198199
200+ @typing .final
201+ class UpdateInstanceRequest (google .protobuf .message .Message ):
202+ """Request message for InstanceService.Update."""
203+
204+ DESCRIPTOR : google .protobuf .descriptor .Descriptor
205+
206+ @typing .final
207+ class LabelsEntry (google .protobuf .message .Message ):
208+ DESCRIPTOR : google .protobuf .descriptor .Descriptor
209+
210+ KEY_FIELD_NUMBER : builtins .int
211+ VALUE_FIELD_NUMBER : builtins .int
212+ key : builtins .str
213+ value : builtins .str
214+ def __init__ (
215+ self ,
216+ * ,
217+ key : builtins .str = ...,
218+ value : builtins .str = ...,
219+ ) -> None : ...
220+ def ClearField (self , field_name : typing .Literal ["key" , b"key" , "value" , b"value" ]) -> None : ...
221+
222+ INSTANCE_ID_FIELD_NUMBER : builtins .int
223+ NAME_FIELD_NUMBER : builtins .int
224+ DESCRIPTION_FIELD_NUMBER : builtins .int
225+ LABELS_FIELD_NUMBER : builtins .int
226+ BACKUP_RETAIN_PERIOD_DAYS_FIELD_NUMBER : builtins .int
227+ RESOURCE_PRESET_ID_FIELD_NUMBER : builtins .int
228+ MAINTENANCE_DELETE_UNTAGGED_FIELD_NUMBER : builtins .int
229+ DELETION_PROTECTION_FIELD_NUMBER : builtins .int
230+ APPROVAL_RULES_ID_FIELD_NUMBER : builtins .int
231+ APPROVAL_RULES_TOKEN_FIELD_NUMBER : builtins .int
232+ DISK_SIZE_FIELD_NUMBER : builtins .int
233+ UPDATE_MASK_FIELD_NUMBER : builtins .int
234+ instance_id : builtins .str
235+ """ID of the GitLab instance to update."""
236+ name : builtins .str
237+ """Name of the instance (must be unique within the folder)."""
238+ description : builtins .str
239+ """Description of the instance."""
240+ backup_retain_period_days : builtins .int
241+ """Number of days to retain backups."""
242+ resource_preset_id : builtins .str
243+ """ID of the resource preset for computational resources."""
244+ maintenance_delete_untagged : builtins .bool
245+ """Whether to delete untagged resources during maintenance."""
246+ deletion_protection : builtins .bool
247+ """Whether deletion protection is enabled."""
248+ approval_rules_id : builtins .str
249+ """ID of approval rules for the instance."""
250+ approval_rules_token : builtins .str
251+ """Token of approval rules for the instance."""
252+ disk_size : builtins .int
253+ """Disk size in bytes."""
254+ @property
255+ def labels (self ) -> google .protobuf .internal .containers .ScalarMap [builtins .str , builtins .str ]:
256+ """Custom labels for the instance as `` key:value `` pairs. For example, "env": "prod" """
257+
258+ @property
259+ def update_mask (self ) -> google .protobuf .field_mask_pb2 .FieldMask :
260+ """Field mask that specifies which attributes of the trail are going to be updated."""
261+
262+ def __init__ (
263+ self ,
264+ * ,
265+ instance_id : builtins .str = ...,
266+ name : builtins .str = ...,
267+ description : builtins .str = ...,
268+ labels : collections .abc .Mapping [builtins .str , builtins .str ] | None = ...,
269+ backup_retain_period_days : builtins .int = ...,
270+ resource_preset_id : builtins .str = ...,
271+ maintenance_delete_untagged : builtins .bool = ...,
272+ deletion_protection : builtins .bool = ...,
273+ approval_rules_id : builtins .str = ...,
274+ approval_rules_token : builtins .str = ...,
275+ disk_size : builtins .int = ...,
276+ update_mask : google .protobuf .field_mask_pb2 .FieldMask | None = ...,
277+ ) -> None : ...
278+ def HasField (self , field_name : typing .Literal ["update_mask" , b"update_mask" ]) -> builtins .bool : ...
279+ def ClearField (self , field_name : typing .Literal ["approval_rules_id" , b"approval_rules_id" , "approval_rules_token" , b"approval_rules_token" , "backup_retain_period_days" , b"backup_retain_period_days" , "deletion_protection" , b"deletion_protection" , "description" , b"description" , "disk_size" , b"disk_size" , "instance_id" , b"instance_id" , "labels" , b"labels" , "maintenance_delete_untagged" , b"maintenance_delete_untagged" , "name" , b"name" , "resource_preset_id" , b"resource_preset_id" , "update_mask" , b"update_mask" ]) -> None : ...
280+
281+ global___UpdateInstanceRequest = UpdateInstanceRequest
282+
283+ @typing .final
284+ class UpdateInstanceMetadata (google .protobuf .message .Message ):
285+ """Metadata message for InstanceService.Update."""
286+
287+ DESCRIPTOR : google .protobuf .descriptor .Descriptor
288+
289+ INSTANCE_ID_FIELD_NUMBER : builtins .int
290+ instance_id : builtins .str
291+ """ID of the GitLab instance to update."""
292+ def __init__ (
293+ self ,
294+ * ,
295+ instance_id : builtins .str = ...,
296+ ) -> None : ...
297+ def ClearField (self , field_name : typing .Literal ["instance_id" , b"instance_id" ]) -> None : ...
298+
299+ global___UpdateInstanceMetadata = UpdateInstanceMetadata
300+
199301@typing .final
200302class DeleteInstanceRequest (google .protobuf .message .Message ):
201303 """Request message for InstanceService.Delete."""
0 commit comments