-
Notifications
You must be signed in to change notification settings - Fork 2.3k
/
apphub_service.proto
1108 lines (972 loc) · 43.3 KB
/
apphub_service.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
syntax = "proto3";
package google.cloud.apphub.v1;
import "google/api/annotations.proto";
import "google/api/client.proto";
import "google/api/field_behavior.proto";
import "google/api/resource.proto";
import "google/cloud/apphub/v1/application.proto";
import "google/cloud/apphub/v1/service.proto";
import "google/cloud/apphub/v1/service_project_attachment.proto";
import "google/cloud/apphub/v1/workload.proto";
import "google/longrunning/operations.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/field_mask.proto";
import "google/protobuf/timestamp.proto";
option csharp_namespace = "Google.Cloud.AppHub.V1";
option go_package = "cloud.google.com/go/apphub/apiv1/apphubpb;apphubpb";
option java_multiple_files = true;
option java_outer_classname = "ApphubServiceProto";
option java_package = "com.google.cloud.apphub.v1";
option php_namespace = "Google\\Cloud\\AppHub\\V1";
option ruby_package = "Google::Cloud::AppHub::V1";
// The App Hub API allows you to manage App Hub resources.
service AppHub {
option (google.api.default_host) = "apphub.googleapis.com";
option (google.api.oauth_scopes) =
"https://www.googleapis.com/auth/cloud-platform";
// Lists a service project attachment for a given service project. You can
// call this API from any project to find if it is attached to a host project.
rpc LookupServiceProjectAttachment(LookupServiceProjectAttachmentRequest)
returns (LookupServiceProjectAttachmentResponse) {
option (google.api.http) = {
get: "/v1/{name=projects/*/locations/*}:lookupServiceProjectAttachment"
};
option (google.api.method_signature) = "name";
}
// Lists service projects attached to the host project.
rpc ListServiceProjectAttachments(ListServiceProjectAttachmentsRequest)
returns (ListServiceProjectAttachmentsResponse) {
option (google.api.http) = {
get: "/v1/{parent=projects/*/locations/*}/serviceProjectAttachments"
};
option (google.api.method_signature) = "parent";
}
// Attaches a service project to the host project.
rpc CreateServiceProjectAttachment(CreateServiceProjectAttachmentRequest)
returns (google.longrunning.Operation) {
option (google.api.http) = {
post: "/v1/{parent=projects/*/locations/*}/serviceProjectAttachments"
body: "service_project_attachment"
};
option (google.api.method_signature) =
"parent,service_project_attachment,service_project_attachment_id";
option (google.longrunning.operation_info) = {
response_type: "ServiceProjectAttachment"
metadata_type: "OperationMetadata"
};
}
// Gets a service project attachment.
rpc GetServiceProjectAttachment(GetServiceProjectAttachmentRequest)
returns (ServiceProjectAttachment) {
option (google.api.http) = {
get: "/v1/{name=projects/*/locations/*/serviceProjectAttachments/*}"
};
option (google.api.method_signature) = "name";
}
// Deletes a service project attachment.
rpc DeleteServiceProjectAttachment(DeleteServiceProjectAttachmentRequest)
returns (google.longrunning.Operation) {
option (google.api.http) = {
delete: "/v1/{name=projects/*/locations/*/serviceProjectAttachments/*}"
};
option (google.api.method_signature) = "name";
option (google.longrunning.operation_info) = {
response_type: "google.protobuf.Empty"
metadata_type: "OperationMetadata"
};
}
// Detaches a service project from a host project.
// You can call this API from any service project without needing access to
// the host project that it is attached to.
rpc DetachServiceProjectAttachment(DetachServiceProjectAttachmentRequest)
returns (DetachServiceProjectAttachmentResponse) {
option (google.api.http) = {
post: "/v1/{name=projects/*/locations/*}:detachServiceProjectAttachment"
body: "*"
};
option (google.api.method_signature) = "name";
}
// Lists Discovered Services that can be added to an Application in a host
// project and location.
rpc ListDiscoveredServices(ListDiscoveredServicesRequest)
returns (ListDiscoveredServicesResponse) {
option (google.api.http) = {
get: "/v1/{parent=projects/*/locations/*}/discoveredServices"
};
option (google.api.method_signature) = "parent";
}
// Gets a Discovered Service in a host project and location.
rpc GetDiscoveredService(GetDiscoveredServiceRequest)
returns (DiscoveredService) {
option (google.api.http) = {
get: "/v1/{name=projects/*/locations/*/discoveredServices/*}"
};
option (google.api.method_signature) = "name";
}
// Lists a Discovered Service in a host project and location, with a
// given resource URI.
rpc LookupDiscoveredService(LookupDiscoveredServiceRequest)
returns (LookupDiscoveredServiceResponse) {
option (google.api.http) = {
get: "/v1/{parent=projects/*/locations/*}/discoveredServices:lookup"
};
option (google.api.method_signature) = "parent,uri";
}
// Lists Services in an Application.
rpc ListServices(ListServicesRequest) returns (ListServicesResponse) {
option (google.api.http) = {
get: "/v1/{parent=projects/*/locations/*/applications/*}/services"
};
option (google.api.method_signature) = "parent";
}
// Creates a Service in an Application.
rpc CreateService(CreateServiceRequest)
returns (google.longrunning.Operation) {
option (google.api.http) = {
post: "/v1/{parent=projects/*/locations/*/applications/*}/services"
body: "service"
};
option (google.api.method_signature) = "parent,service,service_id";
option (google.longrunning.operation_info) = {
response_type: "Service"
metadata_type: "OperationMetadata"
};
}
// Gets a Service in an Application.
rpc GetService(GetServiceRequest) returns (Service) {
option (google.api.http) = {
get: "/v1/{name=projects/*/locations/*/applications/*/services/*}"
};
option (google.api.method_signature) = "name";
}
// Updates a Service in an Application.
rpc UpdateService(UpdateServiceRequest)
returns (google.longrunning.Operation) {
option (google.api.http) = {
patch: "/v1/{service.name=projects/*/locations/*/applications/*/services/*}"
body: "service"
};
option (google.api.method_signature) = "service,update_mask";
option (google.longrunning.operation_info) = {
response_type: "Service"
metadata_type: "OperationMetadata"
};
}
// Deletes a Service from an Application.
rpc DeleteService(DeleteServiceRequest)
returns (google.longrunning.Operation) {
option (google.api.http) = {
delete: "/v1/{name=projects/*/locations/*/applications/*/services/*}"
};
option (google.api.method_signature) = "name";
option (google.longrunning.operation_info) = {
response_type: "google.protobuf.Empty"
metadata_type: "OperationMetadata"
};
}
// Lists Discovered Workloads that can be added to an Application in a host
// project and location.
rpc ListDiscoveredWorkloads(ListDiscoveredWorkloadsRequest)
returns (ListDiscoveredWorkloadsResponse) {
option (google.api.http) = {
get: "/v1/{parent=projects/*/locations/*}/discoveredWorkloads"
};
option (google.api.method_signature) = "parent";
}
// Gets a Discovered Workload in a host project and location.
rpc GetDiscoveredWorkload(GetDiscoveredWorkloadRequest)
returns (DiscoveredWorkload) {
option (google.api.http) = {
get: "/v1/{name=projects/*/locations/*/discoveredWorkloads/*}"
};
option (google.api.method_signature) = "name";
}
// Lists a Discovered Workload in a host project and location, with a
// given resource URI.
rpc LookupDiscoveredWorkload(LookupDiscoveredWorkloadRequest)
returns (LookupDiscoveredWorkloadResponse) {
option (google.api.http) = {
get: "/v1/{parent=projects/*/locations/*}/discoveredWorkloads:lookup"
};
option (google.api.method_signature) = "parent,uri";
}
// Lists Workloads in an Application.
rpc ListWorkloads(ListWorkloadsRequest) returns (ListWorkloadsResponse) {
option (google.api.http) = {
get: "/v1/{parent=projects/*/locations/*/applications/*}/workloads"
};
option (google.api.method_signature) = "parent";
}
// Creates a Workload in an Application.
rpc CreateWorkload(CreateWorkloadRequest)
returns (google.longrunning.Operation) {
option (google.api.http) = {
post: "/v1/{parent=projects/*/locations/*/applications/*}/workloads"
body: "workload"
};
option (google.api.method_signature) = "parent,workload,workload_id";
option (google.longrunning.operation_info) = {
response_type: "Workload"
metadata_type: "OperationMetadata"
};
}
// Gets a Workload in an Application.
rpc GetWorkload(GetWorkloadRequest) returns (Workload) {
option (google.api.http) = {
get: "/v1/{name=projects/*/locations/*/applications/*/workloads/*}"
};
option (google.api.method_signature) = "name";
}
// Updates a Workload in an Application.
rpc UpdateWorkload(UpdateWorkloadRequest)
returns (google.longrunning.Operation) {
option (google.api.http) = {
patch: "/v1/{workload.name=projects/*/locations/*/applications/*/workloads/*}"
body: "workload"
};
option (google.api.method_signature) = "workload,update_mask";
option (google.longrunning.operation_info) = {
response_type: "Workload"
metadata_type: "OperationMetadata"
};
}
// Deletes a Workload from an Application.
rpc DeleteWorkload(DeleteWorkloadRequest)
returns (google.longrunning.Operation) {
option (google.api.http) = {
delete: "/v1/{name=projects/*/locations/*/applications/*/workloads/*}"
};
option (google.api.method_signature) = "name";
option (google.longrunning.operation_info) = {
response_type: "google.protobuf.Empty"
metadata_type: "OperationMetadata"
};
}
// Lists Applications in a host project and location.
rpc ListApplications(ListApplicationsRequest)
returns (ListApplicationsResponse) {
option (google.api.http) = {
get: "/v1/{parent=projects/*/locations/*}/applications"
};
option (google.api.method_signature) = "parent";
}
// Creates an Application in a host project and location.
rpc CreateApplication(CreateApplicationRequest)
returns (google.longrunning.Operation) {
option (google.api.http) = {
post: "/v1/{parent=projects/*/locations/*}/applications"
body: "application"
};
option (google.api.method_signature) = "parent,application,application_id";
option (google.longrunning.operation_info) = {
response_type: "Application"
metadata_type: "OperationMetadata"
};
}
// Gets an Application in a host project and location.
rpc GetApplication(GetApplicationRequest) returns (Application) {
option (google.api.http) = {
get: "/v1/{name=projects/*/locations/*/applications/*}"
};
option (google.api.method_signature) = "name";
}
// Updates an Application in a host project and location.
rpc UpdateApplication(UpdateApplicationRequest)
returns (google.longrunning.Operation) {
option (google.api.http) = {
patch: "/v1/{application.name=projects/*/locations/*/applications/*}"
body: "application"
};
option (google.api.method_signature) = "application,update_mask";
option (google.longrunning.operation_info) = {
response_type: "Application"
metadata_type: "OperationMetadata"
};
}
// Deletes an Application in a host project and location.
rpc DeleteApplication(DeleteApplicationRequest)
returns (google.longrunning.Operation) {
option (google.api.http) = {
delete: "/v1/{name=projects/*/locations/*/applications/*}"
};
option (google.api.method_signature) = "name";
option (google.longrunning.operation_info) = {
response_type: "google.protobuf.Empty"
metadata_type: "OperationMetadata"
};
}
}
// Request for LookupServiceProjectAttachment.
message LookupServiceProjectAttachmentRequest {
// Required. Service project ID and location to lookup service project
// attachment for. Only global location is supported. Expected format:
// `projects/{project}/locations/{location}`.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "locations.googleapis.com/Location"
}
];
}
// Response for LookupServiceProjectAttachment.
message LookupServiceProjectAttachmentResponse {
// Service project attachment for a project if exists, empty otherwise.
ServiceProjectAttachment service_project_attachment = 1;
}
// Request for ListServiceProjectAttachments.
message ListServiceProjectAttachmentsRequest {
// Required. Host project ID and location to list service project attachments.
// Only global location is supported. Expected format:
// `projects/{project}/locations/{location}`.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
child_type: "apphub.googleapis.com/ServiceProjectAttachment"
}
];
// Optional. Requested page size. Server may return fewer items than
// requested. If unspecified, server will pick an appropriate default.
int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
// Optional. A token identifying a page of results the server should return.
string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
// Optional. Filtering results.
string filter = 4 [(google.api.field_behavior) = OPTIONAL];
// Optional. Hint for how to order the results.
string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
}
// Response for ListServiceProjectAttachments.
message ListServiceProjectAttachmentsResponse {
// List of service project attachments.
repeated ServiceProjectAttachment service_project_attachments = 1;
// A token identifying a page of results the server should return.
string next_page_token = 2;
// Locations that could not be reached.
repeated string unreachable = 3;
}
// Request for CreateServiceProjectAttachment.
message CreateServiceProjectAttachmentRequest {
// Required. Host project ID and location to which service project is being
// attached. Only global location is supported. Expected format:
// `projects/{project}/locations/{location}`.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
child_type: "apphub.googleapis.com/ServiceProjectAttachment"
}
];
// Required. The service project attachment identifier must contain the
// project id of the service project specified in the
// service_project_attachment.service_project field.
string service_project_attachment_id = 2
[(google.api.field_behavior) = REQUIRED];
// Required. The resource being created.
ServiceProjectAttachment service_project_attachment = 3
[(google.api.field_behavior) = REQUIRED];
// Optional. An optional request ID to identify requests. Specify a unique
// request ID so that if you must retry your request, the server will know to
// ignore the request if it has already been completed. The server will
// guarantee that for at least 60 minutes since the first request.
//
// For example, consider a situation where you make an initial request and the
// request times out. If you make the request again with the same request
// ID, the server can check if original operation with the same request ID
// was received, and if so, will ignore the second request. This prevents
// clients from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported (00000000-0000-0000-0000-000000000000).
string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
}
// Request for GetServiceProjectAttachment.
message GetServiceProjectAttachmentRequest {
// Required. Fully qualified name of the service project attachment to
// retrieve. Expected format:
// `projects/{project}/locations/{location}/serviceProjectAttachments/{serviceProjectAttachment}`.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "apphub.googleapis.com/ServiceProjectAttachment"
}
];
}
// Request for DeleteServiceProjectAttachment.
message DeleteServiceProjectAttachmentRequest {
// Required. Fully qualified name of the service project attachment to delete.
// Expected format:
// `projects/{project}/locations/{location}/serviceProjectAttachments/{serviceProjectAttachment}`.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "apphub.googleapis.com/ServiceProjectAttachment"
}
];
// Optional. An optional request ID to identify requests. Specify a unique
// request ID so that if you must retry your request, the server will know to
// ignore the request if it has already been completed. The server will
// guarantee that for at least 60 minutes after the first request.
//
// For example, consider a situation where you make an initial request and the
// request times out. If you make the request again with the same request
// ID, the server can check if original operation with the same request ID
// was received, and if so, will ignore the second request. This prevents
// clients from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported (00000000-0000-0000-0000-000000000000).
string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
}
// Request for DetachServiceProjectAttachment.
message DetachServiceProjectAttachmentRequest {
// Required. Service project id and location to detach from a host project.
// Only global location is supported. Expected format:
// `projects/{project}/locations/{location}`.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "locations.googleapis.com/Location"
}
];
}
// Response for DetachServiceProjectAttachment.
message DetachServiceProjectAttachmentResponse {}
// Request for ListServices.
message ListServicesRequest {
// Required. Fully qualified name of the parent Application to list Services
// for. Expected format:
// `projects/{project}/locations/{location}/applications/{application}`.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
child_type: "apphub.googleapis.com/Service"
}
];
// Optional. Requested page size. Server may return fewer items than
// requested. If unspecified, server will pick an appropriate default.
int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
// Optional. A token identifying a page of results the server should return.
string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
// Optional. Filtering results
string filter = 4 [(google.api.field_behavior) = OPTIONAL];
// Optional. Hint for how to order the results
string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
}
// Response for ListServices.
message ListServicesResponse {
// List of Services.
repeated Service services = 1;
// A token identifying a page of results the server should return.
string next_page_token = 2;
// Locations that could not be reached.
repeated string unreachable = 3;
}
// Request for ListDiscoveredServices.
message ListDiscoveredServicesRequest {
// Required. Project and location to list Discovered Services on.
// Expected format: `projects/{project}/locations/{location}`.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
child_type: "apphub.googleapis.com/DiscoveredService"
}
];
// Optional. Requested page size. Server may return fewer items than
// requested. If unspecified, server will pick an appropriate default.
int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
// Optional. A token identifying a page of results the server should return.
string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
// Optional. Filtering results.
string filter = 4 [(google.api.field_behavior) = OPTIONAL];
// Optional. Hint for how to order the results.
string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
}
// Response for ListDiscoveredServices.
message ListDiscoveredServicesResponse {
// List of Discovered Services.
repeated DiscoveredService discovered_services = 1;
// A token identifying a page of results the server should return.
string next_page_token = 2;
// Locations that could not be reached.
repeated string unreachable = 3;
}
// Request for CreateService.
message CreateServiceRequest {
// Required. Fully qualified name of the parent Application to create the
// Service in. Expected format:
// `projects/{project}/locations/{location}/applications/{application}`.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
child_type: "apphub.googleapis.com/Service"
}
];
// Required. The Service identifier.
// Must contain only lowercase letters, numbers
// or hyphens, with the first character a letter, the last a letter or a
// number, and a 63 character maximum.
string service_id = 2 [(google.api.field_behavior) = REQUIRED];
// Required. The resource being created.
Service service = 3 [(google.api.field_behavior) = REQUIRED];
// Optional. An optional request ID to identify requests. Specify a unique
// request ID so that if you must retry your request, the server will know to
// ignore the request if it has already been completed. The server will
// guarantee that for at least 60 minutes since the first request.
//
// For example, consider a situation where you make an initial request and the
// request times out. If you make the request again with the same request
// ID, the server can check if original operation with the same request ID
// was received, and if so, will ignore the second request. This prevents
// clients from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported (00000000-0000-0000-0000-000000000000).
string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
}
// Request for GetService.
message GetServiceRequest {
// Required. Fully qualified name of the Service to fetch.
// Expected format:
// `projects/{project}/locations/{location}/applications/{application}/services/{service}`.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = { type: "apphub.googleapis.com/Service" }
];
}
// Request for GetDiscoveredService.
message GetDiscoveredServiceRequest {
// Required. Fully qualified name of the Discovered Service to fetch.
// Expected format:
// `projects/{project}/locations/{location}/discoveredServices/{discoveredService}`.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "apphub.googleapis.com/DiscoveredService"
}
];
}
// Request for LookupDiscoveredService.
message LookupDiscoveredServiceRequest {
// Required. Host project ID and location to lookup Discovered Service in.
// Expected format: `projects/{project}/locations/{location}`.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
child_type: "apphub.googleapis.com/DiscoveredService"
}
];
// Required. Resource URI to find DiscoveredService for.
// Accepts both project number and project ID and does translation when
// needed.
string uri = 2 [(google.api.field_behavior) = REQUIRED];
}
// Response for LookupDiscoveredService.
message LookupDiscoveredServiceResponse {
// Discovered Service if exists, empty otherwise.
DiscoveredService discovered_service = 1;
}
// Request for UpdateService.
message UpdateServiceRequest {
// Required. Field mask is used to specify the fields to be overwritten in the
// Service resource by the update.
// The fields specified in the update_mask are relative to the resource, not
// the full request.
// The API changes the values of the fields as specified in the update_mask.
// The API ignores the values of all fields not covered by the update_mask.
// You can also unset a field by not specifying it in the updated message, but
// adding the field to the mask. This clears whatever value the field
// previously had.
google.protobuf.FieldMask update_mask = 1
[(google.api.field_behavior) = REQUIRED];
// Required. The resource being updated.
Service service = 2 [(google.api.field_behavior) = REQUIRED];
// Optional. An optional request ID to identify requests. Specify a unique
// request ID so that if you must retry your request, the server will know to
// ignore the request if it has already been completed. The server will
// guarantee that for at least 60 minutes since the first request.
//
// For example, consider a situation where you make an initial request and the
// request times out. If you make the request again with the same request
// ID, the server can check if original operation with the same request ID
// was received, and if so, will ignore the second request. This prevents
// clients from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported (00000000-0000-0000-0000-000000000000).
string request_id = 3 [(google.api.field_behavior) = OPTIONAL];
}
// Request for DeleteService.
message DeleteServiceRequest {
// Required. Fully qualified name of the Service to delete from an
// Application. Expected format:
// `projects/{project}/locations/{location}/applications/{application}/services/{service}`.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = { type: "apphub.googleapis.com/Service" }
];
// Optional. An optional request ID to identify requests. Specify a unique
// request ID so that if you must retry your request, the server will know to
// ignore the request if it has already been completed. The server will
// guarantee that for at least 60 minutes after the first request.
//
// For example, consider a situation where you make an initial request and the
// request times out. If you make the request again with the same request
// ID, the server can check if original operation with the same request ID
// was received, and if so, will ignore the second request. This prevents
// clients from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported (00000000-0000-0000-0000-000000000000).
string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
}
// Request for ListApplications.
message ListApplicationsRequest {
// Required. Project and location to list Applications on.
// Expected format: `projects/{project}/locations/{location}`.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
child_type: "apphub.googleapis.com/Application"
}
];
// Optional. Requested page size. Server may return fewer items than
// requested. If unspecified, server will pick an appropriate default.
int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
// Optional. A token identifying a page of results the server should return.
string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
// Optional. Filtering results.
string filter = 4 [(google.api.field_behavior) = OPTIONAL];
// Optional. Hint for how to order the results.
string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
}
// Response for ListApplications.
message ListApplicationsResponse {
// List of Applications.
repeated Application applications = 1;
// A token identifying a page of results the server should return.
string next_page_token = 2;
// Locations that could not be reached.
repeated string unreachable = 3;
}
// Request for CreateApplication.
message CreateApplicationRequest {
// Required. Project and location to create Application in.
// Expected format: `projects/{project}/locations/{location}`.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
child_type: "apphub.googleapis.com/Application"
}
];
// Required. The Application identifier.
// Must contain only lowercase letters, numbers
// or hyphens, with the first character a letter, the last a letter or a
// number, and a 63 character maximum.
string application_id = 2 [(google.api.field_behavior) = REQUIRED];
// Required. The resource being created
Application application = 3 [(google.api.field_behavior) = REQUIRED];
// Optional. An optional request ID to identify requests. Specify a unique
// request ID so that if you must retry your request, the server will know to
// ignore the request if it has already been completed. The server will
// guarantee that for at least 60 minutes since the first request.
//
// For example, consider a situation where you make an initial request and the
// request times out. If you make the request again with the same request
// ID, the server can check if original operation with the same request ID
// was received, and if so, will ignore the second request. This prevents
// clients from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported (00000000-0000-0000-0000-000000000000).
string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
}
// Request for GetApplication.
message GetApplicationRequest {
// Required. Fully qualified name of the Application to fetch.
// Expected format:
// `projects/{project}/locations/{location}/applications/{application}`.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "apphub.googleapis.com/Application"
}
];
}
// Request for UpdateApplication.
message UpdateApplicationRequest {
// Required. Field mask is used to specify the fields to be overwritten in the
// Application resource by the update.
// The fields specified in the update_mask are relative to the resource, not
// the full request.
// The API changes the values of the fields as specified in the update_mask.
// The API ignores the values of all fields not covered by the update_mask.
// You can also unset a field by not specifying it in the updated message, but
// adding the field to the mask. This clears whatever value the field
// previously had.
google.protobuf.FieldMask update_mask = 1
[(google.api.field_behavior) = REQUIRED];
// Required. The resource being updated.
Application application = 2 [(google.api.field_behavior) = REQUIRED];
// Optional. An optional request ID to identify requests. Specify a unique
// request ID so that if you must retry your request, the server will know to
// ignore the request if it has already been completed. The server will
// guarantee that for at least 60 minutes since the first request.
//
// For example, consider a situation where you make an initial request and the
// request times out. If you make the request again with the same request
// ID, the server can check if original operation with the same request ID
// was received, and if so, will ignore the second request. This prevents
// clients from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported (00000000-0000-0000-0000-000000000000).
string request_id = 3 [(google.api.field_behavior) = OPTIONAL];
}
// Request for DeleteApplication.
message DeleteApplicationRequest {
// Required. Fully qualified name of the Application to delete.
// Expected format:
// `projects/{project}/locations/{location}/applications/{application}`.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "apphub.googleapis.com/Application"
}
];
// Optional. An optional request ID to identify requests. Specify a unique
// request ID so that if you must retry your request, the server will know to
// ignore the request if it has already been completed. The server will
// guarantee that for at least 60 minutes after the first request.
//
// For example, consider a situation where you make an initial request and the
// request times out. If you make the request again with the same request
// ID, the server can check if original operation with the same request ID
// was received, and if so, will ignore the second request. This prevents
// clients from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported (00000000-0000-0000-0000-000000000000).
string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
}
// Request for ListWorkloads.
message ListWorkloadsRequest {
// Required. Fully qualified name of the parent Application to list Workloads
// for. Expected format:
// `projects/{project}/locations/{location}/applications/{application}`.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
child_type: "apphub.googleapis.com/Workload"
}
];
// Optional. Requested page size. Server may return fewer items than
// requested. If unspecified, server will pick an appropriate default.
int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
// Optional. A token identifying a page of results the server should return.
string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
// Optional. Filtering results.
string filter = 4 [(google.api.field_behavior) = OPTIONAL];
// Optional. Hint for how to order the results.
string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
}
// Response for ListWorkloads.
message ListWorkloadsResponse {
// List of Workloads.
repeated Workload workloads = 1;
// A token identifying a page of results the server should return.
string next_page_token = 2;
// Locations that could not be reached.
repeated string unreachable = 3;
}
// Request for ListDiscoveredWorkloads.
message ListDiscoveredWorkloadsRequest {
// Required. Project and location to list Discovered Workloads on.
// Expected format: `projects/{project}/locations/{location}`.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
child_type: "apphub.googleapis.com/DiscoveredWorkload"
}
];
// Optional. Requested page size. Server may return fewer items than
// requested. If unspecified, server will pick an appropriate default.
int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
// Optional. A token identifying a page of results the server should return.
string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
// Optional. Filtering results.
string filter = 4 [(google.api.field_behavior) = OPTIONAL];
// Optional. Hint for how to order the results.
string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
}
// Response for ListDiscoveredWorkloads.
message ListDiscoveredWorkloadsResponse {
// List of Discovered Workloads.
repeated DiscoveredWorkload discovered_workloads = 1;
// A token identifying a page of results the server should return.
string next_page_token = 2;
// Locations that could not be reached.
repeated string unreachable = 3;
}
// Request for CreateWorkload.
message CreateWorkloadRequest {
// Required. Fully qualified name of the Application to create Workload in.
// Expected format:
// `projects/{project}/locations/{location}/applications/{application}`.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
child_type: "apphub.googleapis.com/Workload"
}
];
// Required. The Workload identifier.
// Must contain only lowercase letters, numbers
// or hyphens, with the first character a letter, the last a letter or a
// number, and a 63 character maximum.
string workload_id = 2 [(google.api.field_behavior) = REQUIRED];
// Required. The resource being created.
Workload workload = 3 [(google.api.field_behavior) = REQUIRED];
// Optional. An optional request ID to identify requests. Specify a unique
// request ID so that if you must retry your request, the server will know to
// ignore the request if it has already been completed. The server will
// guarantee that for at least 60 minutes since the first request.
//
// For example, consider a situation where you make an initial request and the
// request times out. If you make the request again with the same request
// ID, the server can check if original operation with the same request ID
// was received, and if so, will ignore the second request. This prevents
// clients from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported (00000000-0000-0000-0000-000000000000).
string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
}
// Request for GetWorkload.
message GetWorkloadRequest {
// Required. Fully qualified name of the Workload to fetch.
// Expected format:
// `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = { type: "apphub.googleapis.com/Workload" }
];
}
// Request for GetDiscoveredWorkload.
message GetDiscoveredWorkloadRequest {
// Required. Fully qualified name of the Discovered Workload to fetch.
// Expected format:
// `projects/{project}/locations/{location}/discoveredWorkloads/{discoveredWorkload}`.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "apphub.googleapis.com/DiscoveredWorkload"
}
];
}
// Request for LookupDiscoveredWorkload.
message LookupDiscoveredWorkloadRequest {
// Required. Host project ID and location to lookup Discovered Workload in.