123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172 |
- syntax = "proto3";
- package google.api.apikeys.v2;
- import "google/api/field_behavior.proto";
- import "google/api/resource.proto";
- import "google/protobuf/timestamp.proto";
- option csharp_namespace = "Google.Cloud.ApiKeys.V2";
- option go_package = "google.golang.org/genproto/googleapis/api/apikeys/v2;apikeys";
- option java_multiple_files = true;
- option java_outer_classname = "ResourcesProto";
- option java_package = "com.google.api.apikeys.v2";
- option php_namespace = "Google\\Cloud\\ApiKeys\\V2";
- option ruby_package = "Google::Cloud::ApiKeys::V2";
- message Key {
- option (google.api.resource) = {
- type: "apikeys.googleapis.com/Key"
- pattern: "projects/{project}/locations/{location}/keys/{key}"
- plural: "keys"
- singular: "key"
- style: DECLARATIVE_FRIENDLY
- };
-
-
-
-
-
-
-
-
- string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- string uid = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
- string display_name = 2;
-
-
- string key_string = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
- google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
- google.protobuf.Timestamp update_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
- google.protobuf.Timestamp delete_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
- map<string, string> annotations = 8;
-
- Restrictions restrictions = 9;
-
-
-
-
- string etag = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
- }
- message Restrictions {
-
-
-
- oneof client_restrictions {
-
- BrowserKeyRestrictions browser_key_restrictions = 1;
-
- ServerKeyRestrictions server_key_restrictions = 2;
-
- AndroidKeyRestrictions android_key_restrictions = 3;
-
- IosKeyRestrictions ios_key_restrictions = 4;
- }
-
-
-
-
- repeated ApiTarget api_targets = 5;
- }
- message BrowserKeyRestrictions {
-
-
- repeated string allowed_referrers = 1;
- }
- message ServerKeyRestrictions {
-
-
- repeated string allowed_ips = 1;
- }
- message AndroidKeyRestrictions {
-
-
- repeated AndroidApplication allowed_applications = 1;
- }
- message AndroidApplication {
-
-
-
-
- string sha1_fingerprint = 1;
-
- string package_name = 2;
- }
- message IosKeyRestrictions {
-
- repeated string allowed_bundle_ids = 1;
- }
- message ApiTarget {
-
-
-
-
- string service = 1;
-
-
-
-
-
-
-
-
- repeated string methods = 2 [(google.api.field_behavior) = OPTIONAL];
- }
|