@@ -106,6 +106,28 @@ service Bookstore {
106106 option (google.api.method_signature ) = "parent" ;
107107 }
108108
109+ // An aep-compliant Get method for deleted_publisher.
110+ rpc GetDeletedPublisher (GetDeletedPublisherRequest ) returns (DeletedPublisher ) {
111+ option (google.api.http ) = {get : "/{path=deleted-publishers/*}" };
112+
113+ option (google.api.method_signature ) = "path" ;
114+ }
115+
116+ // An aep-compliant List method for deleted_publishers.
117+ rpc ListDeletedPublishers (ListDeletedPublishersRequest ) returns (ListDeletedPublishersResponse ) {
118+ option (google.api.http ) = {get : "/deleted_publishers" };
119+
120+ option (google.api.method_signature ) = "parent" ;
121+ }
122+
123+ // undelete a deleted_publisher.
124+ rpc UndeleteDeletedPublisher (UndeleteDeletedPublisherRequest ) returns (UndeleteDeletedPublisherResponse ) {
125+ option (google.api.http ) = {
126+ post : "/{path=deleted-publishers/*}:undelete"
127+ body : "*"
128+ };
129+ }
130+
109131 // An aep-compliant Create method for isbn.
110132 rpc CreateIsbn (CreateIsbnRequest ) returns (Isbn ) {
111133 option (google.api.http ) = {
@@ -351,6 +373,25 @@ message BookEdition {
351373 string path = 10018 ;
352374}
353375
376+ // A DeletedPublisher.
377+ message DeletedPublisher {
378+ option (google.api.resource ) = {
379+ type : "bookstore.example.com/deleted_publisher"
380+ pattern : ["deleted-publishers/{deleted_publisher_id}" ]
381+ plural : "deleted_publishers"
382+ singular : "deleted_publisher"
383+ };
384+
385+ // Field for description.
386+ string description = 1 ;
387+
388+ // Field for expire_time.
389+ string expire_time = 2 [json_name = "expire_time" ];
390+
391+ // Field for path.
392+ string path = 10018 ;
393+ }
394+
354395// A Isbn.
355396message Isbn {
356397 option (google.api.resource ) = {
@@ -650,6 +691,59 @@ message ListBookEditionsResponse {
650691 string next_page_token = 10011 [json_name = "next_page_token" ];
651692}
652693
694+ // Request message for the Getdeleted_publisher method
695+ message GetDeletedPublisherRequest {
696+ // The globally unique identifier for the resource
697+ string path = 10018 [
698+ (aep.api.field_info ) = {
699+ resource_reference : ["bookstore.example.com/deleted_publisher" ]
700+ field_behavior : [FIELD_BEHAVIOR_REQUIRED]
701+ },
702+ (google.api.field_behavior ) = REQUIRED
703+ ];
704+ }
705+
706+ // Request message for the Listdeleted_publisher method
707+ message ListDeletedPublishersRequest {
708+ // A field for the parent of deleted_publisher
709+ string parent = 10013 [
710+ (aep.api.field_info ) = {
711+ field_behavior : [FIELD_BEHAVIOR_REQUIRED]
712+ },
713+ (google.api.field_behavior ) = REQUIRED
714+ ];
715+
716+ // The page token indicating the starting point of the page
717+ string page_token = 10010 [json_name = "page_token" ];
718+
719+ // The maximum number of resources to return in a single page.
720+ int32 max_page_size = 10017 [json_name = "max_page_size" ];
721+ }
722+
723+ // Response message for the Listdeleted_publisher method
724+ message ListDeletedPublishersResponse {
725+ // A list of deleted_publishers
726+ repeated DeletedPublisher results = 10016 ;
727+
728+ // The page token indicating the ending point of this response.
729+ string next_page_token = 10011 [json_name = "next_page_token" ];
730+ }
731+
732+ // Response message for the undelete method
733+ message UndeleteDeletedPublisherResponse {}
734+
735+ // Request message for the undelete method
736+ message UndeleteDeletedPublisherRequest {
737+ // The globally unique identifier for the resource
738+ string path = 10018 [
739+ (aep.api.field_info ) = {
740+ resource_reference : ["bookstore.example.com/deleted_publisher" ]
741+ field_behavior : [FIELD_BEHAVIOR_REQUIRED]
742+ },
743+ (google.api.field_behavior ) = REQUIRED
744+ ];
745+ }
746+
653747// A Create request for a isbn resource.
654748message CreateIsbnRequest {
655749 // A field for the parent of isbn
0 commit comments