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.
 
 
 

748 lines
32 KiB

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