iamkey.proto raw

   1  syntax = "proto3";
   2  
   3  package yandex.cloud.sdk.v2;
   4  
   5  import "google/protobuf/timestamp.proto";
   6  import "yandex/cloud/iam/v1/key.proto";
   7  
   8  option go_package = "sdk/v2/iamkey";
   9  
  10  // Key is resource managed by IAM Key Service.
  11  // Can be issued for User or Service Account, but key authorization is supported only for Service Accounts.
  12  // Issued key contains private part that is not saved on server side, and should be saved by client.
  13  message Key {
  14    // ID of the Key resource.
  15    string id = 1;
  16  
  17    oneof subject {
  18      // ID of the user account that the Key resource belongs to.
  19      string user_account_id = 2;
  20  
  21      // ID of the service account that the Key resource belongs to.
  22      string service_account_id = 3;
  23    }
  24  
  25    // Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
  26    google.protobuf.Timestamp created_at = 4;
  27  
  28    // Description of the Key resource. 0-256 characters long.
  29    string description = 5;
  30  
  31    // An algorithm used to generate a key pair of the Key resource.
  32    iam.v1.Key.Algorithm key_algorithm = 6;
  33  
  34    // A public key of the Key resource.
  35    string public_key = 7;
  36  
  37    // A public key of the Key resource.
  38    string private_key = 8;
  39  }
  40