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