github.com/cloudwan/edgelq-sdk@v1.15.4/iam/client/v1/service_projects_management/service_projects_management_service.pb.client.go (about) 1 // Code generated by protoc-gen-goten-client 2 // API: ServiceProjectsManagementService 3 // DO NOT EDIT!!! 4 5 package service_projects_management_client 6 7 import ( 8 "context" 9 10 "google.golang.org/grpc" 11 "google.golang.org/protobuf/runtime/protoimpl" 12 ) 13 14 // proto imports 15 import ( 16 project "github.com/cloudwan/edgelq-sdk/iam/resources/v1/project" 17 service_account "github.com/cloudwan/edgelq-sdk/iam/resources/v1/service_account" 18 emptypb "google.golang.org/protobuf/types/known/emptypb" 19 ) 20 21 // Reference imports to suppress errors if they are not otherwise used. 22 var ( 23 _ = protoimpl.DescBuilder{} 24 _ = new(context.Context) 25 _ = grpc.ClientConn{} 26 ) 27 28 // make sure we're using proto imports 29 var ( 30 _ = &project.Project{} 31 _ = &service_account.ServiceAccount{} 32 _ = &emptypb.Empty{} 33 ) 34 35 // This is a compile-time assertion to ensure that this generated file 36 // is compatible with the proto package it is being compiled against. 37 // A compilation error at this line likely means your copy of the 38 // proto package needs to be updated. 39 const ( 40 // Verify that this generated code is sufficiently up-to-date. 41 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 42 // Verify that runtime/protoimpl is sufficiently up-to-date. 43 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 44 ) 45 46 // This is a compile-time assertion to ensure that this generated file 47 // is compatible with the grpc package it is being compiled against. 48 const _ = grpc.SupportPackageIsVersion6 49 50 // ServiceProjectsManagementServiceClient is the client API for ServiceProjectsManagementService. 51 // 52 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 53 type ServiceProjectsManagementServiceClient interface { 54 ListMyServiceProjects(ctx context.Context, in *ListMyServiceProjectsRequest, opts ...grpc.CallOption) (*ListMyServiceProjectsResponse, error) 55 SetupServiceProject(ctx context.Context, in *SetupServiceProjectRequest, opts ...grpc.CallOption) (*project.Project, error) 56 ReserveServiceName(ctx context.Context, in *ReserveServiceNameRequest, opts ...grpc.CallOption) (*ReserveServiceNameResponse, error) 57 DeleteServiceReservation(ctx context.Context, in *DeleteServiceReservationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) 58 ListServiceReservations(ctx context.Context, in *ListServiceReservationsRequest, opts ...grpc.CallOption) (*ListServiceReservationsResponse, error) 59 ListProjectServices(ctx context.Context, in *ListProjectServicesRequest, opts ...grpc.CallOption) (*ListProjectServicesResponse, error) 60 AddRegionalAdminAccountForServices(ctx context.Context, in *AddRegionalAdminAccountForServicesRequest, opts ...grpc.CallOption) (*AddRegionalAdminAccountForServicesResponse, error) 61 } 62 63 type client struct { 64 cc grpc.ClientConnInterface 65 } 66 67 func NewServiceProjectsManagementServiceClient(cc grpc.ClientConnInterface) ServiceProjectsManagementServiceClient { 68 return &client{cc} 69 } 70 71 func (c *client) ListMyServiceProjects(ctx context.Context, in *ListMyServiceProjectsRequest, opts ...grpc.CallOption) (*ListMyServiceProjectsResponse, error) { 72 out := new(ListMyServiceProjectsResponse) 73 err := c.cc.Invoke(ctx, "/ntt.iam.v1.ServiceProjectsManagementService/ListMyServiceProjects", in, out, opts...) 74 if err != nil { 75 return nil, err 76 } 77 return out, nil 78 } 79 80 func (c *client) SetupServiceProject(ctx context.Context, in *SetupServiceProjectRequest, opts ...grpc.CallOption) (*project.Project, error) { 81 out := new(project.Project) 82 err := c.cc.Invoke(ctx, "/ntt.iam.v1.ServiceProjectsManagementService/SetupServiceProject", in, out, opts...) 83 if err != nil { 84 return nil, err 85 } 86 return out, nil 87 } 88 89 func (c *client) ReserveServiceName(ctx context.Context, in *ReserveServiceNameRequest, opts ...grpc.CallOption) (*ReserveServiceNameResponse, error) { 90 out := new(ReserveServiceNameResponse) 91 err := c.cc.Invoke(ctx, "/ntt.iam.v1.ServiceProjectsManagementService/ReserveServiceName", in, out, opts...) 92 if err != nil { 93 return nil, err 94 } 95 return out, nil 96 } 97 98 func (c *client) DeleteServiceReservation(ctx context.Context, in *DeleteServiceReservationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { 99 out := new(emptypb.Empty) 100 err := c.cc.Invoke(ctx, "/ntt.iam.v1.ServiceProjectsManagementService/DeleteServiceReservation", in, out, opts...) 101 if err != nil { 102 return nil, err 103 } 104 return out, nil 105 } 106 107 func (c *client) ListServiceReservations(ctx context.Context, in *ListServiceReservationsRequest, opts ...grpc.CallOption) (*ListServiceReservationsResponse, error) { 108 out := new(ListServiceReservationsResponse) 109 err := c.cc.Invoke(ctx, "/ntt.iam.v1.ServiceProjectsManagementService/ListServiceReservations", in, out, opts...) 110 if err != nil { 111 return nil, err 112 } 113 return out, nil 114 } 115 116 func (c *client) ListProjectServices(ctx context.Context, in *ListProjectServicesRequest, opts ...grpc.CallOption) (*ListProjectServicesResponse, error) { 117 out := new(ListProjectServicesResponse) 118 err := c.cc.Invoke(ctx, "/ntt.iam.v1.ServiceProjectsManagementService/ListProjectServices", in, out, opts...) 119 if err != nil { 120 return nil, err 121 } 122 return out, nil 123 } 124 125 func (c *client) AddRegionalAdminAccountForServices(ctx context.Context, in *AddRegionalAdminAccountForServicesRequest, opts ...grpc.CallOption) (*AddRegionalAdminAccountForServicesResponse, error) { 126 out := new(AddRegionalAdminAccountForServicesResponse) 127 err := c.cc.Invoke(ctx, "/ntt.iam.v1.ServiceProjectsManagementService/AddRegionalAdminAccountForServices", in, out, opts...) 128 if err != nil { 129 return nil, err 130 } 131 return out, nil 132 }