@@ -32,11 +32,6 @@ option java_outer_classname = "CloudFilestoreServiceProto";
3232option java_package = "com.google.cloud.filestore.v1beta1" ;
3333option php_namespace = "Google\\Cloud\\Filestore\\V1beta1" ;
3434
35- option (google.api.resource_definition ) = {
36- type : "file.googleapis.com/Snapshot"
37- pattern : "projects/{project}/locations/{location}/snapshots/{snapshot}"
38- };
39-
4035// Configures and manages Cloud Filestore resources.
4136//
4237// Cloud Filestore Manager v1beta1.
@@ -550,6 +545,49 @@ message ListInstancesResponse {
550545 repeated string unreachable = 3 ;
551546}
552547
548+ // A Cloud Filestore snapshot.
549+ message Snapshot {
550+ option (google.api.resource ) = {
551+ type : "file.googleapis.com/Snapshot"
552+ pattern : "projects/{project}/locations/{location}/instances/{instance}/snapshots/{snapshot}"
553+ };
554+
555+ // The snapshot state.
556+ enum State {
557+ // State not set.
558+ STATE_UNSPECIFIED = 0 ;
559+
560+ // Snapshot is being created.
561+ CREATING = 1 ;
562+
563+ // Snapshot is available for use.
564+ READY = 3 ;
565+
566+ // Snapshot is being deleted.
567+ DELETING = 4 ;
568+ }
569+
570+ // Output only. The resource name of the snapshot, in the format
571+ // `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
572+ string name = 1 [(google.api.field_behavior ) = OUTPUT_ONLY ];
573+
574+ // A description of the snapshot with 2048 characters or less.
575+ // Requests with longer descriptions will be rejected.
576+ string description = 2 ;
577+
578+ // Output only. The snapshot state.
579+ State state = 3 [(google.api.field_behavior ) = OUTPUT_ONLY ];
580+
581+ // Output only. The time when the snapshot was created.
582+ google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior ) = OUTPUT_ONLY ];
583+
584+ // Resource labels to represent user provided metadata.
585+ map <string , string > labels = 5 ;
586+
587+ // Output only. The amount of bytes needed to allocate a full copy of the snapshot content
588+ int64 filesystem_used_bytes = 12 [(google.api.field_behavior ) = OUTPUT_ONLY ];
589+ }
590+
553591// A Cloud Filestore backup.
554592message Backup {
555593 option (google.api.resource ) = {
0 commit comments