You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

747 lines
32 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/cloud/oslogin/v1alpha/oslogin.proto
  3. package oslogin // import "google.golang.org/genproto/googleapis/cloud/oslogin/v1alpha"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import empty "github.com/golang/protobuf/ptypes/empty"
  8. import _ "google.golang.org/genproto/googleapis/api/annotations"
  9. import common "google.golang.org/genproto/googleapis/cloud/oslogin/common"
  10. import field_mask "google.golang.org/genproto/protobuf/field_mask"
  11. import (
  12. context "golang.org/x/net/context"
  13. grpc "google.golang.org/grpc"
  14. )
  15. // Reference imports to suppress errors if they are not otherwise used.
  16. var _ = proto.Marshal
  17. var _ = fmt.Errorf
  18. var _ = math.Inf
  19. // This is a compile-time assertion to ensure that this generated file
  20. // is compatible with the proto package it is being compiled against.
  21. // A compilation error at this line likely means your copy of the
  22. // proto package needs to be updated.
  23. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  24. // The user profile information used for logging in to a virtual machine on
  25. // Google Compute Engine.
  26. type LoginProfile struct {
  27. // A unique user ID for identifying the user.
  28. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  29. // The list of POSIX accounts associated with the Directory API user.
  30. PosixAccounts []*common.PosixAccount `protobuf:"bytes,2,rep,name=posix_accounts,json=posixAccounts,proto3" json:"posix_accounts,omitempty"`
  31. // A map from SSH public key fingerprint to the associated key object.
  32. SshPublicKeys map[string]*common.SshPublicKey `protobuf:"bytes,3,rep,name=ssh_public_keys,json=sshPublicKeys,proto3" json:"ssh_public_keys,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  33. // Indicates if the user is suspended.
  34. Suspended bool `protobuf:"varint,4,opt,name=suspended,proto3" json:"suspended,omitempty"`
  35. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  36. XXX_unrecognized []byte `json:"-"`
  37. XXX_sizecache int32 `json:"-"`
  38. }
  39. func (m *LoginProfile) Reset() { *m = LoginProfile{} }
  40. func (m *LoginProfile) String() string { return proto.CompactTextString(m) }
  41. func (*LoginProfile) ProtoMessage() {}
  42. func (*LoginProfile) Descriptor() ([]byte, []int) {
  43. return fileDescriptor_oslogin_3ca03200c5852c9e, []int{0}
  44. }
  45. func (m *LoginProfile) XXX_Unmarshal(b []byte) error {
  46. return xxx_messageInfo_LoginProfile.Unmarshal(m, b)
  47. }
  48. func (m *LoginProfile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  49. return xxx_messageInfo_LoginProfile.Marshal(b, m, deterministic)
  50. }
  51. func (dst *LoginProfile) XXX_Merge(src proto.Message) {
  52. xxx_messageInfo_LoginProfile.Merge(dst, src)
  53. }
  54. func (m *LoginProfile) XXX_Size() int {
  55. return xxx_messageInfo_LoginProfile.Size(m)
  56. }
  57. func (m *LoginProfile) XXX_DiscardUnknown() {
  58. xxx_messageInfo_LoginProfile.DiscardUnknown(m)
  59. }
  60. var xxx_messageInfo_LoginProfile proto.InternalMessageInfo
  61. func (m *LoginProfile) GetName() string {
  62. if m != nil {
  63. return m.Name
  64. }
  65. return ""
  66. }
  67. func (m *LoginProfile) GetPosixAccounts() []*common.PosixAccount {
  68. if m != nil {
  69. return m.PosixAccounts
  70. }
  71. return nil
  72. }
  73. func (m *LoginProfile) GetSshPublicKeys() map[string]*common.SshPublicKey {
  74. if m != nil {
  75. return m.SshPublicKeys
  76. }
  77. return nil
  78. }
  79. func (m *LoginProfile) GetSuspended() bool {
  80. if m != nil {
  81. return m.Suspended
  82. }
  83. return false
  84. }
  85. // A request message for deleting a POSIX account entry.
  86. type DeletePosixAccountRequest struct {
  87. // A reference to the POSIX account to update. POSIX accounts are identified
  88. // by the project ID they are associated with. A reference to the POSIX
  89. // account is in format `users/{user}/projects/{project}`.
  90. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  91. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  92. XXX_unrecognized []byte `json:"-"`
  93. XXX_sizecache int32 `json:"-"`
  94. }
  95. func (m *DeletePosixAccountRequest) Reset() { *m = DeletePosixAccountRequest{} }
  96. func (m *DeletePosixAccountRequest) String() string { return proto.CompactTextString(m) }
  97. func (*DeletePosixAccountRequest) ProtoMessage() {}
  98. func (*DeletePosixAccountRequest) Descriptor() ([]byte, []int) {
  99. return fileDescriptor_oslogin_3ca03200c5852c9e, []int{1}
  100. }
  101. func (m *DeletePosixAccountRequest) XXX_Unmarshal(b []byte) error {
  102. return xxx_messageInfo_DeletePosixAccountRequest.Unmarshal(m, b)
  103. }
  104. func (m *DeletePosixAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  105. return xxx_messageInfo_DeletePosixAccountRequest.Marshal(b, m, deterministic)
  106. }
  107. func (dst *DeletePosixAccountRequest) XXX_Merge(src proto.Message) {
  108. xxx_messageInfo_DeletePosixAccountRequest.Merge(dst, src)
  109. }
  110. func (m *DeletePosixAccountRequest) XXX_Size() int {
  111. return xxx_messageInfo_DeletePosixAccountRequest.Size(m)
  112. }
  113. func (m *DeletePosixAccountRequest) XXX_DiscardUnknown() {
  114. xxx_messageInfo_DeletePosixAccountRequest.DiscardUnknown(m)
  115. }
  116. var xxx_messageInfo_DeletePosixAccountRequest proto.InternalMessageInfo
  117. func (m *DeletePosixAccountRequest) GetName() string {
  118. if m != nil {
  119. return m.Name
  120. }
  121. return ""
  122. }
  123. // A request message for deleting an SSH public key.
  124. type DeleteSshPublicKeyRequest struct {
  125. // The fingerprint of the public key to update. Public keys are identified by
  126. // their SHA-256 fingerprint. The fingerprint of the public key is in format
  127. // `users/{user}/sshPublicKeys/{fingerprint}`.
  128. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  129. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  130. XXX_unrecognized []byte `json:"-"`
  131. XXX_sizecache int32 `json:"-"`
  132. }
  133. func (m *DeleteSshPublicKeyRequest) Reset() { *m = DeleteSshPublicKeyRequest{} }
  134. func (m *DeleteSshPublicKeyRequest) String() string { return proto.CompactTextString(m) }
  135. func (*DeleteSshPublicKeyRequest) ProtoMessage() {}
  136. func (*DeleteSshPublicKeyRequest) Descriptor() ([]byte, []int) {
  137. return fileDescriptor_oslogin_3ca03200c5852c9e, []int{2}
  138. }
  139. func (m *DeleteSshPublicKeyRequest) XXX_Unmarshal(b []byte) error {
  140. return xxx_messageInfo_DeleteSshPublicKeyRequest.Unmarshal(m, b)
  141. }
  142. func (m *DeleteSshPublicKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  143. return xxx_messageInfo_DeleteSshPublicKeyRequest.Marshal(b, m, deterministic)
  144. }
  145. func (dst *DeleteSshPublicKeyRequest) XXX_Merge(src proto.Message) {
  146. xxx_messageInfo_DeleteSshPublicKeyRequest.Merge(dst, src)
  147. }
  148. func (m *DeleteSshPublicKeyRequest) XXX_Size() int {
  149. return xxx_messageInfo_DeleteSshPublicKeyRequest.Size(m)
  150. }
  151. func (m *DeleteSshPublicKeyRequest) XXX_DiscardUnknown() {
  152. xxx_messageInfo_DeleteSshPublicKeyRequest.DiscardUnknown(m)
  153. }
  154. var xxx_messageInfo_DeleteSshPublicKeyRequest proto.InternalMessageInfo
  155. func (m *DeleteSshPublicKeyRequest) GetName() string {
  156. if m != nil {
  157. return m.Name
  158. }
  159. return ""
  160. }
  161. // A request message for retrieving the login profile information for a user.
  162. type GetLoginProfileRequest struct {
  163. // The unique ID for the user in format `users/{user}`.
  164. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  165. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  166. XXX_unrecognized []byte `json:"-"`
  167. XXX_sizecache int32 `json:"-"`
  168. }
  169. func (m *GetLoginProfileRequest) Reset() { *m = GetLoginProfileRequest{} }
  170. func (m *GetLoginProfileRequest) String() string { return proto.CompactTextString(m) }
  171. func (*GetLoginProfileRequest) ProtoMessage() {}
  172. func (*GetLoginProfileRequest) Descriptor() ([]byte, []int) {
  173. return fileDescriptor_oslogin_3ca03200c5852c9e, []int{3}
  174. }
  175. func (m *GetLoginProfileRequest) XXX_Unmarshal(b []byte) error {
  176. return xxx_messageInfo_GetLoginProfileRequest.Unmarshal(m, b)
  177. }
  178. func (m *GetLoginProfileRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  179. return xxx_messageInfo_GetLoginProfileRequest.Marshal(b, m, deterministic)
  180. }
  181. func (dst *GetLoginProfileRequest) XXX_Merge(src proto.Message) {
  182. xxx_messageInfo_GetLoginProfileRequest.Merge(dst, src)
  183. }
  184. func (m *GetLoginProfileRequest) XXX_Size() int {
  185. return xxx_messageInfo_GetLoginProfileRequest.Size(m)
  186. }
  187. func (m *GetLoginProfileRequest) XXX_DiscardUnknown() {
  188. xxx_messageInfo_GetLoginProfileRequest.DiscardUnknown(m)
  189. }
  190. var xxx_messageInfo_GetLoginProfileRequest proto.InternalMessageInfo
  191. func (m *GetLoginProfileRequest) GetName() string {
  192. if m != nil {
  193. return m.Name
  194. }
  195. return ""
  196. }
  197. // A request message for retrieving an SSH public key.
  198. type GetSshPublicKeyRequest struct {
  199. // The fingerprint of the public key to retrieve. Public keys are identified
  200. // by their SHA-256 fingerprint. The fingerprint of the public key is in
  201. // format `users/{user}/sshPublicKeys/{fingerprint}`.
  202. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  203. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  204. XXX_unrecognized []byte `json:"-"`
  205. XXX_sizecache int32 `json:"-"`
  206. }
  207. func (m *GetSshPublicKeyRequest) Reset() { *m = GetSshPublicKeyRequest{} }
  208. func (m *GetSshPublicKeyRequest) String() string { return proto.CompactTextString(m) }
  209. func (*GetSshPublicKeyRequest) ProtoMessage() {}
  210. func (*GetSshPublicKeyRequest) Descriptor() ([]byte, []int) {
  211. return fileDescriptor_oslogin_3ca03200c5852c9e, []int{4}
  212. }
  213. func (m *GetSshPublicKeyRequest) XXX_Unmarshal(b []byte) error {
  214. return xxx_messageInfo_GetSshPublicKeyRequest.Unmarshal(m, b)
  215. }
  216. func (m *GetSshPublicKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  217. return xxx_messageInfo_GetSshPublicKeyRequest.Marshal(b, m, deterministic)
  218. }
  219. func (dst *GetSshPublicKeyRequest) XXX_Merge(src proto.Message) {
  220. xxx_messageInfo_GetSshPublicKeyRequest.Merge(dst, src)
  221. }
  222. func (m *GetSshPublicKeyRequest) XXX_Size() int {
  223. return xxx_messageInfo_GetSshPublicKeyRequest.Size(m)
  224. }
  225. func (m *GetSshPublicKeyRequest) XXX_DiscardUnknown() {
  226. xxx_messageInfo_GetSshPublicKeyRequest.DiscardUnknown(m)
  227. }
  228. var xxx_messageInfo_GetSshPublicKeyRequest proto.InternalMessageInfo
  229. func (m *GetSshPublicKeyRequest) GetName() string {
  230. if m != nil {
  231. return m.Name
  232. }
  233. return ""
  234. }
  235. // A request message for importing an SSH public key.
  236. type ImportSshPublicKeyRequest struct {
  237. // The unique ID for the user in format `users/{user}`.
  238. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
  239. // The SSH public key and expiration time.
  240. SshPublicKey *common.SshPublicKey `protobuf:"bytes,2,opt,name=ssh_public_key,json=sshPublicKey,proto3" json:"ssh_public_key,omitempty"`
  241. // The project ID of the Google Cloud Platform project.
  242. ProjectId string `protobuf:"bytes,3,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
  243. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  244. XXX_unrecognized []byte `json:"-"`
  245. XXX_sizecache int32 `json:"-"`
  246. }
  247. func (m *ImportSshPublicKeyRequest) Reset() { *m = ImportSshPublicKeyRequest{} }
  248. func (m *ImportSshPublicKeyRequest) String() string { return proto.CompactTextString(m) }
  249. func (*ImportSshPublicKeyRequest) ProtoMessage() {}
  250. func (*ImportSshPublicKeyRequest) Descriptor() ([]byte, []int) {
  251. return fileDescriptor_oslogin_3ca03200c5852c9e, []int{5}
  252. }
  253. func (m *ImportSshPublicKeyRequest) XXX_Unmarshal(b []byte) error {
  254. return xxx_messageInfo_ImportSshPublicKeyRequest.Unmarshal(m, b)
  255. }
  256. func (m *ImportSshPublicKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  257. return xxx_messageInfo_ImportSshPublicKeyRequest.Marshal(b, m, deterministic)
  258. }
  259. func (dst *ImportSshPublicKeyRequest) XXX_Merge(src proto.Message) {
  260. xxx_messageInfo_ImportSshPublicKeyRequest.Merge(dst, src)
  261. }
  262. func (m *ImportSshPublicKeyRequest) XXX_Size() int {
  263. return xxx_messageInfo_ImportSshPublicKeyRequest.Size(m)
  264. }
  265. func (m *ImportSshPublicKeyRequest) XXX_DiscardUnknown() {
  266. xxx_messageInfo_ImportSshPublicKeyRequest.DiscardUnknown(m)
  267. }
  268. var xxx_messageInfo_ImportSshPublicKeyRequest proto.InternalMessageInfo
  269. func (m *ImportSshPublicKeyRequest) GetParent() string {
  270. if m != nil {
  271. return m.Parent
  272. }
  273. return ""
  274. }
  275. func (m *ImportSshPublicKeyRequest) GetSshPublicKey() *common.SshPublicKey {
  276. if m != nil {
  277. return m.SshPublicKey
  278. }
  279. return nil
  280. }
  281. func (m *ImportSshPublicKeyRequest) GetProjectId() string {
  282. if m != nil {
  283. return m.ProjectId
  284. }
  285. return ""
  286. }
  287. // A response message for importing an SSH public key.
  288. type ImportSshPublicKeyResponse struct {
  289. // The login profile information for the user.
  290. LoginProfile *LoginProfile `protobuf:"bytes,1,opt,name=login_profile,json=loginProfile,proto3" json:"login_profile,omitempty"`
  291. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  292. XXX_unrecognized []byte `json:"-"`
  293. XXX_sizecache int32 `json:"-"`
  294. }
  295. func (m *ImportSshPublicKeyResponse) Reset() { *m = ImportSshPublicKeyResponse{} }
  296. func (m *ImportSshPublicKeyResponse) String() string { return proto.CompactTextString(m) }
  297. func (*ImportSshPublicKeyResponse) ProtoMessage() {}
  298. func (*ImportSshPublicKeyResponse) Descriptor() ([]byte, []int) {
  299. return fileDescriptor_oslogin_3ca03200c5852c9e, []int{6}
  300. }
  301. func (m *ImportSshPublicKeyResponse) XXX_Unmarshal(b []byte) error {
  302. return xxx_messageInfo_ImportSshPublicKeyResponse.Unmarshal(m, b)
  303. }
  304. func (m *ImportSshPublicKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  305. return xxx_messageInfo_ImportSshPublicKeyResponse.Marshal(b, m, deterministic)
  306. }
  307. func (dst *ImportSshPublicKeyResponse) XXX_Merge(src proto.Message) {
  308. xxx_messageInfo_ImportSshPublicKeyResponse.Merge(dst, src)
  309. }
  310. func (m *ImportSshPublicKeyResponse) XXX_Size() int {
  311. return xxx_messageInfo_ImportSshPublicKeyResponse.Size(m)
  312. }
  313. func (m *ImportSshPublicKeyResponse) XXX_DiscardUnknown() {
  314. xxx_messageInfo_ImportSshPublicKeyResponse.DiscardUnknown(m)
  315. }
  316. var xxx_messageInfo_ImportSshPublicKeyResponse proto.InternalMessageInfo
  317. func (m *ImportSshPublicKeyResponse) GetLoginProfile() *LoginProfile {
  318. if m != nil {
  319. return m.LoginProfile
  320. }
  321. return nil
  322. }
  323. // A request message for updating an SSH public key.
  324. type UpdateSshPublicKeyRequest struct {
  325. // The fingerprint of the public key to update. Public keys are identified by
  326. // their SHA-256 fingerprint. The fingerprint of the public key is in format
  327. // `users/{user}/sshPublicKeys/{fingerprint}`.
  328. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  329. // The SSH public key and expiration time.
  330. SshPublicKey *common.SshPublicKey `protobuf:"bytes,2,opt,name=ssh_public_key,json=sshPublicKey,proto3" json:"ssh_public_key,omitempty"`
  331. // Mask to control which fields get updated. Updates all if not present.
  332. UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
  333. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  334. XXX_unrecognized []byte `json:"-"`
  335. XXX_sizecache int32 `json:"-"`
  336. }
  337. func (m *UpdateSshPublicKeyRequest) Reset() { *m = UpdateSshPublicKeyRequest{} }
  338. func (m *UpdateSshPublicKeyRequest) String() string { return proto.CompactTextString(m) }
  339. func (*UpdateSshPublicKeyRequest) ProtoMessage() {}
  340. func (*UpdateSshPublicKeyRequest) Descriptor() ([]byte, []int) {
  341. return fileDescriptor_oslogin_3ca03200c5852c9e, []int{7}
  342. }
  343. func (m *UpdateSshPublicKeyRequest) XXX_Unmarshal(b []byte) error {
  344. return xxx_messageInfo_UpdateSshPublicKeyRequest.Unmarshal(m, b)
  345. }
  346. func (m *UpdateSshPublicKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  347. return xxx_messageInfo_UpdateSshPublicKeyRequest.Marshal(b, m, deterministic)
  348. }
  349. func (dst *UpdateSshPublicKeyRequest) XXX_Merge(src proto.Message) {
  350. xxx_messageInfo_UpdateSshPublicKeyRequest.Merge(dst, src)
  351. }
  352. func (m *UpdateSshPublicKeyRequest) XXX_Size() int {
  353. return xxx_messageInfo_UpdateSshPublicKeyRequest.Size(m)
  354. }
  355. func (m *UpdateSshPublicKeyRequest) XXX_DiscardUnknown() {
  356. xxx_messageInfo_UpdateSshPublicKeyRequest.DiscardUnknown(m)
  357. }
  358. var xxx_messageInfo_UpdateSshPublicKeyRequest proto.InternalMessageInfo
  359. func (m *UpdateSshPublicKeyRequest) GetName() string {
  360. if m != nil {
  361. return m.Name
  362. }
  363. return ""
  364. }
  365. func (m *UpdateSshPublicKeyRequest) GetSshPublicKey() *common.SshPublicKey {
  366. if m != nil {
  367. return m.SshPublicKey
  368. }
  369. return nil
  370. }
  371. func (m *UpdateSshPublicKeyRequest) GetUpdateMask() *field_mask.FieldMask {
  372. if m != nil {
  373. return m.UpdateMask
  374. }
  375. return nil
  376. }
  377. func init() {
  378. proto.RegisterType((*LoginProfile)(nil), "google.cloud.oslogin.v1alpha.LoginProfile")
  379. proto.RegisterMapType((map[string]*common.SshPublicKey)(nil), "google.cloud.oslogin.v1alpha.LoginProfile.SshPublicKeysEntry")
  380. proto.RegisterType((*DeletePosixAccountRequest)(nil), "google.cloud.oslogin.v1alpha.DeletePosixAccountRequest")
  381. proto.RegisterType((*DeleteSshPublicKeyRequest)(nil), "google.cloud.oslogin.v1alpha.DeleteSshPublicKeyRequest")
  382. proto.RegisterType((*GetLoginProfileRequest)(nil), "google.cloud.oslogin.v1alpha.GetLoginProfileRequest")
  383. proto.RegisterType((*GetSshPublicKeyRequest)(nil), "google.cloud.oslogin.v1alpha.GetSshPublicKeyRequest")
  384. proto.RegisterType((*ImportSshPublicKeyRequest)(nil), "google.cloud.oslogin.v1alpha.ImportSshPublicKeyRequest")
  385. proto.RegisterType((*ImportSshPublicKeyResponse)(nil), "google.cloud.oslogin.v1alpha.ImportSshPublicKeyResponse")
  386. proto.RegisterType((*UpdateSshPublicKeyRequest)(nil), "google.cloud.oslogin.v1alpha.UpdateSshPublicKeyRequest")
  387. }
  388. // Reference imports to suppress errors if they are not otherwise used.
  389. var _ context.Context
  390. var _ grpc.ClientConn
  391. // This is a compile-time assertion to ensure that this generated file
  392. // is compatible with the grpc package it is being compiled against.
  393. const _ = grpc.SupportPackageIsVersion4
  394. // OsLoginServiceClient is the client API for OsLoginService service.
  395. //
  396. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  397. type OsLoginServiceClient interface {
  398. // Deletes a POSIX account.
  399. DeletePosixAccount(ctx context.Context, in *DeletePosixAccountRequest, opts ...grpc.CallOption) (*empty.Empty, error)
  400. // Deletes an SSH public key.
  401. DeleteSshPublicKey(ctx context.Context, in *DeleteSshPublicKeyRequest, opts ...grpc.CallOption) (*empty.Empty, error)
  402. // Retrieves the profile information used for logging in to a virtual machine
  403. // on Google Compute Engine.
  404. GetLoginProfile(ctx context.Context, in *GetLoginProfileRequest, opts ...grpc.CallOption) (*LoginProfile, error)
  405. // Retrieves an SSH public key.
  406. GetSshPublicKey(ctx context.Context, in *GetSshPublicKeyRequest, opts ...grpc.CallOption) (*common.SshPublicKey, error)
  407. // Adds an SSH public key and returns the profile information. Default POSIX
  408. // account information is set when no username and UID exist as part of the
  409. // login profile.
  410. ImportSshPublicKey(ctx context.Context, in *ImportSshPublicKeyRequest, opts ...grpc.CallOption) (*ImportSshPublicKeyResponse, error)
  411. // Updates an SSH public key and returns the profile information. This method
  412. // supports patch semantics.
  413. UpdateSshPublicKey(ctx context.Context, in *UpdateSshPublicKeyRequest, opts ...grpc.CallOption) (*common.SshPublicKey, error)
  414. }
  415. type osLoginServiceClient struct {
  416. cc *grpc.ClientConn
  417. }
  418. func NewOsLoginServiceClient(cc *grpc.ClientConn) OsLoginServiceClient {
  419. return &osLoginServiceClient{cc}
  420. }
  421. func (c *osLoginServiceClient) DeletePosixAccount(ctx context.Context, in *DeletePosixAccountRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
  422. out := new(empty.Empty)
  423. err := c.cc.Invoke(ctx, "/google.cloud.oslogin.v1alpha.OsLoginService/DeletePosixAccount", in, out, opts...)
  424. if err != nil {
  425. return nil, err
  426. }
  427. return out, nil
  428. }
  429. func (c *osLoginServiceClient) DeleteSshPublicKey(ctx context.Context, in *DeleteSshPublicKeyRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
  430. out := new(empty.Empty)
  431. err := c.cc.Invoke(ctx, "/google.cloud.oslogin.v1alpha.OsLoginService/DeleteSshPublicKey", in, out, opts...)
  432. if err != nil {
  433. return nil, err
  434. }
  435. return out, nil
  436. }
  437. func (c *osLoginServiceClient) GetLoginProfile(ctx context.Context, in *GetLoginProfileRequest, opts ...grpc.CallOption) (*LoginProfile, error) {
  438. out := new(LoginProfile)
  439. err := c.cc.Invoke(ctx, "/google.cloud.oslogin.v1alpha.OsLoginService/GetLoginProfile", in, out, opts...)
  440. if err != nil {
  441. return nil, err
  442. }
  443. return out, nil
  444. }
  445. func (c *osLoginServiceClient) GetSshPublicKey(ctx context.Context, in *GetSshPublicKeyRequest, opts ...grpc.CallOption) (*common.SshPublicKey, error) {
  446. out := new(common.SshPublicKey)
  447. err := c.cc.Invoke(ctx, "/google.cloud.oslogin.v1alpha.OsLoginService/GetSshPublicKey", in, out, opts...)
  448. if err != nil {
  449. return nil, err
  450. }
  451. return out, nil
  452. }
  453. func (c *osLoginServiceClient) ImportSshPublicKey(ctx context.Context, in *ImportSshPublicKeyRequest, opts ...grpc.CallOption) (*ImportSshPublicKeyResponse, error) {
  454. out := new(ImportSshPublicKeyResponse)
  455. err := c.cc.Invoke(ctx, "/google.cloud.oslogin.v1alpha.OsLoginService/ImportSshPublicKey", in, out, opts...)
  456. if err != nil {
  457. return nil, err
  458. }
  459. return out, nil
  460. }
  461. func (c *osLoginServiceClient) UpdateSshPublicKey(ctx context.Context, in *UpdateSshPublicKeyRequest, opts ...grpc.CallOption) (*common.SshPublicKey, error) {
  462. out := new(common.SshPublicKey)
  463. err := c.cc.Invoke(ctx, "/google.cloud.oslogin.v1alpha.OsLoginService/UpdateSshPublicKey", in, out, opts...)
  464. if err != nil {
  465. return nil, err
  466. }
  467. return out, nil
  468. }
  469. // OsLoginServiceServer is the server API for OsLoginService service.
  470. type OsLoginServiceServer interface {
  471. // Deletes a POSIX account.
  472. DeletePosixAccount(context.Context, *DeletePosixAccountRequest) (*empty.Empty, error)
  473. // Deletes an SSH public key.
  474. DeleteSshPublicKey(context.Context, *DeleteSshPublicKeyRequest) (*empty.Empty, error)
  475. // Retrieves the profile information used for logging in to a virtual machine
  476. // on Google Compute Engine.
  477. GetLoginProfile(context.Context, *GetLoginProfileRequest) (*LoginProfile, error)
  478. // Retrieves an SSH public key.
  479. GetSshPublicKey(context.Context, *GetSshPublicKeyRequest) (*common.SshPublicKey, error)
  480. // Adds an SSH public key and returns the profile information. Default POSIX
  481. // account information is set when no username and UID exist as part of the
  482. // login profile.
  483. ImportSshPublicKey(context.Context, *ImportSshPublicKeyRequest) (*ImportSshPublicKeyResponse, error)
  484. // Updates an SSH public key and returns the profile information. This method
  485. // supports patch semantics.
  486. UpdateSshPublicKey(context.Context, *UpdateSshPublicKeyRequest) (*common.SshPublicKey, error)
  487. }
  488. func RegisterOsLoginServiceServer(s *grpc.Server, srv OsLoginServiceServer) {
  489. s.RegisterService(&_OsLoginService_serviceDesc, srv)
  490. }
  491. func _OsLoginService_DeletePosixAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  492. in := new(DeletePosixAccountRequest)
  493. if err := dec(in); err != nil {
  494. return nil, err
  495. }
  496. if interceptor == nil {
  497. return srv.(OsLoginServiceServer).DeletePosixAccount(ctx, in)
  498. }
  499. info := &grpc.UnaryServerInfo{
  500. Server: srv,
  501. FullMethod: "/google.cloud.oslogin.v1alpha.OsLoginService/DeletePosixAccount",
  502. }
  503. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  504. return srv.(OsLoginServiceServer).DeletePosixAccount(ctx, req.(*DeletePosixAccountRequest))
  505. }
  506. return interceptor(ctx, in, info, handler)
  507. }
  508. func _OsLoginService_DeleteSshPublicKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  509. in := new(DeleteSshPublicKeyRequest)
  510. if err := dec(in); err != nil {
  511. return nil, err
  512. }
  513. if interceptor == nil {
  514. return srv.(OsLoginServiceServer).DeleteSshPublicKey(ctx, in)
  515. }
  516. info := &grpc.UnaryServerInfo{
  517. Server: srv,
  518. FullMethod: "/google.cloud.oslogin.v1alpha.OsLoginService/DeleteSshPublicKey",
  519. }
  520. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  521. return srv.(OsLoginServiceServer).DeleteSshPublicKey(ctx, req.(*DeleteSshPublicKeyRequest))
  522. }
  523. return interceptor(ctx, in, info, handler)
  524. }
  525. func _OsLoginService_GetLoginProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  526. in := new(GetLoginProfileRequest)
  527. if err := dec(in); err != nil {
  528. return nil, err
  529. }
  530. if interceptor == nil {
  531. return srv.(OsLoginServiceServer).GetLoginProfile(ctx, in)
  532. }
  533. info := &grpc.UnaryServerInfo{
  534. Server: srv,
  535. FullMethod: "/google.cloud.oslogin.v1alpha.OsLoginService/GetLoginProfile",
  536. }
  537. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  538. return srv.(OsLoginServiceServer).GetLoginProfile(ctx, req.(*GetLoginProfileRequest))
  539. }
  540. return interceptor(ctx, in, info, handler)
  541. }
  542. func _OsLoginService_GetSshPublicKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  543. in := new(GetSshPublicKeyRequest)
  544. if err := dec(in); err != nil {
  545. return nil, err
  546. }
  547. if interceptor == nil {
  548. return srv.(OsLoginServiceServer).GetSshPublicKey(ctx, in)
  549. }
  550. info := &grpc.UnaryServerInfo{
  551. Server: srv,
  552. FullMethod: "/google.cloud.oslogin.v1alpha.OsLoginService/GetSshPublicKey",
  553. }
  554. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  555. return srv.(OsLoginServiceServer).GetSshPublicKey(ctx, req.(*GetSshPublicKeyRequest))
  556. }
  557. return interceptor(ctx, in, info, handler)
  558. }
  559. func _OsLoginService_ImportSshPublicKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  560. in := new(ImportSshPublicKeyRequest)
  561. if err := dec(in); err != nil {
  562. return nil, err
  563. }
  564. if interceptor == nil {
  565. return srv.(OsLoginServiceServer).ImportSshPublicKey(ctx, in)
  566. }
  567. info := &grpc.UnaryServerInfo{
  568. Server: srv,
  569. FullMethod: "/google.cloud.oslogin.v1alpha.OsLoginService/ImportSshPublicKey",
  570. }
  571. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  572. return srv.(OsLoginServiceServer).ImportSshPublicKey(ctx, req.(*ImportSshPublicKeyRequest))
  573. }
  574. return interceptor(ctx, in, info, handler)
  575. }
  576. func _OsLoginService_UpdateSshPublicKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  577. in := new(UpdateSshPublicKeyRequest)
  578. if err := dec(in); err != nil {
  579. return nil, err
  580. }
  581. if interceptor == nil {
  582. return srv.(OsLoginServiceServer).UpdateSshPublicKey(ctx, in)
  583. }
  584. info := &grpc.UnaryServerInfo{
  585. Server: srv,
  586. FullMethod: "/google.cloud.oslogin.v1alpha.OsLoginService/UpdateSshPublicKey",
  587. }
  588. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  589. return srv.(OsLoginServiceServer).UpdateSshPublicKey(ctx, req.(*UpdateSshPublicKeyRequest))
  590. }
  591. return interceptor(ctx, in, info, handler)
  592. }
  593. var _OsLoginService_serviceDesc = grpc.ServiceDesc{
  594. ServiceName: "google.cloud.oslogin.v1alpha.OsLoginService",
  595. HandlerType: (*OsLoginServiceServer)(nil),
  596. Methods: []grpc.MethodDesc{
  597. {
  598. MethodName: "DeletePosixAccount",
  599. Handler: _OsLoginService_DeletePosixAccount_Handler,
  600. },
  601. {
  602. MethodName: "DeleteSshPublicKey",
  603. Handler: _OsLoginService_DeleteSshPublicKey_Handler,
  604. },
  605. {
  606. MethodName: "GetLoginProfile",
  607. Handler: _OsLoginService_GetLoginProfile_Handler,
  608. },
  609. {
  610. MethodName: "GetSshPublicKey",
  611. Handler: _OsLoginService_GetSshPublicKey_Handler,
  612. },
  613. {
  614. MethodName: "ImportSshPublicKey",
  615. Handler: _OsLoginService_ImportSshPublicKey_Handler,
  616. },
  617. {
  618. MethodName: "UpdateSshPublicKey",
  619. Handler: _OsLoginService_UpdateSshPublicKey_Handler,
  620. },
  621. },
  622. Streams: []grpc.StreamDesc{},
  623. Metadata: "google/cloud/oslogin/v1alpha/oslogin.proto",
  624. }
  625. func init() {
  626. proto.RegisterFile("google/cloud/oslogin/v1alpha/oslogin.proto", fileDescriptor_oslogin_3ca03200c5852c9e)
  627. }
  628. var fileDescriptor_oslogin_3ca03200c5852c9e = []byte{
  629. // 779 bytes of a gzipped FileDescriptorProto
  630. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xcd, 0x6a, 0xdb, 0x4a,
  631. 0x14, 0x46, 0x76, 0x6e, 0x48, 0xc6, 0x4e, 0x72, 0x99, 0x45, 0x70, 0x74, 0x73, 0xc1, 0x88, 0xd0,
  632. 0x3a, 0x26, 0x68, 0x88, 0x5b, 0x68, 0x9a, 0x90, 0x86, 0xfc, 0x35, 0x84, 0xb6, 0xc4, 0x38, 0x34,
  633. 0x8b, 0x12, 0x30, 0x13, 0x79, 0xa2, 0xa8, 0x96, 0x34, 0x53, 0x8d, 0x14, 0x6a, 0x4a, 0x36, 0x7d,
  634. 0x83, 0x12, 0xe8, 0xbe, 0x64, 0xd7, 0x7d, 0x17, 0x5d, 0xf4, 0x05, 0x0a, 0x5d, 0xf5, 0x15, 0x4a,
  635. 0x9f, 0xa3, 0x68, 0x34, 0x4a, 0x64, 0x5b, 0xb6, 0x65, 0xe8, 0xca, 0x3a, 0x73, 0xfe, 0xbe, 0xf3,
  636. 0x9d, 0x1f, 0x0c, 0xaa, 0x26, 0xa5, 0xa6, 0x4d, 0x90, 0x61, 0xd3, 0xa0, 0x85, 0x28, 0xb7, 0xa9,
  637. 0x69, 0xb9, 0xe8, 0x72, 0x15, 0xdb, 0xec, 0x02, 0xc7, 0xb2, 0xce, 0x3c, 0xea, 0x53, 0xb8, 0x18,
  638. 0xd9, 0xea, 0xc2, 0x56, 0x8f, 0x75, 0xd2, 0x56, 0x95, 0x5a, 0x84, 0x99, 0x85, 0xb0, 0xeb, 0x52,
  639. 0x1f, 0xfb, 0x16, 0x75, 0x79, 0xe4, 0xab, 0x56, 0x52, 0xf3, 0x18, 0xd4, 0x71, 0x68, 0xfc, 0x23,
  640. 0x2d, 0xff, 0x93, 0x96, 0x42, 0x3a, 0x0b, 0xce, 0x11, 0x71, 0x98, 0xdf, 0x91, 0xca, 0x72, 0xaf,
  641. 0xf2, 0xdc, 0x22, 0x76, 0xab, 0xe9, 0x60, 0xde, 0x8e, 0x2c, 0xb4, 0xdf, 0x39, 0x50, 0x7c, 0x1e,
  642. 0x06, 0xaf, 0x7b, 0xf4, 0xdc, 0xb2, 0x09, 0x84, 0x60, 0xc2, 0xc5, 0x0e, 0x29, 0x29, 0x65, 0xa5,
  643. 0x32, 0xdd, 0x10, 0xdf, 0xb0, 0x0e, 0x66, 0x19, 0xe5, 0xd6, 0xdb, 0x26, 0x36, 0x0c, 0x1a, 0xb8,
  644. 0x3e, 0x2f, 0xe5, 0xca, 0xf9, 0x4a, 0xa1, 0xb6, 0xac, 0xa7, 0x96, 0x28, 0xf1, 0xd5, 0x43, 0x97,
  645. 0xed, 0xc8, 0xa3, 0x31, 0xc3, 0x12, 0x12, 0x87, 0x04, 0xcc, 0x71, 0x7e, 0xd1, 0x64, 0xc1, 0x99,
  646. 0x6d, 0x19, 0xcd, 0x36, 0xe9, 0xf0, 0x52, 0x5e, 0x84, 0xdc, 0xd4, 0x87, 0xb1, 0xa6, 0x27, 0xa1,
  647. 0xea, 0xc7, 0xfc, 0xa2, 0x2e, 0x02, 0x3c, 0x23, 0x1d, 0xbe, 0xef, 0xfa, 0x5e, 0xa7, 0x31, 0xc3,
  648. 0x93, 0x6f, 0x70, 0x11, 0x4c, 0xf3, 0x80, 0x33, 0xe2, 0xb6, 0x48, 0xab, 0x34, 0x51, 0x56, 0x2a,
  649. 0x53, 0x8d, 0xbb, 0x07, 0xb5, 0x0d, 0x60, 0x7f, 0x08, 0xf8, 0x2f, 0xc8, 0xb7, 0x49, 0x47, 0xd6,
  650. 0x1f, 0x7e, 0xc2, 0x2d, 0xf0, 0xcf, 0x25, 0xb6, 0x03, 0x52, 0xca, 0x95, 0x95, 0x91, 0x55, 0x27,
  651. 0x23, 0x36, 0x22, 0xbf, 0xf5, 0xdc, 0x9a, 0xa2, 0x21, 0xb0, 0xb0, 0x47, 0x6c, 0xe2, 0x93, 0x2e,
  652. 0x5a, 0xc8, 0x9b, 0x80, 0x70, 0x3f, 0x8d, 0xf4, 0x3b, 0x87, 0xae, 0x88, 0x43, 0x1c, 0x56, 0xc0,
  653. 0xfc, 0x01, 0xf1, 0x93, 0x0c, 0x8d, 0xb6, 0xce, 0x1a, 0xfb, 0x46, 0x01, 0x0b, 0x87, 0x0e, 0xa3,
  654. 0x5e, 0xaa, 0xc7, 0x3c, 0x98, 0x64, 0xd8, 0x23, 0xae, 0x2f, 0x7d, 0xa4, 0x04, 0x8f, 0xc0, 0x6c,
  655. 0x77, 0x97, 0xc7, 0x67, 0xb0, 0x98, 0x6c, 0x28, 0xfc, 0x1f, 0x00, 0xe6, 0xd1, 0xd7, 0xc4, 0xf0,
  656. 0x9b, 0x56, 0xab, 0x94, 0x17, 0xc9, 0xa6, 0xe5, 0xcb, 0x61, 0x4b, 0x73, 0x80, 0x9a, 0x06, 0x92,
  657. 0x33, 0xea, 0x72, 0x02, 0x8f, 0xc0, 0x8c, 0xc8, 0xd3, 0x64, 0x11, 0x3b, 0x02, 0x6c, 0xa1, 0x56,
  658. 0xcd, 0x3e, 0x71, 0x8d, 0xa2, 0x9d, 0x90, 0xb4, 0x6f, 0x0a, 0x58, 0x78, 0xc9, 0x5a, 0x38, 0x73,
  659. 0x8b, 0xfe, 0x3e, 0x21, 0x1b, 0xa0, 0x10, 0x08, 0x04, 0x62, 0xa7, 0x05, 0x23, 0x85, 0x9a, 0x1a,
  660. 0x47, 0x8b, 0xd7, 0x5e, 0x7f, 0x1a, 0xae, 0xfd, 0x0b, 0xcc, 0xdb, 0x0d, 0x10, 0x99, 0x87, 0xdf,
  661. 0xb5, 0xeb, 0x29, 0x30, 0x7b, 0xc4, 0x45, 0x81, 0xc7, 0xc4, 0xbb, 0xb4, 0x0c, 0x02, 0x3f, 0x28,
  662. 0x00, 0xf6, 0x8f, 0x29, 0x7c, 0x34, 0x9c, 0xa3, 0x81, 0x83, 0xad, 0xce, 0xf7, 0x41, 0xd9, 0x0f,
  663. 0xcf, 0x93, 0x56, 0x7d, 0xff, 0xf3, 0xd7, 0x75, 0x6e, 0xa9, 0xaa, 0xdd, 0xde, 0xce, 0x77, 0x21,
  664. 0x41, 0x9b, 0x01, 0x27, 0x1e, 0x47, 0x55, 0x24, 0x7b, 0xca, 0x51, 0xf5, 0x0a, 0x7e, 0xbc, 0xc5,
  665. 0x94, 0x24, 0x22, 0x1b, 0xa6, 0x94, 0xc6, 0x0c, 0xc4, 0x84, 0x04, 0xa6, 0xe5, 0xea, 0xfd, 0x01,
  666. 0x98, 0xba, 0x4e, 0x4b, 0x08, 0xec, 0x93, 0x02, 0xe6, 0x7a, 0x36, 0x0e, 0x3e, 0x1c, 0x8e, 0x2a,
  667. 0x7d, 0x41, 0xd5, 0x31, 0x66, 0x50, 0x5b, 0x11, 0x30, 0xef, 0xc1, 0xa5, 0x74, 0x98, 0x57, 0x28,
  668. 0x39, 0xa3, 0xf0, 0x26, 0xc2, 0xd8, 0xc5, 0xdc, 0x68, 0x8c, 0x69, 0xb4, 0x65, 0x9f, 0xd1, 0x98,
  669. 0x49, 0x98, 0x99, 0xc9, 0x1f, 0x0a, 0x80, 0xfd, 0x9b, 0x3b, 0xaa, 0xc5, 0x03, 0x0f, 0x92, 0xba,
  670. 0x36, 0xbe, 0x63, 0x74, 0x24, 0xb4, 0x3d, 0x01, 0xfd, 0x89, 0xb6, 0x72, 0x07, 0x3d, 0x3a, 0x66,
  671. 0xb7, 0xfc, 0xae, 0x5b, 0x7d, 0xde, 0xeb, 0x3d, 0x5b, 0x0d, 0xbf, 0x2a, 0x00, 0xf6, 0x5f, 0x86,
  672. 0x51, 0xf5, 0x0c, 0xbc, 0x25, 0xe3, 0x70, 0xbf, 0x25, 0x0a, 0x78, 0x5c, 0xcb, 0xca, 0x7d, 0x2f,
  673. 0xf6, 0x9d, 0x2f, 0x0a, 0x28, 0x1b, 0xd4, 0x19, 0x0a, 0x75, 0xa7, 0x28, 0xef, 0x46, 0x3d, 0x5c,
  674. 0xa1, 0xba, 0xf2, 0x6a, 0x57, 0x5a, 0x9b, 0xd4, 0xc6, 0xae, 0xa9, 0x53, 0xcf, 0x44, 0x26, 0x71,
  675. 0xc5, 0x82, 0xa1, 0x48, 0x85, 0x99, 0xc5, 0xd3, 0xff, 0x36, 0x6d, 0x48, 0xf9, 0x73, 0x6e, 0xf1,
  676. 0x20, 0x8a, 0xb2, 0x2b, 0x72, 0xca, 0x14, 0xfa, 0xc9, 0xea, 0x76, 0x68, 0xf6, 0x3d, 0x56, 0x9f,
  677. 0x0a, 0xf5, 0xa9, 0x54, 0x9f, 0x9e, 0x44, 0x51, 0xce, 0x26, 0x45, 0xb6, 0x07, 0x7f, 0x02, 0x00,
  678. 0x00, 0xff, 0xff, 0xf8, 0xf2, 0xe5, 0x19, 0xa3, 0x09, 0x00, 0x00,
  679. }