def apply_feature_set(self, core_service_stub, feature_set_proto): try: apply_fs_response = core_service_stub.ApplyFeatureSet( CoreService_pb2.ApplyFeatureSetRequest(feature_set=feature_set_proto), timeout=self.GRPC_CONNECTION_TIMEOUT, ) # type: ApplyFeatureSetResponse except grpc.RpcError as e: raise grpc.RpcError(e.details()) return apply_fs_response.feature_set
def get_feature_set(self, core_service_stub, name, project): try: get_feature_set_response = core_service_stub.GetFeatureSet( CoreService_pb2.GetFeatureSetRequest( project=project, name=name.strip(), )) # type: GetFeatureSetResponse except grpc.RpcError as e: raise grpc.RpcError(e.details()) return get_feature_set_response.feature_set